From d22d6be8c9667b5a07c170e4f838701fbf7f6400 Mon Sep 17 00:00:00 2001 From: Vincent Tsao Date: Tue, 24 Feb 2015 17:00:03 -0500 Subject: [PATCH] Preparing src for release 5.8.0 --- ChangeLog.md | 13 + .../AddTextAdWithUpgradedUrls.php | 2 +- .../v201406/BasicOperations/AddAdGroups.php | 10 +- .../AdvancedOperations/AddAdCustomizer.php | 2 +- .../AddClickToDownloadAd.php | 6 +- .../AddTextAdWithUpgradedUrls.php | 4 +- .../v201409/BasicOperations/AddAdGroups.php | 10 +- .../v201409/BasicOperations/AddKeywords.php | 5 +- .../v201409/BasicOperations/AddTextAds.php | 2 +- .../v201409/BasicOperations/UpdateKeyword.php | 6 +- .../CampaignManagement/ValidateTextAd.php | 2 +- .../HandlePolicyViolationError.php | 2 +- .../v201409/Migration/UpgradeAdUrl.php | 102 + examples/Common/HandleCaptcha.php | 90 - .../CompanyService/UpdateCompaniesExample.php | 93 - .../GetContentByCategoryExample.php | 113 - .../AssociateCreativeSetToLineItemExample.php | 78 - .../GetCreativesByStatementExample.php | 88 - .../GetCreativeSetsByStatementExample.php | 90 - ...GetCreativeTemplatesByStatementExample.php | 84 - .../DeactivateCreativeWrapperExample.php | 97 - .../GetAllCreativeWrappersExample.php | 76 - ...AllCustomTargetingKeysAndValuesExample.php | 137 - ...tCustomTargetingKeysByStatementExample.php | 85 - .../UpdateCustomTargetingValuesExample.php | 106 - .../LabelService/UpdateLabelsExample.php | 95 - .../GetLicasByStatementExample.php | 93 - .../ActivateLineItemsExample.php | 132 - .../AuditLineItemsGeoTargetingExample.php | 213 - .../CreateMobileLineItemExample.php | 157 - .../GetLineItemsByStatementExample.php | 94 - .../GetRecentlyUpdatedLineItems.php | 103 - .../UpdateLineItemsExample.php | 104 - .../OrderService/ApproveOrdersExample.php | 128 - .../GetOrdersByStatementExample.php | 92 - .../OrderService/UpdateOrdersExample.php | 99 - .../UpdatePlacementsExample.php | 102 - .../ReportService/DownloadReportExample.php | 81 - .../RunReportWithCustomFields.php | 133 - .../ReportService/RunSalesReportExample.php | 90 - .../GetSuggestedAdUnitsByStatementExample.php | 88 - .../TeamService/UpdateTeamsExample.php | 106 - .../GetUsersByStatementExample.php | 81 - ...UserTeamAssociationsByStatementExample.php | 94 - .../CreateActivityGroups.php | 4 +- .../GetActiveActivityGroups.php | 43 +- .../GetAllActivityGroups.php | 33 +- .../UpdateActivityGroups.php | 36 +- .../ActivityService/CreateActivities.php | 4 +- .../ActivityService/GetActiveActivities.php | 46 +- .../ActivityService/GetAllActivities.php | 37 +- .../ActivityService/UpdateActivities.php | 35 +- .../CreateAudienceSegments.php | 6 +- .../GetAllAudienceSegments.php | 39 +- .../GetFirstPartyAudienceSegments.php | 46 +- .../PopulateFirstPartyAudienceSegments.php | 65 +- .../UpdateAudienceSegments.php | 52 +- .../CreateProductBaseRates.php | 92 + .../CreateProductTemplateBaseRates.php} | 64 +- .../BaseRateService/GetAllBaseRates.php | 91 + .../GetBaseRatesForRateCard.php | 102 + .../BaseRateService/UpdateBaseRates.php | 95 + .../CompanyService/CreateCompanies.php} | 6 +- .../v201502/CompanyService/GetAdvertisers.php | 91 + .../CompanyService/GetAllCompanies.php} | 47 +- .../CompanyService/UpdateCompanies.php} | 62 +- .../ContactService/CreateContacts.php | 4 +- .../ContactService/GetAllContacts.php | 33 +- .../ContactService/GetUninvitedContacts.php | 42 +- .../ContactService/UpdateContacts.php | 36 +- .../CreateContentMetadataKeyHierarchies.php} | 6 +- .../DeleteContentMetadataKeyHierarchies.php | 122 + .../GetAllContentMetadataKeyHierarchies.php} | 34 +- .../UpdateContentMetadataKeyHierarchies.php} | 55 +- .../ContentService/GetAllContent.php} | 46 +- .../CreateCreativeFromTemplate.php} | 24 +- .../CreativeService/CreateCreatives.php} | 46 +- .../CreativeService/CreateCustomCreative.php} | 8 +- .../CreativeService/GetAllCreatives.php} | 47 +- .../CreativeService/GetImageCreatives.php | 91 + .../CreativeService/UpdateCreatives.php} | 66 +- .../CreativeSetService/CreateCreativeSet.php} | 23 +- .../GetAllCreativesSets.php} | 45 +- .../GetCreativeSetsForMasterCreative.php | 95 + .../CreativeSetService/UpdateCreativeSet.php} | 56 +- .../GetAllCreativeTemplates.php} | 44 +- .../GetSystemDefinedCreativeTemplates.php | 92 + .../CreateCreativeWrappers.php} | 6 +- .../DeactivateCreativeWrappersForLabel.php | 120 + .../GetActiveCreativeWrappers.php} | 56 +- .../GetAllCreativeWrappers.php | 91 + .../UpdateCreativeWrappers.php} | 40 +- .../CreateCustomFieldOptions.php | 6 +- .../CustomFieldService/CreateCustomFields.php | 6 +- .../DeactivateCustomFields.php} | 78 +- .../GetAllCustomFields.php} | 44 +- .../GetCustomFieldsForLineItems.php | 92 + .../SetLineItemCustomFieldValue.php | 10 +- .../UpdateCustomFields.php} | 44 +- .../CreateCustomTargetingKeysAndValues.php} | 8 +- .../DeleteCustomTargetingKeys.php} | 76 +- .../DeleteCustomTargetingValues.php} | 74 +- .../GetAllCustomTargetingKeysAndValues.php | 151 + ...PredefinedCustomTargetingKeysAndValues.php | 157 + .../UpdateCustomTargetingKeys.php} | 77 +- .../UpdateCustomTargetingValues.php} | 70 +- .../CreateExchangeRates.php | 90 + .../GetAllExchangeRates.php | 95 + .../GetExchangeRatesForCurrencyCode.php | 101 + .../UpdateExchangeRates.php | 95 + .../GetAvailabilityForecast.php} | 100 +- .../GetAvailabilityForecastForLineItem.php} | 35 +- .../GetDeliveryForecastForLineItems.php} | 44 +- .../InventoryService/ArchiveAdUnits.php} | 72 +- .../AssignAdUnitsToPlacement.php | 122 + .../InventoryService/CreateAdUnits.php} | 10 +- .../InventoryService/CreateMobileAdUnit.php} | 10 +- .../InventoryService/CreateVideoAdUnit.php} | 10 +- .../InventoryService/GetAllAdUnitSizes.php} | 38 +- .../InventoryService/GetAllAdUnits.php} | 49 +- .../InventoryService/GetInventoryTree.php} | 6 +- .../InventoryService/GetTopLevelAdUnits.php} | 70 +- .../InventoryService/UpdateAdUnits.php} | 75 +- .../LabelService/CreateLabels.php} | 6 +- .../LabelService/DeactivateLabels.php} | 69 +- .../v201502/LabelService/GetActiveLabels.php | 90 + .../LabelService/GetAllLabels.php} | 46 +- .../LabelService/UpdateLabels.php} | 59 +- .../CreateLicas.php} | 6 +- .../DeactivateLicas.php} | 88 +- .../GetAllLicas.php} | 50 +- .../GetLicasForLineItem.php | 101 + .../UpdateLicas.php} | 72 +- .../LineItemService/CreateLineItems.php} | 41 +- .../LineItemService/CreateVideoLineItems.php} | 95 +- .../LineItemService/GetAllLineItems.php} | 48 +- .../GetLineItemsThatNeedCreatives.php | 92 + .../GetRecentlyUpdatedLineItems.php | 98 + .../LineItemService/PauseLineItems.php | 115 + .../LineItemService/TargetCustomCriteria.php} | 31 +- .../LineItemService/UpdateLineItems.php | 92 + .../NetworkService/GetAllNetworks.php} | 28 +- .../NetworkService/GetCurrentNetwork.php} | 4 +- .../NetworkService/MakeTestNetwork.php} | 4 +- .../v201502/OrderService/ApproveOrders.php | 115 + .../OrderService/CreateOrders.php} | 6 +- .../OrderService/GetAllOrders.php} | 48 +- .../OrderService/GetOrdersStartingSoon.php | 102 + .../Dfp/v201502/OrderService/UpdateOrders.php | 87 + .../PlacementService/CreatePlacements.php} | 8 +- .../DeactivatePlacements.php} | 73 +- .../PlacementService/GetActivePlacements.php | 91 + .../PlacementService/GetAllPlacements.php} | 46 +- .../PlacementService/UpdatePlacements.php} | 62 +- .../PremiumRateService/CreatePremiumRates.php | 109 + .../PremiumRateService/GetAllPremiumRates.php | 90 + .../GetPremiumRatesForRateCard.php | 99 + .../PremiumRateService/UpdatePremiumRates.php | 101 + .../v201502/ProductService/GetAllProducts.php | 89 + .../GetProductsForProductTemplate.php | 95 + .../v201502/ProductService/UpdateProducts.php | 88 + .../ActivateProductTemplates.php | 121 + .../CreateProductTemplates.php | 152 + .../GetAllProductTemplates.php | 90 + .../GetSponsorshipProductTemplates.php | 92 + .../UpdateProductTemplates.php | 102 + .../ArchiveProposalLineItems.php | 121 + .../CreateProposalLineItems.php | 138 + .../GetAllProposalLineItems.php | 90 + .../GetProposalLineItemsForProposal.php | 97 + .../UpdateProposalLineItems.php | 91 + .../ProposalService/CreateProposals.php | 121 + .../ProposalService/GetAllProposals.php | 89 + .../GetProposalsPendingApproval.php | 91 + .../SubmitProposalsForApproval.php | 114 + .../ProposalService/UpdateProposals.php | 88 + .../FetchMatchTables.php | 50 +- .../GetAllBrowsers.php | 111 + .../GetGeoTargets.php | 52 +- .../GetLineItemsNamedLike.php | 39 +- .../RateCardService/GetAllRateCards.php | 89 + .../RateCardService/GetUsdRateCards.php | 97 + .../RunDeliveryReportForOrder.php} | 84 +- .../ReportService/RunInventoryReport.php} | 81 +- .../ReportService/RunReachReport.php} | 58 +- .../RunReportWithCustomFields.php} | 70 +- .../ApproveSuggestedAdUnits.php} | 83 +- .../GetAllSuggestedAdUnits.php} | 48 +- .../GetHighlyRequestedSuggestedAdUnits.php | 98 + .../TeamService/CreateTeams.php} | 6 +- .../TeamService/GetAllTeams.php} | 46 +- .../TeamService/UpdateTeams.php} | 65 +- .../UserService/CreateUsers.php} | 8 +- .../UserService/DeactivateUsers.php} | 78 +- .../UserService/GetAllRoles.php} | 28 +- .../UserService/GetAllUsers.php} | 49 +- .../UserService/GetCurrentUser.php} | 4 +- .../UserService/GetUser.php} | 6 +- .../UserService/GetUsersByEmailAddress.php | 92 + .../UserService/UpdateUsers.php} | 64 +- .../CreateUserTeamAssociations.php} | 8 +- .../DeleteUserTeamAssociations.php} | 82 +- .../GetAllUserTeamAssociations.php} | 52 +- .../GetUserTeamAssociationsForUser.php | 97 + .../UpdateUserTeamAssociations.php} | 76 +- .../ApproveWorkflowApprovalRequests.php | 124 + .../GetWorkflowApprovalRequests.php | 97 + .../GetWorkflowExternalConditionRequests.php | 97 + ...iggerWorkflowExternalConditionRequests.php | 127 + .../Api/Ads/AdWords/Lib/AdWordsSoapClient.php | 10 +- .../Api/Ads/AdWords/Lib/AdWordsUser.php | 1 - src/Google/Api/Ads/AdWords/auth.ini | 1 + .../Api/Ads/Common/Lib/AdsSoapClient.php | 13 +- src/Google/Api/Ads/Common/Lib/build.ini | 2 +- src/Google/Api/Ads/Common/Util/AuthToken.php | 181 - .../Ads/Common/Util/AuthTokenException.php | 92 - .../Api/Ads/Common/Util/DeprecationUtils.php | 47 - src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php | 30 +- src/Google/Api/Ads/Dfp/Lib/DfpUser.php | 110 +- src/Google/Api/Ads/Dfp/Lib/api.properties | 184 +- src/Google/Api/Ads/Dfp/auth.ini | 9 - src/Google/Api/Ads/Dfp/settings.ini | 4 +- .../Api/Ads/Dfp/v201306/ActivityService.php | 3268 ----- .../Api/Ads/Dfp/v201306/BaseRateService.php | 3735 ------ .../Api/Ads/Dfp/v201306/CompanyService.php | 3841 ------ .../Api/Ads/Dfp/v201306/ContactService.php | 3396 ----- .../Ads/Dfp/v201306/ContentBundleService.php | 3437 ----- .../Api/Ads/Dfp/v201306/ContentService.php | 3082 ----- .../Api/Ads/Dfp/v201306/CreativeService.php | 8425 ------------ .../Dfp/v201306/CreativeWrapperService.php | 3849 ------ .../Dfp/v201306/CustomTargetingService.php | 4099 ------ .../Api/Ads/Dfp/v201306/ForecastService.php | 9919 -------------- .../Api/Ads/Dfp/v201306/LineItemService.php | 10690 --------------- .../Dfp/v201306/LineItemTemplateService.php | 5317 -------- .../Api/Ads/Dfp/v201306/OrderService.php | 7193 ----------- .../Api/Ads/Dfp/v201306/PlacementService.php | 4119 ------ .../Api/Ads/Dfp/v201306/ProductService.php | 6060 --------- .../Dfp/v201306/ProposalLineItemService.php | 9127 ------------- .../Api/Ads/Dfp/v201306/ProposalService.php | 5643 -------- .../v201306/PublisherQueryLanguageService.php | 4157 ------ .../v201306/RateCardCustomizationService.php | 4044 ------ .../Api/Ads/Dfp/v201306/RateCardService.php | 4186 ------ .../ReconciliationOrderReportService.php | 3187 ----- .../v201306/ReconciliationReportService.php | 3051 ----- .../Api/Ads/Dfp/v201306/ReportService.php | 3255 ----- .../Api/Ads/Dfp/v201306/TeamService.php | 3210 ----- .../Api/Ads/Dfp/v201306/UserService.php | 4237 ------ .../v201306/UserTeamAssociationService.php | 3280 ----- .../Ads/Dfp/v201306/WorkflowActionService.php | 2549 ---- .../Ads/Dfp/v201308/ActivityGroupService.php | 3229 ----- .../Api/Ads/Dfp/v201308/AdRuleService.php | 7478 ----------- .../Api/Ads/Dfp/v201308/CreativeService.php | 8432 ------------ .../Ads/Dfp/v201308/CreativeSetService.php | 4512 ------- .../Dfp/v201308/CreativeTemplateService.php | 3637 ------ .../Ads/Dfp/v201308/CustomFieldService.php | 4364 ------- .../Api/Ads/Dfp/v201308/ForecastService.php | 9988 -------------- .../Api/Ads/Dfp/v201308/InventoryService.php | 6161 --------- .../LineItemCreativeAssociationService.php | 5972 --------- .../Api/Ads/Dfp/v201308/LineItemService.php | 10704 ---------------- .../Dfp/v201308/LineItemTemplateService.php | 5317 -------- .../Api/Ads/Dfp/v201308/NetworkService.php | 2766 ---- .../Api/Ads/Dfp/v201308/OrderService.php | 7193 ----------- .../Dfp/v201308/ProductTemplateService.php | 6967 ---------- .../Dfp/v201308/ProposalLineItemService.php | 9127 ------------- .../Api/Ads/Dfp/v201308/ProposalService.php | 5643 -------- .../v201308/PublisherQueryLanguageService.php | 4157 ------ .../v201308/RateCardCustomizationService.php | 4044 ------ .../ReconciliationReportRowService.php | 3232 ----- .../Dfp/v201308/SuggestedAdUnitService.php | 3328 ----- .../Ads/Dfp/v201308/WorkflowActionService.php | 2549 ---- .../Ads/Dfp/v201311/ActivityGroupService.php | 3272 ----- .../Dfp/v201311/AudienceSegmentService.php | 4344 ------- .../Api/Ads/Dfp/v201311/CompanyService.php | 3884 ------ .../Api/Ads/Dfp/v201311/ContactService.php | 3439 ----- .../Ads/Dfp/v201311/ContentBundleService.php | 3480 ----- .../Api/Ads/Dfp/v201311/ContentService.php | 3132 ----- .../Dfp/v201311/CreativeTemplateService.php | 3687 ------ .../Dfp/v201311/CreativeWrapperService.php | 3892 ------ .../Ads/Dfp/v201311/CustomFieldService.php | 4407 ------- .../Dfp/v201311/CustomTargetingService.php | 4142 ------ .../Api/Ads/Dfp/v201311/InventoryService.php | 6211 --------- .../LineItemCreativeAssociationService.php | 6015 --------- .../Api/Ads/Dfp/v201311/NetworkService.php | 2846 ---- .../Api/Ads/Dfp/v201311/PlacementService.php | 4162 ------ .../Api/Ads/Dfp/v201311/ProductService.php | 5852 --------- .../Dfp/v201311/ProductTemplateService.php | 6759 ---------- .../v201311/PublisherQueryLanguageService.php | 4280 ------ .../v201311/RateCardCustomizationService.php | 4087 ------ .../Api/Ads/Dfp/v201311/RateCardService.php | 4243 ------ .../ReconciliationOrderReportService.php | 3230 ----- .../ReconciliationReportRowService.php | 3275 ----- .../v201311/ReconciliationReportService.php | 3094 ----- .../Api/Ads/Dfp/v201311/ReportService.php | 3298 ----- .../Dfp/v201311/SuggestedAdUnitService.php | 3378 ----- .../Api/Ads/Dfp/v201311/UserService.php | 4280 ------ .../v201311/UserTeamAssociationService.php | 3323 ----- .../Ads/Dfp/v201403/ActivityGroupService.php | 80 + .../Api/Ads/Dfp/v201403/ActivityService.php | 80 + .../Api/Ads/Dfp/v201403/AdRuleService.php | 80 + .../Dfp/v201403/AudienceSegmentService.php | 80 + .../Api/Ads/Dfp/v201403/BaseRateService.php | 124 +- .../Api/Ads/Dfp/v201403/CompanyService.php | 80 + .../Api/Ads/Dfp/v201403/ContactService.php | 80 + .../Ads/Dfp/v201403/ContentBundleService.php | 80 + .../ContentMetadataKeyHierarchyService.php | 80 + .../Api/Ads/Dfp/v201403/ContentService.php | 80 + .../Api/Ads/Dfp/v201403/CreativeService.php | 83 +- .../Ads/Dfp/v201403/CreativeSetService.php | 80 + .../Dfp/v201403/CreativeTemplateService.php | 80 + .../Dfp/v201403/CreativeWrapperService.php | 80 + .../Ads/Dfp/v201403/CustomFieldService.php | 80 + .../Dfp/v201403/CustomTargetingService.php | 45 +- .../Ads/Dfp/v201403/ExchangeRateService.php | 80 + .../Api/Ads/Dfp/v201403/ForecastService.php | 240 + .../Api/Ads/Dfp/v201403/InventoryService.php | 80 + .../Api/Ads/Dfp/v201403/LabelService.php | 80 + .../LineItemCreativeAssociationService.php | 80 + .../Api/Ads/Dfp/v201403/LineItemService.php | 240 + .../Dfp/v201403/LineItemTemplateService.php | 240 + .../Dfp/v201403/LiveStreamEventService.php | 80 + .../Api/Ads/Dfp/v201403/NetworkService.php | 80 + .../Api/Ads/Dfp/v201403/OrderService.php | 240 + .../Api/Ads/Dfp/v201403/PlacementService.php | 80 + .../Api/Ads/Dfp/v201403/ProductService.php | 80 + .../Dfp/v201403/ProductTemplateService.php | 120 + .../Dfp/v201403/ProposalLineItemService.php | 120 + .../Api/Ads/Dfp/v201403/ProposalService.php | 375 + .../v201403/PublisherQueryLanguageService.php | 80 + .../RateCardCustomizationGroupService.php | 80 + .../v201403/RateCardCustomizationService.php | 120 + .../Api/Ads/Dfp/v201403/RateCardService.php | 120 + .../ReconciliationOrderReportService.php | 80 + .../ReconciliationReportRowService.php | 80 + .../v201403/ReconciliationReportService.php | 80 + .../Api/Ads/Dfp/v201403/ReportService.php | 92 +- .../Dfp/v201403/SuggestedAdUnitService.php | 160 + .../Api/Ads/Dfp/v201403/TeamService.php | 80 + .../Api/Ads/Dfp/v201403/UserService.php | 80 + .../v201403/UserTeamAssociationService.php | 80 + .../Dfp/v201403/WorkflowRequestService.php | 80 + .../Ads/Dfp/v201405/ActivityGroupService.php | 80 + .../Api/Ads/Dfp/v201405/ActivityService.php | 80 + .../Api/Ads/Dfp/v201405/AdRuleService.php | 80 + .../Dfp/v201405/AudienceSegmentService.php | 80 + .../Api/Ads/Dfp/v201405/BaseRateService.php | 164 +- .../Api/Ads/Dfp/v201405/CompanyService.php | 80 + .../Api/Ads/Dfp/v201405/ContactService.php | 80 + .../Ads/Dfp/v201405/ContentBundleService.php | 80 + .../ContentMetadataKeyHierarchyService.php | 80 + .../Api/Ads/Dfp/v201405/ContentService.php | 80 + .../Api/Ads/Dfp/v201405/CreativeService.php | 83 +- .../Ads/Dfp/v201405/CreativeSetService.php | 80 + .../Dfp/v201405/CreativeTemplateService.php | 80 + .../Dfp/v201405/CreativeWrapperService.php | 80 + .../Ads/Dfp/v201405/CustomFieldService.php | 80 + .../Dfp/v201405/CustomTargetingService.php | 125 +- .../Ads/Dfp/v201405/ExchangeRateService.php | 80 + .../Api/Ads/Dfp/v201405/ForecastService.php | 320 + .../Api/Ads/Dfp/v201405/InventoryService.php | 80 + .../Api/Ads/Dfp/v201405/LabelService.php | 80 + .../LineItemCreativeAssociationService.php | 80 + .../Api/Ads/Dfp/v201405/LineItemService.php | 320 + .../Dfp/v201405/LineItemTemplateService.php | 320 + .../Dfp/v201405/LiveStreamEventService.php | 80 + .../Api/Ads/Dfp/v201405/NetworkService.php | 80 + .../Api/Ads/Dfp/v201405/OrderService.php | 320 + .../Api/Ads/Dfp/v201405/PlacementService.php | 80 + .../Api/Ads/Dfp/v201405/ProductService.php | 80 + .../Dfp/v201405/ProductTemplateService.php | 200 + .../Dfp/v201405/ProposalLineItemService.php | 200 + .../Api/Ads/Dfp/v201405/ProposalService.php | 455 + .../v201405/PublisherQueryLanguageService.php | 80 + .../RateCardCustomizationGroupService.php | 80 + .../v201405/RateCardCustomizationService.php | 160 + .../Api/Ads/Dfp/v201405/RateCardService.php | 200 + .../ReconciliationOrderReportService.php | 80 + .../ReconciliationReportRowService.php | 80 + .../v201405/ReconciliationReportService.php | 80 + .../Api/Ads/Dfp/v201405/ReportService.php | 92 +- .../Dfp/v201405/SuggestedAdUnitService.php | 160 + .../Api/Ads/Dfp/v201405/TeamService.php | 80 + .../Api/Ads/Dfp/v201405/UserService.php | 80 + .../v201405/UserTeamAssociationService.php | 80 + .../Dfp/v201405/WorkflowRequestService.php | 80 + .../Ads/Dfp/v201408/ActivityGroupService.php | 80 + .../Api/Ads/Dfp/v201408/ActivityService.php | 80 + .../Api/Ads/Dfp/v201408/AdRuleService.php | 80 + .../Dfp/v201408/AudienceSegmentService.php | 80 + .../Api/Ads/Dfp/v201408/BaseRateService.php | 164 +- .../Api/Ads/Dfp/v201408/CompanyService.php | 80 + .../Api/Ads/Dfp/v201408/ContactService.php | 80 + .../Ads/Dfp/v201408/ContentBundleService.php | 80 + .../ContentMetadataKeyHierarchyService.php | 80 + .../Api/Ads/Dfp/v201408/ContentService.php | 80 + .../Api/Ads/Dfp/v201408/CreativeService.php | 83 +- .../Ads/Dfp/v201408/CreativeSetService.php | 80 + .../Dfp/v201408/CreativeTemplateService.php | 80 + .../Dfp/v201408/CreativeWrapperService.php | 80 + .../Ads/Dfp/v201408/CustomFieldService.php | 80 + .../Dfp/v201408/CustomTargetingService.php | 125 +- .../Ads/Dfp/v201408/ExchangeRateService.php | 80 + .../Api/Ads/Dfp/v201408/ForecastService.php | 320 + .../Api/Ads/Dfp/v201408/InventoryService.php | 80 + .../Api/Ads/Dfp/v201408/LabelService.php | 80 + .../LineItemCreativeAssociationService.php | 80 + .../Api/Ads/Dfp/v201408/LineItemService.php | 320 + .../Dfp/v201408/LineItemTemplateService.php | 320 + .../Dfp/v201408/LiveStreamEventService.php | 80 + .../Api/Ads/Dfp/v201408/NetworkService.php | 80 + .../Api/Ads/Dfp/v201408/OrderService.php | 320 + .../Api/Ads/Dfp/v201408/PlacementService.php | 80 + .../Ads/Dfp/v201408/PremiumRateService.php | 160 + .../Api/Ads/Dfp/v201408/ProductService.php | 80 + .../Dfp/v201408/ProductTemplateService.php | 200 + .../Dfp/v201408/ProposalLineItemService.php | 200 + .../Api/Ads/Dfp/v201408/ProposalService.php | 455 + .../v201408/PublisherQueryLanguageService.php | 80 + .../Api/Ads/Dfp/v201408/RateCardService.php | 200 + .../ReconciliationOrderReportService.php | 80 + .../ReconciliationReportRowService.php | 80 + .../v201408/ReconciliationReportService.php | 80 + .../Api/Ads/Dfp/v201408/ReportService.php | 92 +- .../Dfp/v201408/SuggestedAdUnitService.php | 160 + .../Api/Ads/Dfp/v201408/TeamService.php | 80 + .../Api/Ads/Dfp/v201408/UserService.php | 80 + .../v201408/UserTeamAssociationService.php | 80 + .../Dfp/v201408/WorkflowRequestService.php | 80 + .../Ads/Dfp/v201411/ActivityGroupService.php | 80 + .../Api/Ads/Dfp/v201411/ActivityService.php | 80 + .../Dfp/v201411/AdExclusionRuleService.php | 80 + .../Api/Ads/Dfp/v201411/AdRuleService.php | 80 + .../Dfp/v201411/AudienceSegmentService.php | 80 + .../Api/Ads/Dfp/v201411/BaseRateService.php | 164 +- .../Api/Ads/Dfp/v201411/CompanyService.php | 80 + .../Api/Ads/Dfp/v201411/ContactService.php | 80 + .../Ads/Dfp/v201411/ContentBundleService.php | 80 + .../ContentMetadataKeyHierarchyService.php | 80 + .../Api/Ads/Dfp/v201411/ContentService.php | 80 + .../Api/Ads/Dfp/v201411/CreativeService.php | 83 +- .../Ads/Dfp/v201411/CreativeSetService.php | 80 + .../Dfp/v201411/CreativeTemplateService.php | 80 + .../Dfp/v201411/CreativeWrapperService.php | 80 + .../Ads/Dfp/v201411/CustomFieldService.php | 80 + .../Dfp/v201411/CustomTargetingService.php | 125 +- .../Ads/Dfp/v201411/ExchangeRateService.php | 80 + .../Api/Ads/Dfp/v201411/ForecastService.php | 320 + .../Api/Ads/Dfp/v201411/InventoryService.php | 80 + .../Api/Ads/Dfp/v201411/LabelService.php | 80 + .../LineItemCreativeAssociationService.php | 80 + .../Api/Ads/Dfp/v201411/LineItemService.php | 320 + .../Dfp/v201411/LineItemTemplateService.php | 320 + .../Dfp/v201411/LiveStreamEventService.php | 80 + .../Api/Ads/Dfp/v201411/NetworkService.php | 80 + .../Api/Ads/Dfp/v201411/OrderService.php | 320 + .../Api/Ads/Dfp/v201411/PlacementService.php | 80 + .../Ads/Dfp/v201411/PremiumRateService.php | 160 + .../Api/Ads/Dfp/v201411/ProductService.php | 80 + .../Dfp/v201411/ProductTemplateService.php | 200 + .../Dfp/v201411/ProposalLineItemService.php | 200 + .../Api/Ads/Dfp/v201411/ProposalService.php | 455 + .../v201411/PublisherQueryLanguageService.php | 80 + .../Api/Ads/Dfp/v201411/RateCardService.php | 200 + .../ReconciliationOrderReportService.php | 80 + .../ReconciliationReportRowService.php | 80 + .../v201411/ReconciliationReportService.php | 80 + .../Api/Ads/Dfp/v201411/ReportService.php | 92 +- .../Ads/Dfp/v201411/SharedAdUnitService.php | 80 + .../Dfp/v201411/SuggestedAdUnitService.php | 160 + .../Api/Ads/Dfp/v201411/TeamService.php | 80 + .../Api/Ads/Dfp/v201411/UserService.php | 80 + .../v201411/UserTeamAssociationService.php | 80 + .../Dfp/v201411/WorkflowRequestService.php | 80 + .../ActivityGroupService.php | 963 +- .../{v201308 => v201502}/ActivityService.php | 943 +- .../AdExclusionRuleService.php} | 1525 +-- .../{v201311 => v201502}/AdRuleService.php | 1582 +-- .../AudienceSegmentService.php | 1009 +- .../{v201308 => v201502}/BaseRateService.php | 1261 +- .../{v201308 => v201502}/CompanyService.php | 1054 +- .../{v201308 => v201502}/ContactService.php | 1023 +- .../ContentBundleService.php | 1040 +- .../ContentMetadataKeyHierarchyService.php | 1085 +- .../{v201308 => v201502}/ContentService.php | 774 +- .../{v201311 => v201502}/CreativeService.php | 2390 ++-- .../CreativeSetService.php | 1086 +- .../CreativeTemplateService.php | 939 +- .../CreativeWrapperService.php | 1097 +- .../CustomFieldService.php | 1440 +-- .../CustomTargetingService.php | 1129 +- .../ExchangeRateService.php | 812 +- .../{v201311 => v201502}/ForecastService.php | 6005 +++++---- .../{v201306 => v201502}/InventoryService.php | 1504 +-- .../Dfp/{v201308 => v201502}/LabelService.php | 1075 +- .../LineItemCreativeAssociationService.php | 1603 +-- .../{v201311 => v201502}/LineItemService.php | 3335 ++--- .../LineItemTemplateService.php | 1541 ++- .../LiveStreamEventService.php} | 1736 ++- .../{v201306 => v201502}/NetworkService.php | 613 +- .../Dfp/{v201311 => v201502}/OrderService.php | 2278 ++-- .../PackageService.php} | 2315 ++-- .../{v201308 => v201502}/PlacementService.php | 1293 +- .../PremiumRateService.php} | 2442 ++-- .../ProductPackageItemService.php} | 1798 +-- .../ProductPackageService.php} | 1780 ++- .../{v201308 => v201502}/ProductService.php | 2371 ++-- .../ProductTemplateService.php | 3147 +++-- .../ProposalLineItemService.php | 5384 ++++---- .../{v201311 => v201502}/ProposalService.php | 1847 +-- .../PublisherQueryLanguageService.php} | 4189 +++--- .../{v201308 => v201502}/RateCardService.php | 1397 +- .../ReconciliationOrderReportService.php | 858 +- .../ReconciliationReportRowService.php | 810 +- .../ReconciliationReportService.php | 865 +- .../{v201308 => v201502}/ReportService.php | 746 +- .../SharedAdUnitService.php} | 1410 +- .../SuggestedAdUnitService.php | 907 +- .../Dfp/{v201308 => v201502}/TeamService.php | 978 +- .../Dfp/{v201308 => v201502}/UserService.php | 1240 +- .../UserTeamAssociationService.php | 1060 +- .../WorkflowRequestService.php | 1011 +- .../Api/Ads/Common/Util/AuthTokenTest.php | 110 - .../Ads/Common/Util/DeprecationUtilsTest.php | 68 +- 522 files changed, 65476 insertions(+), 404554 deletions(-) create mode 100755 examples/AdWords/v201409/Migration/UpgradeAdUrl.php delete mode 100755 examples/Common/HandleCaptcha.php delete mode 100755 examples/Dfp/v201403/CompanyService/UpdateCompaniesExample.php delete mode 100755 examples/Dfp/v201403/ContentService/GetContentByCategoryExample.php delete mode 100755 examples/Dfp/v201403/CreativeService/AssociateCreativeSetToLineItemExample.php delete mode 100755 examples/Dfp/v201403/CreativeService/GetCreativesByStatementExample.php delete mode 100755 examples/Dfp/v201403/CreativeSetService/GetCreativeSetsByStatementExample.php delete mode 100755 examples/Dfp/v201403/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php delete mode 100755 examples/Dfp/v201403/CreativeWrapperService/DeactivateCreativeWrapperExample.php delete mode 100755 examples/Dfp/v201403/CreativeWrapperService/GetAllCreativeWrappersExample.php delete mode 100755 examples/Dfp/v201403/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php delete mode 100755 examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php delete mode 100755 examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingValuesExample.php delete mode 100755 examples/Dfp/v201403/LabelService/UpdateLabelsExample.php delete mode 100755 examples/Dfp/v201403/LicaService/GetLicasByStatementExample.php delete mode 100755 examples/Dfp/v201403/LineItemService/ActivateLineItemsExample.php delete mode 100755 examples/Dfp/v201403/LineItemService/AuditLineItemsGeoTargetingExample.php delete mode 100755 examples/Dfp/v201403/LineItemService/CreateMobileLineItemExample.php delete mode 100755 examples/Dfp/v201403/LineItemService/GetLineItemsByStatementExample.php delete mode 100755 examples/Dfp/v201403/LineItemService/GetRecentlyUpdatedLineItems.php delete mode 100755 examples/Dfp/v201403/LineItemService/UpdateLineItemsExample.php delete mode 100755 examples/Dfp/v201403/OrderService/ApproveOrdersExample.php delete mode 100755 examples/Dfp/v201403/OrderService/GetOrdersByStatementExample.php delete mode 100755 examples/Dfp/v201403/OrderService/UpdateOrdersExample.php delete mode 100755 examples/Dfp/v201403/PlacementService/UpdatePlacementsExample.php delete mode 100755 examples/Dfp/v201403/ReportService/DownloadReportExample.php delete mode 100755 examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php delete mode 100755 examples/Dfp/v201403/ReportService/RunSalesReportExample.php delete mode 100755 examples/Dfp/v201403/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php delete mode 100755 examples/Dfp/v201403/TeamService/UpdateTeamsExample.php delete mode 100755 examples/Dfp/v201403/UserService/GetUsersByStatementExample.php delete mode 100755 examples/Dfp/v201403/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php rename examples/Dfp/{v201403 => v201502}/ActivityGroupService/CreateActivityGroups.php (98%) rename examples/Dfp/{v201403 => v201502}/ActivityGroupService/GetActiveActivityGroups.php (68%) rename examples/Dfp/{v201403 => v201502}/ActivityGroupService/GetAllActivityGroups.php (72%) rename examples/Dfp/{v201403 => v201502}/ActivityGroupService/UpdateActivityGroups.php (73%) rename examples/Dfp/{v201403 => v201502}/ActivityService/CreateActivities.php (96%) rename examples/Dfp/{v201403 => v201502}/ActivityService/GetActiveActivities.php (62%) rename examples/Dfp/{v201403 => v201502}/ActivityService/GetAllActivities.php (65%) rename examples/Dfp/{v201403 => v201502}/ActivityService/UpdateActivities.php (71%) rename examples/Dfp/{v201403 => v201502}/AudienceSegmentService/CreateAudienceSegments.php (96%) rename examples/Dfp/{v201403 => v201502}/AudienceSegmentService/GetAllAudienceSegments.php (67%) rename examples/Dfp/{v201403 => v201502}/AudienceSegmentService/GetFirstPartyAudienceSegments.php (66%) rename examples/Dfp/{v201403 => v201502}/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php (62%) rename examples/Dfp/{v201403 => v201502}/AudienceSegmentService/UpdateAudienceSegments.php (61%) create mode 100755 examples/Dfp/v201502/BaseRateService/CreateProductBaseRates.php rename examples/Dfp/{v201403/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php => v201502/BaseRateService/CreateProductTemplateBaseRates.php} (50%) create mode 100755 examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php create mode 100755 examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php create mode 100755 examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php rename examples/Dfp/{v201403/CompanyService/CreateCompaniesExample.php => v201502/CompanyService/CreateCompanies.php} (95%) create mode 100755 examples/Dfp/v201502/CompanyService/GetAdvertisers.php rename examples/Dfp/{v201403/CompanyService/GetAllCompaniesExample.php => v201502/CompanyService/GetAllCompanies.php} (63%) rename examples/Dfp/{v201403/CompanyService/GetCompaniesByStatementExample.php => v201502/CompanyService/UpdateCompanies.php} (55%) rename examples/Dfp/{v201403 => v201502}/ContactService/CreateContacts.php (97%) rename examples/Dfp/{v201403 => v201502}/ContactService/GetAllContacts.php (68%) rename examples/Dfp/{v201403 => v201502}/ContactService/GetUninvitedContacts.php (62%) rename examples/Dfp/{v201403 => v201502}/ContactService/UpdateContacts.php (70%) rename examples/Dfp/{v201403/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php => v201502/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchies.php} (97%) create mode 100755 examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php rename examples/Dfp/{v201403/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php => v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php} (73%) rename examples/Dfp/{v201403/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php => v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php} (68%) rename examples/Dfp/{v201403/ContentService/GetAllContentExample.php => v201502/ContentService/GetAllContent.php} (62%) rename examples/Dfp/{v201403/CreativeService/CreateCreativeFromTemplateExample.php => v201502/CreativeService/CreateCreativeFromTemplate.php} (89%) rename examples/Dfp/{v201403/CreativeService/CreateCreativesExample.php => v201502/CreativeService/CreateCreatives.php} (76%) rename examples/Dfp/{v201403/CreativeService/CreateCustomCreativeExample.php => v201502/CreativeService/CreateCustomCreative.php} (93%) rename examples/Dfp/{v201403/CreativeService/GetAllCreativesExample.php => v201502/CreativeService/GetAllCreatives.php} (63%) create mode 100755 examples/Dfp/v201502/CreativeService/GetImageCreatives.php rename examples/Dfp/{v201403/CreativeService/UpdateCreativesExample.php => v201502/CreativeService/UpdateCreatives.php} (53%) rename examples/Dfp/{v201403/CreativeSetService/CreateCreativeSetsExample.php => v201502/CreativeSetService/CreateCreativeSet.php} (79%) rename examples/Dfp/{v201403/CreativeSetService/GetAllCreativesSetsExample.php => v201502/CreativeSetService/GetAllCreativesSets.php} (65%) create mode 100755 examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php rename examples/Dfp/{v201403/CreativeSetService/UpdateCreativeSetsExample.php => v201502/CreativeSetService/UpdateCreativeSet.php} (58%) rename examples/Dfp/{v201403/CreativeTemplateService/GetAllCreativeTemplatesExample.php => v201502/CreativeTemplateService/GetAllCreativeTemplates.php} (65%) create mode 100755 examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php rename examples/Dfp/{v201403/CreativeWrapperService/CreateCreativeWrappersExample.php => v201502/CreativeWrapperService/CreateCreativeWrappers.php} (97%) create mode 100755 examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php rename examples/Dfp/{v201403/CreativeWrapperService/GetActiveCreativeWrappersExample.php => v201502/CreativeWrapperService/GetActiveCreativeWrappers.php} (53%) create mode 100755 examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php rename examples/Dfp/{v201403/CreativeWrapperService/UpdateCreativeWrappersExample.php => v201502/CreativeWrapperService/UpdateCreativeWrappers.php} (67%) rename examples/Dfp/{v201403 => v201502}/CustomFieldService/CreateCustomFieldOptions.php (95%) rename examples/Dfp/{v201403 => v201502}/CustomFieldService/CreateCustomFields.php (95%) rename examples/Dfp/{v201403/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php => v201502/CustomFieldService/DeactivateCustomFields.php} (55%) rename examples/Dfp/{v201403/CustomFieldService/GetAllCustomFieldsExample.php => v201502/CustomFieldService/GetAllCustomFields.php} (65%) create mode 100755 examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php rename examples/Dfp/{v201403 => v201502}/CustomFieldService/SetLineItemCustomFieldValue.php (93%) rename examples/Dfp/{v201403/CustomFieldService/UpdateCustomFieldExample.php => v201502/CustomFieldService/UpdateCustomFields.php} (66%) rename examples/Dfp/{v201403/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php => v201502/CustomTargetingService/CreateCustomTargetingKeysAndValues.php} (96%) rename examples/Dfp/{v201403/CustomTargetingService/DeleteCustomTargetingKeysExample.php => v201502/CustomTargetingService/DeleteCustomTargetingKeys.php} (57%) rename examples/Dfp/{v201403/CustomTargetingService/DeleteCustomTargetingValuesExample.php => v201502/CustomTargetingService/DeleteCustomTargetingValues.php} (57%) create mode 100755 examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php create mode 100755 examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php rename examples/Dfp/{v201403/CustomTargetingService/UpdateCustomTargetingKeysExample.php => v201502/CustomTargetingService/UpdateCustomTargetingKeys.php} (50%) rename examples/Dfp/{v201403/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php => v201502/CustomTargetingService/UpdateCustomTargetingValues.php} (51%) create mode 100755 examples/Dfp/v201502/ExchangeRateService/CreateExchangeRates.php create mode 100755 examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php create mode 100755 examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php create mode 100755 examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php rename examples/Dfp/{v201403/ForecastService/GetForecastExample.php => v201502/ForecastService/GetAvailabilityForecast.php} (51%) rename examples/Dfp/{v201403/ForecastService/GetForecastByIdExample.php => v201502/ForecastService/GetAvailabilityForecastForLineItem.php} (73%) rename examples/Dfp/{v201403/ReportService/DisplayReportExample.php => v201502/ForecastService/GetDeliveryForecastForLineItems.php} (60%) rename examples/Dfp/{v201403/InventoryService/DeactivateAdUnitsExample.php => v201502/InventoryService/ArchiveAdUnits.php} (53%) create mode 100755 examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php rename examples/Dfp/{v201403/InventoryService/CreateAdUnitsExample.php => v201502/InventoryService/CreateAdUnits.php} (94%) rename examples/Dfp/{v201403/InventoryService/CreateMobileAdUnitExample.php => v201502/InventoryService/CreateMobileAdUnit.php} (94%) rename examples/Dfp/{v201403/InventoryService/CreateVideoAdUnitExample.php => v201502/InventoryService/CreateVideoAdUnit.php} (95%) rename examples/Dfp/{v201403/InventoryService/GetAdUnitSizesExample.php => v201502/InventoryService/GetAllAdUnitSizes.php} (66%) rename examples/Dfp/{v201403/InventoryService/GetAllAdUnitsExample.php => v201502/InventoryService/GetAllAdUnits.php} (62%) rename examples/Dfp/{v201403/InventoryService/GetInventoryTreeExample.php => v201502/InventoryService/GetInventoryTree.php} (99%) rename examples/Dfp/{v201403/InventoryService/GetAdUnitsByStatementExample.php => v201502/InventoryService/GetTopLevelAdUnits.php} (51%) rename examples/Dfp/{v201403/InventoryService/UpdateAdUnitsExample.php => v201502/InventoryService/UpdateAdUnits.php} (51%) rename examples/Dfp/{v201403/LabelService/CreateLabelsExample.php => v201502/LabelService/CreateLabels.php} (94%) rename examples/Dfp/{v201403/LabelService/DeactivateLabelsExample.php => v201502/LabelService/DeactivateLabels.php} (54%) create mode 100755 examples/Dfp/v201502/LabelService/GetActiveLabels.php rename examples/Dfp/{v201403/LabelService/GetAllLabelsExample.php => v201502/LabelService/GetAllLabels.php} (64%) rename examples/Dfp/{v201403/LabelService/GetLabelsByStatementExample.php => v201502/LabelService/UpdateLabels.php} (57%) rename examples/Dfp/{v201403/LicaService/CreateLicasExample.php => v201502/LineItemCreativeAssociationService/CreateLicas.php} (98%) rename examples/Dfp/{v201403/LicaService/DeactivateLicasExample.php => v201502/LineItemCreativeAssociationService/DeactivateLicas.php} (53%) rename examples/Dfp/{v201403/LicaService/GetAllLicasExample.php => v201502/LineItemCreativeAssociationService/GetAllLicas.php} (63%) create mode 100755 examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php rename examples/Dfp/{v201403/LicaService/UpdateLicasExample.php => v201502/LineItemCreativeAssociationService/UpdateLicas.php} (54%) rename examples/Dfp/{v201403/LineItemService/CreateLineItemsExample.php => v201502/LineItemService/CreateLineItems.php} (86%) rename examples/Dfp/{v201403/LineItemService/CreateVideoLineItemExample.php => v201502/LineItemService/CreateVideoLineItems.php} (63%) rename examples/Dfp/{v201403/LineItemService/GetAllLineItemsExample.php => v201502/LineItemService/GetAllLineItems.php} (62%) create mode 100755 examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php create mode 100755 examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php create mode 100755 examples/Dfp/v201502/LineItemService/PauseLineItems.php rename examples/Dfp/{v201403/LineItemService/TargetCustomCriteriaExample.php => v201502/LineItemService/TargetCustomCriteria.php} (84%) create mode 100755 examples/Dfp/v201502/LineItemService/UpdateLineItems.php rename examples/Dfp/{v201403/NetworkService/GetAllNetworksExample.php => v201502/NetworkService/GetAllNetworks.php} (74%) rename examples/Dfp/{v201403/NetworkService/GetCurrentNetworkExample.php => v201502/NetworkService/GetCurrentNetwork.php} (96%) rename examples/Dfp/{v201403/NetworkService/MakeTestNetworkExample.php => v201502/NetworkService/MakeTestNetwork.php} (97%) create mode 100755 examples/Dfp/v201502/OrderService/ApproveOrders.php rename examples/Dfp/{v201403/OrderService/CreateOrdersExample.php => v201502/OrderService/CreateOrders.php} (96%) rename examples/Dfp/{v201403/OrderService/GetAllOrdersExample.php => v201502/OrderService/GetAllOrders.php} (61%) create mode 100755 examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php create mode 100755 examples/Dfp/v201502/OrderService/UpdateOrders.php rename examples/Dfp/{v201403/PlacementService/CreatePlacementsExample.php => v201502/PlacementService/CreatePlacements.php} (97%) rename examples/Dfp/{v201403/PlacementService/DeactivatePlacementsExample.php => v201502/PlacementService/DeactivatePlacements.php} (55%) create mode 100755 examples/Dfp/v201502/PlacementService/GetActivePlacements.php rename examples/Dfp/{v201403/PlacementService/GetAllPlacementsExample.php => v201502/PlacementService/GetAllPlacements.php} (65%) rename examples/Dfp/{v201403/PlacementService/GetPlacementsByStatementExample.php => v201502/PlacementService/UpdatePlacements.php} (53%) create mode 100755 examples/Dfp/v201502/PremiumRateService/CreatePremiumRates.php create mode 100755 examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php create mode 100755 examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php create mode 100755 examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php create mode 100755 examples/Dfp/v201502/ProductService/GetAllProducts.php create mode 100755 examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php create mode 100755 examples/Dfp/v201502/ProductService/UpdateProducts.php create mode 100755 examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php create mode 100755 examples/Dfp/v201502/ProductTemplateService/CreateProductTemplates.php create mode 100755 examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php create mode 100755 examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php create mode 100755 examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php create mode 100755 examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php create mode 100755 examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php create mode 100755 examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php create mode 100755 examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php create mode 100755 examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php create mode 100755 examples/Dfp/v201502/ProposalService/CreateProposals.php create mode 100755 examples/Dfp/v201502/ProposalService/GetAllProposals.php create mode 100755 examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php create mode 100755 examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php create mode 100755 examples/Dfp/v201502/ProposalService/UpdateProposals.php rename examples/Dfp/{v201403 => v201502}/PublisherQueryLanguageService/FetchMatchTables.php (72%) create mode 100755 examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php rename examples/Dfp/{v201403 => v201502}/PublisherQueryLanguageService/GetGeoTargets.php (69%) rename examples/Dfp/{v201403 => v201502}/PublisherQueryLanguageService/GetLineItemsNamedLike.php (73%) create mode 100755 examples/Dfp/v201502/RateCardService/GetAllRateCards.php create mode 100755 examples/Dfp/v201502/RateCardService/GetUsdRateCards.php rename examples/Dfp/{v201403/ReportService/RunDeliveryReportExample.php => v201502/ReportService/RunDeliveryReportForOrder.php} (61%) rename examples/Dfp/{v201403/ReportService/RunInventoryReportExample.php => v201502/ReportService/RunInventoryReport.php} (62%) rename examples/Dfp/{v201403/ReportService/RunReachReportExample.php => v201502/ReportService/RunReachReport.php} (64%) rename examples/Dfp/{v201403/ReportService/RunMergedDeliveryReportExample.php => v201502/ReportService/RunReportWithCustomFields.php} (57%) rename examples/Dfp/{v201403/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php => v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php} (53%) rename examples/Dfp/{v201403/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php => v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php} (64%) create mode 100755 examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php rename examples/Dfp/{v201403/TeamService/CreateTeamsExample.php => v201502/TeamService/CreateTeams.php} (95%) rename examples/Dfp/{v201403/TeamService/GetAllTeamsExample.php => v201502/TeamService/GetAllTeams.php} (62%) rename examples/Dfp/{v201403/TeamService/GetTeamsByStatementExample.php => v201502/TeamService/UpdateTeams.php} (53%) rename examples/Dfp/{v201403/UserService/CreateUsersExample.php => v201502/UserService/CreateUsers.php} (93%) rename examples/Dfp/{v201403/UserService/DeactivateUserExample.php => v201502/UserService/DeactivateUsers.php} (51%) rename examples/Dfp/{v201403/UserService/GetAllRolesExample.php => v201502/UserService/GetAllRoles.php} (72%) rename examples/Dfp/{v201403/UserService/GetAllUsersExample.php => v201502/UserService/GetAllUsers.php} (61%) rename examples/Dfp/{v201403/UserService/GetCurrentUserExample.php => v201502/UserService/GetCurrentUser.php} (95%) rename examples/Dfp/{v201403/UserService/GetUserExample.php => v201502/UserService/GetUser.php} (95%) create mode 100755 examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php rename examples/Dfp/{v201403/UserService/UpdateUsersExample.php => v201502/UserService/UpdateUsers.php} (56%) rename examples/Dfp/{v201403/UserTeamAssociationService/CreateUserTeamAssociationsExample.php => v201502/UserTeamAssociationService/CreateUserTeamAssociations.php} (92%) rename examples/Dfp/{v201403/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php => v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php} (51%) rename examples/Dfp/{v201403/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php => v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php} (59%) create mode 100755 examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php rename examples/Dfp/{v201403/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php => v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php} (52%) create mode 100755 examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php create mode 100755 examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php create mode 100755 examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php create mode 100755 examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php delete mode 100755 src/Google/Api/Ads/Common/Util/AuthToken.php delete mode 100755 src/Google/Api/Ads/Common/Util/AuthTokenException.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ActivityService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/BaseRateService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/CompanyService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ContactService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ContentService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/CreativeService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ForecastService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/LineItemService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/OrderService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/PlacementService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ProductService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ProposalService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/RateCardService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/ReportService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/TeamService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/UserService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/AdRuleService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/CreativeService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/ForecastService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/InventoryService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/LineItemService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/NetworkService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/OrderService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/ProposalService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/CompanyService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ContactService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ContentService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/InventoryService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/NetworkService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/PlacementService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ProductService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/RateCardService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/ReportService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/UserService.php delete mode 100755 src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/ActivityGroupService.php (78%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ActivityService.php (78%) rename src/Google/Api/Ads/Dfp/{v201311/TeamService.php => v201502/AdExclusionRuleService.php} (75%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/AdRuleService.php (83%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/AudienceSegmentService.php (84%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/BaseRateService.php (78%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/CompanyService.php (81%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ContactService.php (77%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ContentBundleService.php (77%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/ContentMetadataKeyHierarchyService.php (77%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ContentService.php (85%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/CreativeService.php (85%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/CreativeSetService.php (86%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/CreativeTemplateService.php (83%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/CreativeWrapperService.php (78%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/CustomFieldService.php (75%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/CustomTargetingService.php (86%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/ExchangeRateService.php (82%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/ForecastService.php (77%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/InventoryService.php (85%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/LabelService.php (79%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/LineItemCreativeAssociationService.php (84%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/LineItemService.php (86%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/LineItemTemplateService.php (84%) rename src/Google/Api/Ads/Dfp/{v201306/LabelService.php => v201502/LiveStreamEventService.php} (73%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/NetworkService.php (86%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/OrderService.php (86%) rename src/Google/Api/Ads/Dfp/{v201311/CreativeSetService.php => v201502/PackageService.php} (72%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/PlacementService.php (79%) rename src/Google/Api/Ads/Dfp/{v201311/BaseRateService.php => v201502/PremiumRateService.php} (70%) rename src/Google/Api/Ads/Dfp/{v201311/ActivityService.php => v201502/ProductPackageItemService.php} (71%) rename src/Google/Api/Ads/Dfp/{v201311/LabelService.php => v201502/ProductPackageService.php} (72%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ProductService.php (78%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/ProductTemplateService.php (77%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/ProposalLineItemService.php (79%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/ProposalService.php (83%) rename src/Google/Api/Ads/Dfp/{v201306/AdRuleService.php => v201502/PublisherQueryLanguageService.php} (70%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/RateCardService.php (76%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ReconciliationOrderReportService.php (82%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/ReconciliationReportRowService.php (84%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ReconciliationReportService.php (79%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/ReportService.php (86%) rename src/Google/Api/Ads/Dfp/{v201306/AudienceSegmentService.php => v201502/SharedAdUnitService.php} (73%) rename src/Google/Api/Ads/Dfp/{v201306 => v201502}/SuggestedAdUnitService.php (83%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/TeamService.php (78%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/UserService.php (79%) rename src/Google/Api/Ads/Dfp/{v201308 => v201502}/UserTeamAssociationService.php (75%) rename src/Google/Api/Ads/Dfp/{v201311 => v201502}/WorkflowRequestService.php (83%) delete mode 100755 tests/Google/Api/Ads/Common/Util/AuthTokenTest.php diff --git a/ChangeLog.md b/ChangeLog.md index 119914ef3..16b26a37f 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,16 @@ +### 5.8.0 + +AdWords: + - Improved targetAll comments in the AddAdGroups.php examples. + - Added code examples for upgraded URLs. + +DFP: + - Added support for v201502. + - Removed support for v201311, v201308, and v201306. + - Removed examples for v201403. + - Updated ForecastService examples. + - Removed support for ClientLogin with the removal of v201311 and earlier. + ### 5.7.1 AdWords: diff --git a/examples/AdWords/v201406/AdvancedOperations/AddTextAdWithUpgradedUrls.php b/examples/AdWords/v201406/AdvancedOperations/AddTextAdWithUpgradedUrls.php index 271d5494b..f99be4972 100755 --- a/examples/AdWords/v201406/AdvancedOperations/AddTextAdWithUpgradedUrls.php +++ b/examples/AdWords/v201406/AdvancedOperations/AddTextAdWithUpgradedUrls.php @@ -63,7 +63,7 @@ function AddTextAdWithUpgradedUrlsExample(AdWordsUser $user, $adGroupId) { // specify one at customer, campaign, ad group, ad, criterion or // feed item levels. $textAd->trackingUrlTemplate = - 'http://tracker.example.com/?cid={_season}&promocode={_promocode}' . + 'http://tracker.example.com/?season={_season}&promocode={_promocode}' . '&u={lpurl}'; // Since your tracking url has two custom parameters, provide their diff --git a/examples/AdWords/v201406/BasicOperations/AddAdGroups.php b/examples/AdWords/v201406/BasicOperations/AddAdGroups.php index f204eca45..431682dd7 100755 --- a/examples/AdWords/v201406/BasicOperations/AddAdGroups.php +++ b/examples/AdWords/v201406/BasicOperations/AddAdGroups.php @@ -61,15 +61,17 @@ function AddAdGroupsExample(AdWordsUser $user, $campaignId) { // Set additional settings (optional). $adGroup->status = 'ENABLED'; - // Targetting restriction settings - these setting only affect serving + // Targeting restriction settings - these settings only affect serving // for the Display Network. $targetingSetting = new TargetingSetting(); // Restricting to serve ads that match your ad group placements. + // This is equivalent to choosing "Target and bid" in the UI. $targetingSetting->details[] = - new TargetingSettingDetail('PLACEMENT', TRUE); - // Using your ad group verticals only for bidding. + new TargetingSettingDetail('PLACEMENT', FALSE); + // Using your ad group verticals only for bidding. This is equivalent + // to choosing "Bid only" in the UI. $targetingSetting->details[] = - new TargetingSettingDetail('VERTICAL', FALSE); + new TargetingSettingDetail('VERTICAL', TRUE); $adGroup->settings[] = $targetingSetting; // Create operation. diff --git a/examples/AdWords/v201409/AdvancedOperations/AddAdCustomizer.php b/examples/AdWords/v201409/AdvancedOperations/AddAdCustomizer.php index 0e4da9a89..98cd164d3 100755 --- a/examples/AdWords/v201409/AdvancedOperations/AddAdCustomizer.php +++ b/examples/AdWords/v201409/AdvancedOperations/AddAdCustomizer.php @@ -304,7 +304,7 @@ function CreateAdsWithCustomizations(AdWordsUser $user, $adGroupIds) { $textAd->headline = 'Luxury Cruise to {=CustomizerFeed.Name}'; $textAd->description1 = 'Only {=CustomizerFeed.Price}'; $textAd->description2 = 'Offer ends in {=countdown(CustomizerFeed.Date)}!'; - $textAd->url = 'http://www.example.com'; + $textAd->finalUrls = array('http://www.example.com'); $textAd->displayUrl = 'www.example.com'; // We add the same ad to both ad groups. When they serve, they will show diff --git a/examples/AdWords/v201409/AdvancedOperations/AddClickToDownloadAd.php b/examples/AdWords/v201409/AdvancedOperations/AddClickToDownloadAd.php index 337e765ff..9b7521f07 100755 --- a/examples/AdWords/v201409/AdvancedOperations/AddClickToDownloadAd.php +++ b/examples/AdWords/v201409/AdvancedOperations/AddClickToDownloadAd.php @@ -50,8 +50,8 @@ function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) { $clickToDownloadAppAd->name = 'Ad for demo game'; $clickToDownloadAppAd->templateId = 353; - $clickToDownloadAppAd->url = - 'http://play.google.com/store/apps/details?id=com.example.demogame'; + $clickToDownloadAppAd->finalUrls = array( + '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 @@ -109,7 +109,7 @@ function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) { foreach ($result->value as $adGroupAd) { printf('New click-to-download ad with ID = %d and URL = "%s" ' . - "was created.\n", $adGroupAd->ad->id, $adGroupAd->ad->url); + "was created.\n", $adGroupAd->ad->id, $adGroupAd->ad->finalUrls[0]); } } diff --git a/examples/AdWords/v201409/AdvancedOperations/AddTextAdWithUpgradedUrls.php b/examples/AdWords/v201409/AdvancedOperations/AddTextAdWithUpgradedUrls.php index 873f4e3d5..1f22a9a64 100755 --- a/examples/AdWords/v201409/AdvancedOperations/AddTextAdWithUpgradedUrls.php +++ b/examples/AdWords/v201409/AdvancedOperations/AddTextAdWithUpgradedUrls.php @@ -1,8 +1,6 @@ trackingUrlTemplate = - 'http://tracker.example.com/?cid={_season}&promocode={_promocode}' . + 'http://tracker.example.com/?season={_season}&promocode={_promocode}' . '&u={lpurl}'; // Since your tracking url has two custom parameters, provide their diff --git a/examples/AdWords/v201409/BasicOperations/AddAdGroups.php b/examples/AdWords/v201409/BasicOperations/AddAdGroups.php index 74af9f273..77aebd4fc 100755 --- a/examples/AdWords/v201409/BasicOperations/AddAdGroups.php +++ b/examples/AdWords/v201409/BasicOperations/AddAdGroups.php @@ -61,15 +61,17 @@ function AddAdGroupsExample(AdWordsUser $user, $campaignId) { // Set additional settings (optional). $adGroup->status = 'ENABLED'; - // Targetting restriction settings - these setting only affect serving + // Targeting restriction settings - these settings only affect serving // for the Display Network. $targetingSetting = new TargetingSetting(); // Restricting to serve ads that match your ad group placements. + // This is equivalent to choosing "Target and bid" in the UI. $targetingSetting->details[] = - new TargetingSettingDetail('PLACEMENT', TRUE); - // Using your ad group verticals only for bidding. + new TargetingSettingDetail('PLACEMENT', FALSE); + // Using your ad group verticals only for bidding. This is equivalent + // to choosing "Bid only" in the UI. $targetingSetting->details[] = - new TargetingSettingDetail('VERTICAL', FALSE); + new TargetingSettingDetail('VERTICAL', TRUE); $adGroup->settings[] = $targetingSetting; // Create operation. diff --git a/examples/AdWords/v201409/BasicOperations/AddKeywords.php b/examples/AdWords/v201409/BasicOperations/AddKeywords.php index 3d62d7f32..8f02bc642 100755 --- a/examples/AdWords/v201409/BasicOperations/AddKeywords.php +++ b/examples/AdWords/v201409/BasicOperations/AddKeywords.php @@ -60,14 +60,15 @@ function AddKeywordsExample(AdWordsUser $user, $adGroupId) { // Set additional settings (optional). $adGroupCriterion->userStatus = 'PAUSED'; - $adGroupCriterion->destinationUrl = 'http://www.example.com/mars'; + $adGroupCriterion->finalUrls = array('http://www.example.com/mars'); // Set bids (optional). $bid = new CpcBid(); $bid->bid = new Money(500000); $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); $biddingStrategyConfiguration->bids[] = $bid; - $adGroupCriterion->biddingStrategyConfiguration = $biddingStrategyConfiguration; + $adGroupCriterion->biddingStrategyConfiguration = + $biddingStrategyConfiguration; $adGroupCriteria[] = $adGroupCriterion; diff --git a/examples/AdWords/v201409/BasicOperations/AddTextAds.php b/examples/AdWords/v201409/BasicOperations/AddTextAds.php index 216186d5d..c8fc675d0 100755 --- a/examples/AdWords/v201409/BasicOperations/AddTextAds.php +++ b/examples/AdWords/v201409/BasicOperations/AddTextAds.php @@ -55,7 +55,7 @@ function AddTextAdsExample(AdWordsUser $user, $adGroupId) { $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'; + $textAd->finalUrls = array('http://www.example.com'); // Create ad group ad. $adGroupAd = new AdGroupAd(); diff --git a/examples/AdWords/v201409/BasicOperations/UpdateKeyword.php b/examples/AdWords/v201409/BasicOperations/UpdateKeyword.php index 1737a3027..f5316a248 100755 --- a/examples/AdWords/v201409/BasicOperations/UpdateKeyword.php +++ b/examples/AdWords/v201409/BasicOperations/UpdateKeyword.php @@ -1,6 +1,6 @@ criterion = new Criterion($criterionId); - // Update destination URL. - $adGroupCriterion->destinationUrl = 'http://www.example.com/new'; + // Update final URL. + $adGroupCriterion->finalUrls = array('http://www.example.com/new'); // Create operation. $operation = new AdGroupCriterionOperation(); diff --git a/examples/AdWords/v201409/CampaignManagement/ValidateTextAd.php b/examples/AdWords/v201409/CampaignManagement/ValidateTextAd.php index 2fb57a5d9..af7c8eded 100755 --- a/examples/AdWords/v201409/CampaignManagement/ValidateTextAd.php +++ b/examples/AdWords/v201409/CampaignManagement/ValidateTextAd.php @@ -54,7 +54,7 @@ function ValidateTextAdExample(AdWordsUser $user, $adGroupId) { $textAd->description1 = 'Description Line 1'; $textAd->description2 = 'Description Line 2'; $textAd->displayUrl = 'www.example.com'; - $textAd->url = 'http://www.example.com'; + $textAd->finalUrls = array('http://www.example.com'); // Create ad group ad. $adGroupAd = new AdGroupAd(); diff --git a/examples/AdWords/v201409/ErrorHandling/HandlePolicyViolationError.php b/examples/AdWords/v201409/ErrorHandling/HandlePolicyViolationError.php index c3614e22f..c1c9cfba8 100755 --- a/examples/AdWords/v201409/ErrorHandling/HandlePolicyViolationError.php +++ b/examples/AdWords/v201409/ErrorHandling/HandlePolicyViolationError.php @@ -56,7 +56,7 @@ function HandlePolicyViolationErrorExample(AdWordsUser $user, $adGroupId) { $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/'; + $textAd->finalUrls = array('http://www.example.com/'); // Create ad group ad. $adGroupAd = new AdGroupAd(); diff --git a/examples/AdWords/v201409/Migration/UpgradeAdUrl.php b/examples/AdWords/v201409/Migration/UpgradeAdUrl.php new file mode 100755 index 000000000..733af2685 --- /dev/null +++ b/examples/AdWords/v201409/Migration/UpgradeAdUrl.php @@ -0,0 +1,102 @@ +GetService('AdGroupAdService', ADWORDS_VERSION); + + $adGroupAd = NULL; + + // Retrieving the ad first. + $selector = new Selector(); + $selector->fields = array('Id', 'Url'); + $selector->ordering[] = new OrderBy('Headline', 'ASCENDING'); + + // Restrict the fetch to only the selected ad group ID and ad ID. + $selector->predicates[] = + new Predicate('AdGroupId', 'EQUALS', array($adGroupId)); + $selector->predicates[] = new Predicate('Id', 'EQUALS', array($adId)); + + $page = $adGroupAdService->get($selector); + + if (isset($page->entries)) { + $adGroupAd = $page->entries[0]; + printf("About to upgrade ad ID %d with URL '%s'.\n", + $adGroupAd->ad->id, $adGroupAd->ad->url); + } else { + print "Ad for upgrade was not found.\n"; + return; + } + + // Proceed with URL upgrade. + $upgradeUrl = new AdUrlUpgrade(); + $upgradeUrl->adId = $adGroupAd->ad->id; + $upgradeUrl->finalUrl = $adGroupAd->ad->url; + + $result = $adGroupAdService->upgradeUrl(array($upgradeUrl)); + + // Display results. + foreach ($result as $adGroupAd) { + printf("Text ad with ID %d was upgraded to final URLs: '%s'.\n", + $adGroupAd->id, join(",", $adGroupAd->finalUrls)); + } +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Get AdWordsUser from credentials in "../auth.ini" + // relative to the AdWordsUser.php file's directory. + $user = new AdWordsUser(); + + // Log every SOAP XML request and response. + $user->LogAll(); + + // Run the example. + UpgradeAdUrlExample($user, $adGroupId, $adId); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Common/HandleCaptcha.php b/examples/Common/HandleCaptcha.php deleted file mode 100755 index 5fdfe3cdb..000000000 --- a/examples/Common/HandleCaptcha.php +++ /dev/null @@ -1,90 +0,0 @@ -GetAuthToken(); - print '.'; - } - } catch (AuthTokenException $e) { - print "\n"; - if ($e->GetError() == 'CaptchaRequired') { - print "A CAPTCHA is required.\n"; - printf("View CAPTCHA challenge image: %s/accounts/%s\n", - $authToken->GetServer(), $e->GetCaptchaUrl()); - $captchaToken = $e->GetCaptchaToken(); - $captchaResponse = readInput('Enter CAPTCHA response: '); - // Request new AuthToken using CAPTCHA token and response. - try { - $authToken = new AuthToken($email, $password, $service, $source, NULL, - NULL, $captchaToken, $captchaResponse); - $value = $authToken->GetAuthToken(); - print "CAPTCHA challenge passed.\n"; - } catch (AuthTokenException $e) { - print "CAPTCHA challenge failed.\n"; - } - } else { - printf("AuthTokenException: %s\n", $e->GetError()); - } - } -} catch (Exception $e) { - print $e->getMessage(); -} - diff --git a/examples/Dfp/v201403/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201403/CompanyService/UpdateCompaniesExample.php deleted file mode 100755 index 2fea6c18c..000000000 --- a/examples/Dfp/v201403/CompanyService/UpdateCompaniesExample.php +++ /dev/null @@ -1,93 +0,0 @@ -LogDefaults(); - - // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201403'); - - // Create a statement to only select companies that are advertisers. - $filterStatement = new Statement("WHERE type = 'ADVERTISER' LIMIT 500"); - - // Get companies by statement. - $page = $companyService->getCompaniesByStatement($filterStatement); - - if (isset($page->results)) { - $companies = $page->results; - - // Update each local company object by appending LLC. to its name. - foreach ($companies as $company) { - $company->name .= ' LLC.'; - } - - // Update the companies on the server. - $companies = $companyService->updateCompanies($companies); - - // Display results. - if (isset($companies)) { - foreach ($companies as $company) { - print 'A company with ID "' . $company->id - . '" and name "' . $company->name . "\" was updated.\n"; - } - } else { - print "No companies updated.\n"; - } - } else { - print "No companies found to update.\n"; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201403/ContentService/GetContentByCategoryExample.php deleted file mode 100755 index 63a87bac2..000000000 --- a/examples/Dfp/v201403/ContentService/GetContentByCategoryExample.php +++ /dev/null @@ -1,113 +0,0 @@ -LogDefaults(); - - // Get the ContentService. - $contentService = $user->GetService('ContentService', 'v201403'); - - // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201403'); - - // Get content browse custom targeting key ID. - $network = $networkService->getCurrentNetwork(); - $contentBrowseCustomTargetingKeyId = - $network->contentBrowseCustomTargetingKeyId; - - // Create a statement to select the categories matching the name comedy. - $categoryFilterStatement = new Statement( - "WHERE customTargetingKeyId = :contentBrowseCustomTargetingKeyId " - . "and name = :category LIMIT 1"); - $categoryFilterStatement->values = MapUtils::GetMapEntries(array( - 'contentBrowseCustomTargetingKeyId' => - new NumberValue($contentBrowseCustomTargetingKeyId), - 'category' => new TextValue('comedy'))); - - // Get categories matching the filter statement. - $customTargetingValuePage = - $customTargetingService->getCustomTargetingValuesByStatement( - $categoryFilterStatement); - - // Get the custom targeting value ID for the comedy category. - $categoryCustomTargetingValueId = $customTargetingValuePage->results[0]->id; - - // Create a statement to get all active content. - $filterStatement = new Statement("WHERE status = 'ACTIVE' LIMIT 500"); - - // Get content by statement. - $page = $contentService->getContentByStatementAndCustomTargetingValue( - $filterStatement, $categoryCustomTargetingValueId); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $content) { - printf( - "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", - $i, $content->id, $content->name, $content->status); - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201403/CreativeService/AssociateCreativeSetToLineItemExample.php deleted file mode 100755 index 25b39fea7..000000000 --- a/examples/Dfp/v201403/CreativeService/AssociateCreativeSetToLineItemExample.php +++ /dev/null @@ -1,78 +0,0 @@ -LogDefaults(); - - // Get the LineItemCreativeAssociationService. - $licaService = $user->GetService('LineItemCreativeAssociationService', - 'v201403'); - - // Set the line item ID and creative set ID to associate. - $lineItemId = "INSERT_LINE_ITEM_ID_HERE"; - $creativeSetId = "INSERT_CREATIVE_SET_ID_HERE"; - - $lica = new LineItemCreativeAssociation(); - $lica->lineItemId = $lineItemId; - $lica->creativeSetId = $creativeSetId; - - // Create the LICA on the server. - $licas = $licaService->createLineItemCreativeAssociations(array($lica)); - $lica = $licas[0]; - - printf("A LICA with line item ID %d and creative set ID %d was created.", - $lica->lineItemId, $lica->creativeSetId); -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201403/CreativeService/GetCreativesByStatementExample.php deleted file mode 100755 index 995cf5c1a..000000000 --- a/examples/Dfp/v201403/CreativeService/GetCreativesByStatementExample.php +++ /dev/null @@ -1,88 +0,0 @@ -LogDefaults(); - - // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201403'); - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('creativeType' => new TextValue('ImageCreative'))); - - // Create a statement to only select image creatives. - $filterStatement = - new Statement("WHERE creativeType = :creativeType LIMIT 500", $vars); - - // Get creatives by statement. - $page = $creativeService->getCreativesByStatement($filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $creative) { - print $i . ') Creative with ID "' . $creative->id - . '", name "' . $creative->name - . '", and type "' . $creative->CreativeType - . "\" was found.\n"; - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201403/CreativeSetService/GetCreativeSetsByStatementExample.php deleted file mode 100755 index 7f58ebc24..000000000 --- a/examples/Dfp/v201403/CreativeSetService/GetCreativeSetsByStatementExample.php +++ /dev/null @@ -1,90 +0,0 @@ -LogDefaults(); - - // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201403'); - - $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('masterCreativeId' => new NumberValue($masterCreativeID))); - - // Create a statement object to only select creative sets that have the given - // master creative. - $filterStatement = - new Statement("WHERE masterCreativeId = :masterCreativeId LIMIT 500", - $vars); - - // Get creative sets by statement. - $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $creativeSet) { - printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " - . ", and companion creativeID(s) {%s} was found.\n", - $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, - join(',', $creativeSet->companionCreativeIds)); - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201403/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php deleted file mode 100755 index f2d90696b..000000000 --- a/examples/Dfp/v201403/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php +++ /dev/null @@ -1,84 +0,0 @@ -LogDefaults(); - - // Get the CreativeTemplateService. - $creativeTemplateService = - $user->GetService('CreativeTemplateService', 'v201403'); - - // Create a statement to only select system defined creative templates. - $filterStatement = - new Statement("WHERE type = :type LIMIT 500"); - $filterStatement->values = MapUtils::GetMapEntries( - array('type' => new TextValue('SYSTEM_DEFINED'))); - - // Get creative templates by statement. - $page = $creativeTemplateService->getCreativeTemplatesByStatement( - $filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $creativeTemplate) { - printf("%d) Creative template with ID '%s', name '%s', and type '%s' " - ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, - $creativeTemplate->type); - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201403/CreativeWrapperService/DeactivateCreativeWrapperExample.php deleted file mode 100755 index 549979e3c..000000000 --- a/examples/Dfp/v201403/CreativeWrapperService/DeactivateCreativeWrapperExample.php +++ /dev/null @@ -1,97 +0,0 @@ -LogDefaults(); - - // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); - - $labelId = 'INSERT_LABEL_ID_HERE'; - - // Create a query to select the active creative wrappers for the given label. - $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'), - 'labelId' => new NumberValue($labelId))); - $filterStatement = - new Statement('WHERE status = :status AND labelId = :labelId', $vars); - - // Get creative wrappers by statement. - $page = - $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); - - // Display results. - if (isset($page->results)) { - foreach ($page->results as $creativeWrapper) { - printf("Creative wrapper with ID '%s' applying to label '%s' with" . - " status '%s' will be deactivated.\n", $creativeWrapper->id, - $creativeWrapper->labelId, $creativeWrapper->status); - } - } - - printf("Number of creative wrappers to be deactivated: %s\n", - $page->totalResultSetSize); - - // Perform action. - $result = $creativeWrapperService->performCreativeWrapperAction( - new DeactivateCreativeWrappers(), $filterStatement); - - // Display results. - if (isset($result) && $result->numChanges > 0) { - printf("Number of creative wrappers deactivated: %s\n", - $result->numChanges); - } else { - printf("No creative wrappers were deactivated.\n"); - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - - diff --git a/examples/Dfp/v201403/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201403/CreativeWrapperService/GetAllCreativeWrappersExample.php deleted file mode 100755 index 37355f6b4..000000000 --- a/examples/Dfp/v201403/CreativeWrapperService/GetAllCreativeWrappersExample.php +++ /dev/null @@ -1,76 +0,0 @@ -LogDefaults(); - - // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); - - // Get creative wrappers by statement. - $page = - $creativeWrapperService->getCreativeWrappersByStatement(new Statement()); - - // Display results. - if (isset($page->results)) { - foreach ($page->results as $creativeWrapper) { - printf("Creative wrapper with ID '%s' applying to label '%s' with" . - " status '%s' was found.\n", $creativeWrapper->id, - $creativeWrapper->labelId, $creativeWrapper->status); - } - } - - printf("Number of results found: %s\n", $page->totalResultSetSize); -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - - diff --git a/examples/Dfp/v201403/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201403/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php deleted file mode 100755 index ad7fa3f81..000000000 --- a/examples/Dfp/v201403/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php +++ /dev/null @@ -1,137 +0,0 @@ -LogDefaults(); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201403'); - - $keys = array(); - $offset = 0; - - do { - // Create statement to page through all custom targeting keys. - $filterStatement = new Statement('LIMIT 500 OFFSET ' . $offset); - - // Get custom targeting keys by statement. - $page = $customTargetingService->getCustomTargetingKeysByStatement( - $filterStatement); - - if (isset($page->results)) { - $keys = array_merge($keys, $page->results); - } - - $offset += 500; - } while ($offset < $page->totalResultSetSize); - - - $values = array(); - - if (sizeof($keys) > 0) { - $keyIds = array_map(create_function('$key', 'return $key->id;'), $keys); - - // Create statement text to all custom targeting values for all custom - // targeting keys. - $filterStatementText = sprintf('WHERE customTargetingKeyId IN (%s)', - implode(',', $keyIds)); - $offset = 0; - - do { - // Create statement to page through all custom targeting values. - $filterStatement = new Statement($filterStatementText . - ' LIMIT 500 OFFSET ' . $offset); - - // Get custom targeting values by statement. - $page = $customTargetingService->getCustomTargetingValuesByStatement( - $filterStatement); - - if (isset($page->results)) { - $values = array_merge($values, $page->results); - } - - $offset += 500; - } while ($offset < $page->totalResultSetSize); - } - - // Create map of custom targeting key id to custom targeting values. - $keyIdToValueMap = array(); - foreach ($values as $value) { - $keyIdToValueMap[$value->customTargetingKeyId][] = $value; - } - - // Display keys and values. - $keyCount = 0; - foreach ($keys as $key) { - printf("%d) Custom targeting key with ID '%s', name '%s', display " . - "name '%s', and type '%s' was found.\n", $keyCount, $key->id, - $key->name, $key->displayName, $key->type); - if (array_key_exists($key->id, $keyIdToValueMap)) { - $valueCount = 0; - foreach ($keyIdToValueMap[$key->id] as $value) { - printf("\t%d) Custom targeting value with ID '%s', name '%s', and " . - "display name '%s' was found.\n", $valueCount, $value->id, - $value->name, $value->displayName); - $valueCount++; - } - } - $keyCount++; - } - - printf("Found %d keys and %d values.\n", sizeof($keys), sizeof($values)); -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php deleted file mode 100755 index 047b8609e..000000000 --- a/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php +++ /dev/null @@ -1,85 +0,0 @@ -LogDefaults(); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201403'); - - // Create a statement to only select predefined custom targeting keys. - $filterStatement = new Statement('WHERE type = :type LIMIT 500', - MapUtils::GetMapEntries(array('type' => new TextValue('PREDEFINED')))); - - // Get custom targeting keys by statement. - $page = $customTargetingService->getCustomTargetingKeysByStatement( - $filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $key) { - printf("%d) Custom targeting key with ID '%s', name '%s', display " . - "name '%s', and type '%s' was found.\n", $i, $key->id, $key->name, - $key->displayName, $key->type); - $i++; - } - } - - printf("Number of results found: %d\n", sizeof($page->results)); -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingValuesExample.php deleted file mode 100755 index 45adff720..000000000 --- a/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingValuesExample.php +++ /dev/null @@ -1,106 +0,0 @@ -LogDefaults(); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201403'); - - // Set the ID of the custom targeting key to get custom targeting values for. - $valueId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; - - // Create a statement to only select custom targeting values for a given key. - $filterStatement = new Statement( - 'WHERE customTargetingKeyId = :keyId LIMIT 500', - MapUtils::GetMapEntries(array('keyId' => new NumberValue($valueId)))); - - // Get custom targeting keys by statement. - $page = $customTargetingService->getCustomTargetingValuesByStatement( - $filterStatement); - - if (isset($page->results)) { - $values = $page->results; - - // Update each local custom targeting value object by changing its display - // name. - foreach ($values as $value) { - if (empty($value->displayName)) { - $value->displayName = $value->name; - } - $value->displayName .= ' (Deprecated)'; - } - - // Update the custom targeting values on the server. - $values = $customTargetingService->updateCustomTargetingValues($values); - - // Display results. - if (isset($values)) { - foreach ($page->results as $value) { - printf("Custom targeting value with ID '%s', name '%s', and " . - "display name '%s' was updated.\n", $value->id, $value->name, - $value->displayName); - } - } else { - print "No custom targeting values updated.\n"; - } - } else { - print "No custom targeting values found to update.\n"; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201403/LabelService/UpdateLabelsExample.php deleted file mode 100755 index c29717bf2..000000000 --- a/examples/Dfp/v201403/LabelService/UpdateLabelsExample.php +++ /dev/null @@ -1,95 +0,0 @@ -LogDefaults(); - - // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201403'); - - // Create a statement to only select labels that are active. - $filterStatement = new Statement( - "WHERE isActive = true LIMIT 500"); - - // Get labels by statement. - $page = $labelService->getLabelsByStatement($filterStatement); - - if (isset($page->results)) { - $labels = $page->results; - - // Update each local label object's description. - foreach ($labels as $label) { - $label->description = 'Last updated on ' . date('Ymd'); - } - - // Update the labels on the server. - $labels = $labelService->updateLabels($labels); - - // Display results. - if (isset($labels)) { - foreach ($labels as $label) { - printf("A label with ID '%s', name '%s', and description '%s' was " - . "updated.\n", $label->id, $label->name, $label->description); - } - } else { - print "No labels updated.\n"; - } - } else { - print "No labels found to update.\n"; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201403/LicaService/GetLicasByStatementExample.php deleted file mode 100755 index d5eadf2b2..000000000 --- a/examples/Dfp/v201403/LicaService/GetLicasByStatementExample.php +++ /dev/null @@ -1,93 +0,0 @@ -LogDefaults(); - - // Get the LineItemCreativeAssociationService. - $licaService = - $user->GetService('LineItemCreativeAssociationService', 'v201403'); - - // Set the line item to get LICAs by. - $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('lineItemId' => new NumberValue($lineItemId))); - - // Create a statement to only select LICAs for the given lineItem ID. - $filterStatement = - new Statement("WHERE lineItemId = :lineItemId LIMIT 500", $vars); - - // Get LICAs by statement. - $page = $licaService->getLineItemCreativeAssociationsByStatement( - $filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $lica) { - print $i . ') LICA with line item ID "' . $lica->lineItemId - . '", creative ID "' . $lica->creativeId - . '", and status "' . $lica->status - . "\" was created.\n"; - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/LineItemService/ActivateLineItemsExample.php b/examples/Dfp/v201403/LineItemService/ActivateLineItemsExample.php deleted file mode 100755 index d0d55fe41..000000000 --- a/examples/Dfp/v201403/LineItemService/ActivateLineItemsExample.php +++ /dev/null @@ -1,132 +0,0 @@ -LogDefaults(); - - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); - - // Set the ID of the order to get line items from. - $orderId = 'INSERT_ORDER_ID_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('orderId' => new NumberValue($orderId))); - - // Create statement text to select approved line items from a given order. - $filterStatementText = - "WHERE orderId = :orderId AND status = 'NEEDS_CREATIVES'"; - - $offset = 0; - - do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, - $vars); - - // Get line items by statement. - $page = $lineItemService->getLineItemsByStatement($filterStatement); - - // Display results. - $lineItemIds = array(); - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $lineItem) { - // Archived line items cannot be activated. - if (!$lineItem->isArchived) { - print $i . ') Line item with ID "' - . $lineItem->id . '", belonging to order ID "' - . $lineItem->orderId . '", and name "' . $lineItem->name - . "\" will be activated.\n"; - $i++; - $lineItemIds[] = $lineItem->id; - } - } - } - - $offset += 500; - } while ($offset < $page->totalResultSetSize); - - print 'Number of line items to be activated: ' . sizeof($lineItemIds) . "\n"; - - if (sizeof($lineItemIds) > 0) { - // Create action statement. - $filterStatementText = - sprintf('WHERE id IN (%s)', implode(',', $lineItemIds)); - $filterStatement = new Statement($filterStatementText); - - // Create action. - $action = new ActivateLineItems(); - - // Perform action. - $result = - $lineItemService->performLineItemAction($action, $filterStatement); - - // Display results. - if (isset($result) && $result->numChanges > 0) { - print 'Number of line items activated: ' . $result->numChanges . "\n"; - } else { - print "No line items were activated.\n"; - } - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/LineItemService/AuditLineItemsGeoTargetingExample.php b/examples/Dfp/v201403/LineItemService/AuditLineItemsGeoTargetingExample.php deleted file mode 100755 index f41cc6622..000000000 --- a/examples/Dfp/v201403/LineItemService/AuditLineItemsGeoTargetingExample.php +++ /dev/null @@ -1,213 +0,0 @@ -select($selectStatementOffset); - - if (isset($resultSet->rows)) { - foreach($resultSet->rows as $row) { - $untargetableLocationIds[] = $row->values[0]->value; - } - - $resultSetSize = count($resultSet->rows); - } - - $offset += $LIMIT; - } while ($resultSetSize == $LIMIT); - - return $untargetableLocationIds; -} - -/** - * Finds all untargetable locations. - * - * @param DfpUser $user the user credentials to use for API calls - * @return a list of untargetable location IDs - */ -function getAllUntargetableLocations($user) { - // Tables that represent all different location types. - $LOCATION_TABLES = array('Country', 'Region', 'Metro', 'City', 'Postal_Code'); - - // Get the PublisherQueryLanguageService. - $pqlService = $user->GetService('PublisherQueryLanguageService', - API_VERSION); - $untargetableLocationIds = array(); - - // Find all untargetable locations for each location type. - foreach ($LOCATION_TABLES as $table) { - $untargetableLocationIds = array_merge($untargetableLocationIds, - getAllUntargetableLocationsHelper($pqlService, $table)); - } - - return $untargetableLocationIds; -} - -/** - * Builds a map of geo targets to the line items targeting them. - * - * @param DfpUser $user the user credentials to use for API calls - * @return a map of geo targets to the line items targeting them - */ -function buildGeoTargetToLineItemsMap($user) { - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', API_VERSION); - - // Set defaults for page and statement. - $LIMIT = 500; - $page = new LineItemPage(); - $filterStatement = new Statement(); - $offset = 0; - - // Map of geo targets to all line items targeting it. - $geoTargetToLineItemsMap = array(); - - do { - // Create a statement to get all line items. - $filterStatement->query = 'LIMIT '. $LIMIT . ' OFFSET ' . $offset; - - // Get line items by statement. - $page = $lineItemService->getLineItemsByStatement($filterStatement); - - // If a line item has geo targeting, store it in the map. - if (isset($page->results)) { - foreach ($page->results as $lineItem) { - if (isset($lineItem->targeting->geoTargeting->targetedLocations)) { - foreach ($lineItem->targeting->geoTargeting->targetedLocations as - $targetedLocation) { - $lineItemIds = array(); - if (isset($geoTargetToLineItemsMap[$targetedLocation->id])) { - $lineItemIds = $geoTargetToLineItemsMap[$targetedLocation->id]; - } - $lineItemIds[] = $lineItem->id; - $geoTargetToLineItemsMap[$targetedLocation->id] = $lineItemIds; - } - } - } - } - - $offset += $LIMIT; - } while ($offset < $page->totalResultSetSize); - - return $geoTargetToLineItemsMap; -} - -/** - * Finds all the geo targets in the specified map that are deprecated. - * - * @param array $geoTargetToLineItemsMap a map of geo targets to the line items - * targeting them - * @param array $untargetableLocationIds a list of deprecated location IDs - * @return a map of deprecated geo targets to the line items targeting them - */ -function findLineItemsToUpdate($geoTargetToLineItemsMap, - $untargetableLocationIds) { - // A map of deprecated geo targets to the line items targeting them. - $lineItemsToUpdate = array(); - - foreach ($geoTargetToLineItemsMap as $geoTargetId => $lineItemIds) { - if (in_array($geoTargetId, $untargetableLocationIds)) { - $lineItemsToUpdate[$geoTargetId] = $lineItemIds; - } - } - - return $lineItemsToUpdate; -} - -try { - // Get DfpUser from credentials in "../auth.ini" - // relative to the DfpUser.php file's directory. - $user = new DfpUser(); - - // Log SOAP XML request and response. - $user->LogAll(); - - // Find all untargetable locations. - $untargetableLocationIds = getAllUntargetableLocations($user); - printf("Found %d untargetable locations.\n", count($untargetableLocationIds)); - - // Build a map of geo targets to the line items targeting them. - $geoTargetToLineItemsMap = buildGeoTargetToLineItemsMap($user); - - // Find all the deprecated geo targets from that map. - $lineItemsToUpdate = findLineItemsToUpdate($geoTargetToLineItemsMap, - $untargetableLocationIds); - - $i = 0; - // Print the line items that need to be updated. - foreach ($lineItemsToUpdate as $geoTargetId => $lineItemIds) { - printf("%d) The following line items are targeting deprecated location %d" - . " and need to be updated: %s\n", $i, $geoTargetId, implode(', ', - $lineItemIds)); - $i++; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/LineItemService/CreateMobileLineItemExample.php b/examples/Dfp/v201403/LineItemService/CreateMobileLineItemExample.php deleted file mode 100755 index 6c5f38823..000000000 --- a/examples/Dfp/v201403/LineItemService/CreateMobileLineItemExample.php +++ /dev/null @@ -1,157 +0,0 @@ -LogDefaults(); - - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); - - // Set the order that all created line items will belong to and the placement - // ID to target. - $orderId = 'INSERT_ORDER_ID_HERE'; - $targetPlacementIds = array('INSERT_MOBILE_PLACEMENT_ID_HERE'); - - // Create inventory targeting. - $inventoryTargeting = new InventoryTargeting(); - $inventoryTargeting->targetedPlacementIds = $targetPlacementIds; - - // Create technology targeting. - $technologyTargeting = new TechnologyTargeting(); - - // Create device manufacturer targeting. - $deviceManufacturerTargeting = new DeviceManufacturerTargeting(); - $deviceManufacturerTargeting->isTargeted = TRUE; - - // Target the Google device manufacturer (40100). - $deviceManufacturerTechnology = new Technology(); - $deviceManufacturerTechnology->id = 40100; - $deviceManufacturerTargeting->deviceManufacturers = - array($deviceManufacturerTechnology); - $technologyTargeting->deviceManufacturerTargeting = - $deviceManufacturerTargeting; - - // Create mobile device targeting. - $mobileDeviceTargeting = new MobileDeviceTargeting(); - - // Exclude the Nexus One device (604046). - $mobileDeviceTechnology = new Technology(); - $mobileDeviceTechnology->id = 604046; - $mobileDeviceTargeting->targetedMobileDevices = - array($mobileDeviceTechnology); - $technologyTargeting->mobileDeviceTargeting = $mobileDeviceTargeting; - - // Create mobile device submodel targeting. - $mobileDeviceSubmodelTargeting = new MobileDeviceSubmodelTargeting(); - - // Target the iPhone 4 device submodel (640003). - $mobileDeviceSubmodelTechnology = new Technology(); - $mobileDeviceSubmodelTechnology->id = 640003; - $mobileDeviceSubmodelTargeting->targetedMobileDeviceSubmodels = - array($mobileDeviceSubmodelTechnology); - $technologyTargeting->mobileDeviceSubmodelTargeting = - $mobileDeviceSubmodelTargeting; - - // Create targeting. - $targeting = new Targeting(); - $targeting->inventoryTargeting = $inventoryTargeting; - $targeting->technologyTargeting = $technologyTargeting; - - // Create local line item object. - $lineItem = new LineItem(); - $lineItem->name = 'Mobile line item'; - $lineItem->orderId = $orderId; - $lineItem->targeting = $targeting; - $lineItem->lineItemType = 'STANDARD'; - $lineItem->allowOverbook = TRUE; - - // Set the target platform to mobile. - $lineItem->targetPlatform = 'MOBILE'; - - // Set the creative rotation type to even. - $lineItem->creativeRotationType = 'EVEN'; - - // Create the creative placeholder. - $creativePlaceholder = new CreativePlaceholder(); - $creativePlaceholder->size = new Size(300, 250, FALSE); - - // Set the size of creatives that can be associated with this line item. - $lineItem->creativePlaceholders = array($creativePlaceholder); - - // Set the length of the line item to run. - $lineItem->startDateTimeType = 'IMMEDIATELY'; - $lineItem->endDateTime = - DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); - - // Set the cost per unit to $2. - $lineItem->costType = 'CPM'; - $lineItem->costPerUnit = new Money('USD', 2000000); - - // Set the number of units bought to 500,000 so that the budget is $1,000. - $lineItem->unitsBought = 500000; - $lineItem->unitType = 'IMPRESSIONS'; - - // Create the line item on the server. - $lineItems = $lineItemService->createLineItems(array($lineItem)); - - foreach ($lineItems as $lineItem) { - prinf("A line item with with ID '%s', belonging to order ID '%s', and name " - . "'%s' was created.\n", $lineItem->id, $lineItem->orderId, - $lineItem->name); - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - printf("%s\n", $e->getMessage()); -} - diff --git a/examples/Dfp/v201403/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201403/LineItemService/GetLineItemsByStatementExample.php deleted file mode 100755 index df3bda0c3..000000000 --- a/examples/Dfp/v201403/LineItemService/GetLineItemsByStatementExample.php +++ /dev/null @@ -1,94 +0,0 @@ -LogDefaults(); - - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); - - // Set the ID of the order to get line items from. - $orderId = 'INSERT_ORDER_ID_HERE'; - - // Create bind variables. - $vars = - MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId))); - - // Create a statement to only select line items that need creatives - // from a given order. - $filterStatement = new Statement("WHERE orderId = :orderId " - . " AND status = 'NEEDS_CREATIVES' LIMIT 500", $vars); - - // Get line items by statement. - $page = $lineItemService->getLineItemsByStatement($filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $lineItem) { - print $i . ') Line item with ID "' - . $lineItem->id . '", belonging to order ID "' - . $lineItem->orderId . '", and name "' . $lineItem->name - . "\" was found.\n"; - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201403/LineItemService/GetRecentlyUpdatedLineItems.php deleted file mode 100755 index ae2e8fe57..000000000 --- a/examples/Dfp/v201403/LineItemService/GetRecentlyUpdatedLineItems.php +++ /dev/null @@ -1,103 +0,0 @@ -LogDefaults(); - - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); - - // Set the ID of the order to get line items from. - $orderId = 'INSERT_ORDER_ID_HERE'; - - // Calculate time from three days ago. - $threeDaysAgo = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, - strtotime('-3 day')); - - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('orderId' => new NumberValue($orderId), - 'threeDaysAgo' => new TextValue($threeDaysAgo))); - - // Create statement object to only select line items belonging to the order - // and have been modified in the last 3 days. - $filterStatement = new Statement("WHERE orderId = :orderId " - . "AND lastModifiedDateTime >= :threeDaysAgo " - . "LIMIT 500", $vars); - - // Get line items by statement. - $page = $lineItemService->getLineItemsByStatement($filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $lineItem) { - // Format lastModifiedDateTime for printing. - $lastModifiedDateTime = - DateTimeUtils::GetDateTime($lineItem->lastModifiedDateTime); - $lastModifiedDateTimeText = $lastModifiedDateTime - ->format(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT); - - print $i . ') Line item with ID "' - . $lineItem->id . '", belonging to order ID "' - . $lineItem->orderId . '", with name "' . $lineItem->name - . '", and last modified ' . $lastModifiedDateTimeText - . " was found.\n"; - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201403/LineItemService/UpdateLineItemsExample.php deleted file mode 100755 index 40b42bd26..000000000 --- a/examples/Dfp/v201403/LineItemService/UpdateLineItemsExample.php +++ /dev/null @@ -1,104 +0,0 @@ -LogDefaults(); - - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); - - // Set the ID of the order to get line items from. - $orderId = 'INSERT_ORDER_ID_HERE'; - - // Create a statement to get line items with even delivery rates. - $filterStatement = - new Statement("WHERE deliveryRateType = 'EVENLY' and orderId = " - . $orderId . ' LIMIT 500'); - - // Get line items by statement. - $page = $lineItemService->getLineItemsByStatement($filterStatement); - - if (isset($page->results)) { - $lineItems = $page->results; - - // Remove archived line items. - array_filter($lineItems, - create_function('$lineItem', 'return !$lineItem->isArchived;')); - - // Update each local line item object by changing its delivery rate. - foreach ($lineItems as $lineItem) { - $lineItem->deliveryRateType = 'AS_FAST_AS_POSSIBLE'; - } - - // Update the line items on the server. - $lineItems = $lineItemService->updateLineItems($lineItems); - - // Display results. - if (isset($lineItems)) { - foreach ($lineItems as $lineItem) { - print 'A line item with ID "' - . $lineItem->id . '", belonging to order ID "' - . $lineItem->orderId . '", name "' . $lineItem->name - . '", and delivery rate "' . $lineItem->deliveryRateType - . "\" was updated.\n"; - } - } else { - print "No line items updated.\n"; - } - } else { - print "No line items found to update.\n"; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201403/OrderService/ApproveOrdersExample.php deleted file mode 100755 index 1260ad3a6..000000000 --- a/examples/Dfp/v201403/OrderService/ApproveOrdersExample.php +++ /dev/null @@ -1,128 +0,0 @@ -LogDefaults(); - - // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201403'); - - // Create a datetime representing today. - $today = date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, strtotime('now')); - - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('today' => new TextValue($today))); - - // Create statement text to get all draft and pending approval orders that - // haven't ended and aren't archived. - $filterStatementText = "WHERE status IN ('DRAFT', 'PENDING_APPROVAL') " - . "AND endDateTime >= :today " - . "AND isArchived = FALSE "; - - $offset = 0; - - do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " - . $offset, $vars); - - // Get orders by statement. - $page = $orderService->getOrdersByStatement($filterStatement); - - // Display results. - $orderIds = array(); - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $order) { - // Archived orders cannot be approved. - if (!$order->isArchived) { - print $i . ') Order with ID "' . $order->id - . '", name "' . $order->name - . '", and status "' . $order->status - . "\" will be approved.\n"; - $i++; - $orderIds[] = $order->id; - } - } - } - - $offset += 500; - } while ($offset < $page->totalResultSetSize); - - print 'Number of orders to be approved: ' . sizeof($orderIds) . "\n"; - - if (sizeof($orderIds) > 0) { - // Create action statement. - $filterStatementText = - sprintf('WHERE id IN (%s)', implode(',', $orderIds)); - $filterStatement = new Statement($filterStatementText); - - // Create action. - $action = new ApproveAndOverbookOrders(); - - // Perform action. - $result = $orderService->performOrderAction($action, $filterStatement); - - // Display results. - if (isset($result) && $result->numChanges > 0) { - print 'Number of orders approved: ' . $result->numChanges . "\n"; - } else { - print "No orders were approved.\n"; - } - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201403/OrderService/GetOrdersByStatementExample.php deleted file mode 100755 index 87f227a1a..000000000 --- a/examples/Dfp/v201403/OrderService/GetOrdersByStatementExample.php +++ /dev/null @@ -1,92 +0,0 @@ -LogDefaults(); - - // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201403'); - - // Set the ID of the advertiser (company) to get orders for. - $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('advertiserId' => new NumberValue($advertiserId))); - - // Create a statement to only select orders for a given advertiser. - $filterStatement = - new Statement("WHERE advertiserId = :advertiserId LIMIT 500", $vars); - - // Get orders by statement. - $page = $orderService->getOrdersByStatement($filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $order) { - print $i . ') Order with ID "' . $order->id - . '", name "' . $order->name - . '", and advertiser ID "' . $order->advertiserId - . "\" was found.\n"; - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201403/OrderService/UpdateOrdersExample.php deleted file mode 100755 index 10db8d55e..000000000 --- a/examples/Dfp/v201403/OrderService/UpdateOrdersExample.php +++ /dev/null @@ -1,99 +0,0 @@ -LogDefaults(); - - // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201403'); - - // Create a statement to get all orders. - $filterStatement = new Statement('LIMIT 500'); - - // Get orders by statement. - $page = $orderService->getOrdersByStatement($filterStatement); - - if (isset($page->results)) { - $orders = $page->results; - - // Remove archived orders. - array_filter($orders, - create_function('$order', 'return !$order->isArchived;')); - - // Update each local order object by changing its notes. - foreach ($orders as $order) { - $order->notes = 'Spoke to advertiser. All is well.'; - } - - // Update the orders on the server. - $orders = $orderService->updateOrders($orders); - - // Display results. - if (isset($orders)) { - foreach ($orders as $order) { - print 'Order with ID "' . $order->id - . '", name "' . $order->name - . '", advertiser ID "' . $order->advertiserId - . '", and notes "' . $order->notes - . "\" was updated.\n"; - } - } else { - print "No orders updated.\n"; - } - } else { - print "No orders found to update.\n"; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201403/PlacementService/UpdatePlacementsExample.php deleted file mode 100755 index 86d8004c6..000000000 --- a/examples/Dfp/v201403/PlacementService/UpdatePlacementsExample.php +++ /dev/null @@ -1,102 +0,0 @@ -LogDefaults(); - - // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201403'); - - // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); - - // Create a statement to select first 500 placements. - $filterStatement = new Statement("LIMIT 500"); - - // Get placements by statement. - $page = $placementService->getPlacementsByStatement($filterStatement); - - if (isset($page->results)) { - $placements = $page->results; - - // Update each local placement object by adding the root ad unit. - foreach ($placements as $placement) { - $placement->targetingDescription = !empty($placement->description) ? - $placement->description : 'Generic description'; - $placement->targetingAdLocation = 'All images on sports pages.'; - $placement->targetingSiteName = 'http://code.google.com'; - $placement->isAdSenseTargetingEnabled = TRUE; - } - - // Update the placements on the server. - $placements = $placementService->updatePlacements($placements); - - // Display results. - if (isset($placements)) { - foreach ($placements as $placement) { - print 'A placement with ID "' . $placement->id - . '", name "' . $placement->name - . '", and AdSense targeting "' - . ($placement->isAdSenseTargetingEnabled ? 'enabled' : 'disabled') - . "\" was updated.\n"; - } - } else { - print "No placements updated.\n"; - } - } else { - print "No placements found to update.\n"; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/ReportService/DownloadReportExample.php b/examples/Dfp/v201403/ReportService/DownloadReportExample.php deleted file mode 100755 index b54129dfb..000000000 --- a/examples/Dfp/v201403/ReportService/DownloadReportExample.php +++ /dev/null @@ -1,81 +0,0 @@ -LogDefaults(); - - // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); - - // Set the ID of the completed report. - $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; - - // Set the format of the report. Ex: CSV_DUMP - $exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; - - // Set the file name to download the gzipped report to. Ex: report.csv.gz. - $fileName = 'INSERT_FILE_NAME_HERE' . '.gz'; - - $filePath = dirname(__FILE__) . '/' . $fileName; - - $downloadUrl = - $reportService->getReportDownloadURL($reportJobId, $exportFormat); - - printf("Downloading report from URL '%s'.\n", $downloadUrl); - - ReportUtils::DownloadReport($downloadUrl, $filePath); - - printf("Report downloaded to file '%s'.\n", $filePath); -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php deleted file mode 100755 index 0728968e7..000000000 --- a/examples/Dfp/v201403/ReportService/RunReportWithCustomFields.php +++ /dev/null @@ -1,133 +0,0 @@ -LogDefaults(); - - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); - - // Set the ID of the order to get line items from. - $orderId = 'INSERT_ORDER_ID_HERE'; - - // Set defaults for page and statement. - $page = new LineItemPage(); - $vars = MapUtils::GetMapEntries(array('orderId' => - new NumberValue($orderId))); - $filterStatement = new Statement(NULL, $vars); - $offset = 0; - - // Collect all line item custom field IDs for an order. - $customFieldIds = array(); - do { - // Create a statement to only select line items from a given order. - $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' . - 'OFFSET %d', $offset); - - // Get line items by statement. - $page = $lineItemService->getLineItemsByStatement($filterStatement); - - // Get custom field IDs from the line items of an order. - if (isset($page->results)) { - foreach ($page->results as $lineItem) { - if (isset($lineItem->customFieldValues)) { - foreach ($lineItem->customFieldValues as $customFieldValue) { - $customFieldId = $customFieldValue->customFieldId; - if (!in_array($customFieldId, $customFieldIds)) { - $customFieldIds[] = $customFieldId; - } - } - } - } - } - - $offset += 500; - } while ($offset < $page->totalResultSetSize); - - // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); - - // Create report job. - $reportJob = new ReportJob(); - - // Create report query. - $reportQuery = new ReportQuery(); - $reportQuery->dateRangeType = 'LAST_MONTH'; - $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); - $reportQuery->customFieldIds = $customFieldIds; - $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); - $reportJob->reportQuery = $reportQuery; - - // Report on a single order. - $filterStatement->query = 'WHERE ORDER_ID = :orderId'; - $reportQuery->statement = $filterStatement; - - // Run report job. - $reportJob = $reportService->runReportJob($reportJob); - - do { - printf("Report with ID '%s' is running.\n", $reportJob->id); - sleep(30); - // Get report job. - $reportJob = $reportService->getReportJob($reportJob->id); - } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); - - if ($reportJob->reportJobStatus == 'FAILED') { - printf("Report job with ID '%s' failed to finish successfully.\n", - $reportJob->id); - } else { - printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/ReportService/RunSalesReportExample.php b/examples/Dfp/v201403/ReportService/RunSalesReportExample.php deleted file mode 100755 index a64f50272..000000000 --- a/examples/Dfp/v201403/ReportService/RunSalesReportExample.php +++ /dev/null @@ -1,90 +0,0 @@ -LogDefaults(); - - // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); - - // Create report job. - $reportJob = new ReportJob(); - - // Create report query. - $reportQuery = new ReportQuery(); - $reportQuery->dateRangeType = 'LAST_MONTH'; - $reportQuery->dimensions = array('SALESPERSON_ID', 'SALESPERSON_NAME'); - $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', - 'AD_SERVER_CPM_AND_CPC_REVENUE', - 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); - $reportJob->reportQuery = $reportQuery; - - // Run report job. - $reportJob = $reportService->runReportJob($reportJob); - - do { - printf("Report with ID '%s' is running.\n", $reportJob->id); - sleep(30); - // Get report job. - $reportJob = $reportService->getReportJob($reportJob->id); - } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); - - if ($reportJob->reportJobStatus == 'FAILED') { - printf("Report job with ID '%s' failed to finish successfully.\n", - $reportJob->id); - } else { - printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201403/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php deleted file mode 100755 index 9c86cebaf..000000000 --- a/examples/Dfp/v201403/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php +++ /dev/null @@ -1,88 +0,0 @@ -LogDefaults(); - - // Get the SuggestedAdUnitService. - $suggestedAdUnitService = - $user->GetService('SuggestedAdUnitService', 'v201403'); - - // Create a statement to only select suggested ad units with more than 50 - // requests. - $filterStatement = - new Statement("WHERE numRequests > :numRequests LIMIT 500", - MapUtils::GetMapEntries(array('numRequests' => new NumberValue(50)))); - - // Get ad units by statement. - $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( - $filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $suggestedAdUnit) { - printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " - . "was found.\n", $i, $suggestedAdUnit->id, - $suggestedAdUnit->numRequests); - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201403/TeamService/UpdateTeamsExample.php deleted file mode 100755 index b1fd232c5..000000000 --- a/examples/Dfp/v201403/TeamService/UpdateTeamsExample.php +++ /dev/null @@ -1,106 +0,0 @@ -LogDefaults(); - - // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201403'); - - // Set the ID of the ad unit to add to the teams. - $adUnitID = "INSERT_AD_UNIT_ID_HERE"; - - // Create a statement to select first 5 teams that aren't - // built-in. - $filterStatement = new Statement("WHERE id > 0 LIMIT 5"); - - // Get teams by statement. - $page = $teamService->getTeamsByStatement($filterStatement); - - if (isset($page->results)) { - $teams = $page->results; - - $i = 0; - // Update each local team object by appending the ad unit to it. - foreach ($teams as $team) { - if (!$team->hasAllInventory) { - if (!isset($team->adUnitIds)) { - // Empty team inventory. - $team->adUnitIds = array(); - } - $team->adUnitIds[] = $adUnitID; - $i++; - } - } - - // Reorganize the $teams array. - $teams = array_values($teams); - - // Update the teams on the server. - $teams = $teamService->updateTeams($teams); - - // Display results. - if (isset($teams)) { - foreach ($teams as $team) { - print 'A team with ID "' . $team->id - . '" and name "' . $team->name . "\" was updated.\n"; - } - } else { - print "No teams updated.\n"; - } - } else { - print "No teams found to update.\n"; - } -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201403/UserService/GetUsersByStatementExample.php deleted file mode 100755 index 6710362e5..000000000 --- a/examples/Dfp/v201403/UserService/GetUsersByStatementExample.php +++ /dev/null @@ -1,81 +0,0 @@ -LogDefaults(); - - // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); - - // Create a statement to get all users sorted by name. - $filterStatement = new Statement('ORDER BY name LIMIT 500'); - - // Get users by statement. - $page = $userService->getUsersByStatement($filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $usr) { - print $i . ') User with ID "' . $usr->id - . '", email "' . $usr->email - . '", and role "' . $usr->roleName . "\" was found.\n"; - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201403/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php deleted file mode 100755 index eb8a4151a..000000000 --- a/examples/Dfp/v201403/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php +++ /dev/null @@ -1,94 +0,0 @@ -LogDefaults(); - - // Get the UserTeamAssociationService. - $userTeamAssociationService = $user->GetService('UserTeamAssociationService', - 'v201403'); - - // Get the UserService. - $userService = $user->GetService("UserService", "v201403"); - - // Get the current user. - $currentUserId = $userService->getCurrentUser()->id; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('userId' => new NumberValue($currentUserId))); - - // Create filter text to select user team associations by the user ID. - $filterStatement = - new Statement("WHERE userId = :userId LIMIT 500", $vars); - - // Get user team associations by statement. - $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( - $filterStatement); - - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $uta) { - print $i . ') User team association between user with ID "' . $uta->userId - . '" and team with ID "' . $uta->teamId - . "\" was found.\n"; - $i++; - } - } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; -} catch (OAuth2Exception $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (ValidationException $e) { - ExampleUtils::CheckForOAuth2Errors($e); -} catch (Exception $e) { - print $e->getMessage() . "\n"; -} - diff --git a/examples/Dfp/v201403/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201502/ActivityGroupService/CreateActivityGroups.php similarity index 98% rename from examples/Dfp/v201403/ActivityGroupService/CreateActivityGroups.php rename to examples/Dfp/v201502/ActivityGroupService/CreateActivityGroups.php index 021c4750c..35b31d4a5 100755 --- a/examples/Dfp/v201403/ActivityGroupService/CreateActivityGroups.php +++ b/examples/Dfp/v201502/ActivityGroupService/CreateActivityGroups.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ $user->LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201403'); + $activityGroupService = $user->GetService('ActivityGroupService', 'v201502'); // Set the ID of the advertiser company this activity group is associated // with. diff --git a/examples/Dfp/v201403/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php similarity index 68% rename from examples/Dfp/v201403/ActivityGroupService/GetActiveActivityGroups.php rename to examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php index b17c4e544..fa5809c1f 100755 --- a/examples/Dfp/v201403/ActivityGroupService/GetActiveActivityGroups.php +++ b/examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201403'); + $activityGroupService = $user->GetService('ActivityGroupService', 'v201502'); - // Statement parts to help build a statement that only selects active activity - // groups. - $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; - $STATUS = 'ACTIVE'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select only active activity groups. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); - $page = new ActivityGroupPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get activity groups by statement. - $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); - $page = $activityGroupService->getActivityGroupsByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + $page = $activityGroupService->getActivityGroupsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $activityGroup) { - printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + printf("%d) Activity group with ID %d, and name '%s' was found.\n", $i++, $activityGroup->id, $activityGroup->name); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php similarity index 72% rename from examples/Dfp/v201403/ActivityGroupService/GetAllActivityGroups.php rename to examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php index 2ea0779dd..7a7a49fae 100755 --- a/examples/Dfp/v201403/ActivityGroupService/GetAllActivityGroups.php +++ b/examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -22,9 +22,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -38,6 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -49,33 +50,35 @@ $user->LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201403'); + $activityGroupService = $user->GetService('ActivityGroupService', 'v201502'); - // Statement parts to help build a statement that selects all activity groups. - $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select all activity groups. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ActivityGroupPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get activity groups by statement. - $page = $activityGroupService->getActivityGroupsByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = $activityGroupService->getActivityGroupsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $activityGroup) { - printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + printf("%d) Activity group with ID %d, and name '%s' was found.\n", $i++, $activityGroup->id, $activityGroup->name); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php similarity index 73% rename from examples/Dfp/v201403/ActivityGroupService/UpdateActivityGroups.php rename to examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php index b4f976e88..ee1f47616 100755 --- a/examples/Dfp/v201403/ActivityGroupService/UpdateActivityGroups.php +++ b/examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php @@ -1,6 +1,6 @@ LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201403'); - - // Set the ID of the activity group and the company to update it with. - $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; - $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $activityGroupService = $user->GetService('ActivityGroupService', 'v201502'); // Create a statement to select a single activity group by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($activityGroupId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $activityGroupId); // Get the activity group. - $page = $activityGroupService->getActivityGroupsByStatement($filterStatement); + $page = $activityGroupService->getActivityGroupsByStatement( + $statementBuilder->ToStatement()); $activityGroup = $page->results[0]; // Update the companies. @@ -73,9 +78,8 @@ $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); - // Display results. foreach ($activityGroups as $updatedActivityGroup) { - printf("Activity group with ID '%d' and name '%s' was updated.\n", + printf("Activity group with ID %d, and name '%s' was updated.\n", $updatedActivityGroup->id, $updatedActivityGroup->name); } } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201403/ActivityService/CreateActivities.php b/examples/Dfp/v201502/ActivityService/CreateActivities.php similarity index 96% rename from examples/Dfp/v201403/ActivityService/CreateActivities.php rename to examples/Dfp/v201502/ActivityService/CreateActivities.php index 662e0ac69..53e431863 100755 --- a/examples/Dfp/v201403/ActivityService/CreateActivities.php +++ b/examples/Dfp/v201502/ActivityService/CreateActivities.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ $user->LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201403'); + $activityService = $user->GetService('ActivityService', 'v201502'); // Set the ID of the activity group this activity is associated with. $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; diff --git a/examples/Dfp/v201403/ActivityService/GetActiveActivities.php b/examples/Dfp/v201502/ActivityService/GetActiveActivities.php similarity index 62% rename from examples/Dfp/v201403/ActivityService/GetActiveActivities.php rename to examples/Dfp/v201502/ActivityService/GetActiveActivities.php index caba7046f..f85e66299 100755 --- a/examples/Dfp/v201403/ActivityService/GetActiveActivities.php +++ b/examples/Dfp/v201502/ActivityService/GetActiveActivities.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201403'); + $activityService = $user->GetService('ActivityService', 'v201502'); - // Statement parts to help build a statement that only selects active - // activities. - $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; - $STATUS = 'ACTIVE'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select only active activities. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); - $page = new ActivityPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get activities by statement. - $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); - $page = $activityService->getActivitiesByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + $page = $activityService->getActivitiesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $activity) { - printf("%d) Activity with ID \"%d\", name \"%s\", and type \"%s\" " . - "was found.\n", $i++, $activity->id, $activity->name, - $activity->type); + printf("%d) Activity with ID %d, name '%s', and type %s was found.\n", + $i++, $activity->id, $activity->name, $activity->type); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ActivityService/GetAllActivities.php b/examples/Dfp/v201502/ActivityService/GetAllActivities.php similarity index 65% rename from examples/Dfp/v201403/ActivityService/GetAllActivities.php rename to examples/Dfp/v201502/ActivityService/GetAllActivities.php index 334ea005d..c909bba65 100755 --- a/examples/Dfp/v201403/ActivityService/GetAllActivities.php +++ b/examples/Dfp/v201502/ActivityService/GetAllActivities.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -22,9 +22,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -37,8 +37,8 @@ $path = dirname(__FILE__) . '/../../../../src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); -require_once 'Google/Api/Ads/Common/Util/MapUtils.php'; require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -50,34 +50,35 @@ $user->LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201403'); + $activityService = $user->GetService('ActivityService', 'v201502'); - // Statement parts to help build a statement that selects all activities. - $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select all activities. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ActivityPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get activities by statement. - $page = $activityService->getActivitiesByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = $activityService->getActivitiesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $activity) { - printf("%d) Activity with ID \"%d\", name \"%s\", and type \"%s\" " . - "was found.\n", $i++, $activity->id, $activity->name, - $activity->type); + printf("%d) Activity with ID %d, name '%s', and type %s was found.\n", + $i++, $activity->id, $activity->name, $activity->type); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ActivityService/UpdateActivities.php b/examples/Dfp/v201502/ActivityService/UpdateActivities.php similarity index 71% rename from examples/Dfp/v201403/ActivityService/UpdateActivities.php rename to examples/Dfp/v201502/ActivityService/UpdateActivities.php index 717f68057..5d8888067 100755 --- a/examples/Dfp/v201403/ActivityService/UpdateActivities.php +++ b/examples/Dfp/v201502/ActivityService/UpdateActivities.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201403'); - - // Set the ID of the activity to update. - $activityId = 'INSERT_ACTIVITY_ID_HERE'; + $activityService = $user->GetService('ActivityService', 'v201502'); // Create a statement to select a single activity by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($activityId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $activityId); // Get the activity. - $page = $activityService->getActivitiesByStatement($filterStatement); + $page = $activityService->getActivitiesByStatement( + $statementBuilder->ToStatement()); $activity = $page->results[0]; // Update the expected URL. - $activity->expectedURL = 'https://google.com'; + $activity->expectedUrl = 'https://www.google.com'; // Update the activity on the server. $activities = $activityService->updateActivities(array($activity)); foreach ($activities as $updatedActivity) { - printf("Activity with ID '%d' and name '%s' was updated.\n", + printf("Activity with ID %d, and name '%s' was updated.\n", $updatedActivity->id, $updatedActivity->name); } } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201403/AudienceSegmentService/CreateAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/CreateAudienceSegments.php similarity index 96% rename from examples/Dfp/v201403/AudienceSegmentService/CreateAudienceSegments.php rename to examples/Dfp/v201502/AudienceSegmentService/CreateAudienceSegments.php index cc2631985..2e5e0c0cc 100755 --- a/examples/Dfp/v201403/AudienceSegmentService/CreateAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/CreateAudienceSegments.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -50,10 +50,10 @@ // Get the AudienceSegmentService. $audienceSegmentService = - $user->GetService('AudienceSegmentService', 'v201403'); + $user->GetService('AudienceSegmentService', 'v201502'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); // Set the IDs of the custom criteria to be used in the segment rule. $customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; diff --git a/examples/Dfp/v201403/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/GetAllAudienceSegments.php similarity index 67% rename from examples/Dfp/v201403/AudienceSegmentService/GetAllAudienceSegments.php rename to examples/Dfp/v201502/AudienceSegmentService/GetAllAudienceSegments.php index ffba9441b..dca6f650f 100755 --- a/examples/Dfp/v201403/AudienceSegmentService/GetAllAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/GetAllAudienceSegments.php @@ -1,13 +1,13 @@ GetService('AudienceSegmentService', - 'v201403'); + 'v201502'); - // Statement parts to help build a statement to select all audience segments. - $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select all audience segments. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new AudienceSegmentPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get audience segments by statement. $page = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $audienceSegment) { - printf("%d) Audience segment with ID \"%d\", name \"%s\", and size " - . "\"%d\" was found.\n", $i++, $audienceSegment->id, - $audienceSegment->name, $audienceSegment->size); + printf("%d) Audience segment with ID %d, name '%s', and size %s was " + . "found.\n", $i++, $audienceSegment->id, $audienceSegment->name, + $audienceSegment->size); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/GetFirstPartyAudienceSegments.php similarity index 66% rename from examples/Dfp/v201403/AudienceSegmentService/GetFirstPartyAudienceSegments.php rename to examples/Dfp/v201502/AudienceSegmentService/GetFirstPartyAudienceSegments.php index 0e9d1216d..56935b14c 100755 --- a/examples/Dfp/v201403/AudienceSegmentService/GetFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -1,13 +1,13 @@ GetService('AudienceSegmentService', - 'v201403'); + 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('type' => new TextValue('FIRST_PARTY'))); + // Create a statement to select only first party audience segments. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'FIRST_PARTY'); - // Statement parts to help build a statement to select all first party - // audience segments. - $pqlTemplate = "WHERE type = :type ORDER BY id LIMIT %d OFFSET %d"; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; - - $page = new AudienceSegmentPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get audience segments by statement. $page = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), - $vars)); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $audienceSegment) { - printf("%d) First party audience segment with ID \"%d\", name " - . "\"%s\", and size \"%d\" was found.\n", $i++, - $audienceSegment->id, $audienceSegment->name, + printf("%d) Audience segment with ID %d, name '%s', and size %s was " + . "found.\n", $i++, $audienceSegment->id, $audienceSegment->name, $audienceSegment->size); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php similarity index 62% rename from examples/Dfp/v201403/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php rename to examples/Dfp/v201502/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php index c80ccd700..91fed7d0a 100755 --- a/examples/Dfp/v201403/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -1,14 +1,14 @@ GetService('AudienceSegmentService', 'v201403'); - - $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('type' => new TextValue('FIRST_PARTY'), - 'audienceSegmentId' => new NumberValue($audienceSegmentId))); + $user->GetService('AudienceSegmentService', 'v201502'); - // Statement parts to help build a statement to select specified first party - // audience segment. - $pqlTemplate = "WHERE id IN (:audienceSegmentId) AND type = :type ORDER BY " - . "id LIMIT %d OFFSET %d"; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to only select a specified first party audience + // segment. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id and type = :type') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $audienceSegmentId) + ->WithBindVariableValue('type', 'FIRST_PARTY'); - $page = new AudienceSegmentPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get audience segments by statement. $page = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), - $vars)); + $statementBuilder->ToStatement()); // Display results. - $audienceSegmentIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $audienceSegment) { - printf("%d) Audience segment with ID \"%d\" and name \"%s\" will be " + printf("%d) Audience segment with ID %d and name '%s' will be " . "populated.\n", $i++, $audienceSegment->id, $audienceSegment->name); - $audienceSegmentIds[] = $audienceSegment->id; } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); printf("Number of audience segments to be populated: %d\n", - sizeof($audienceSegmentIds)); + $totalResultSetSize); - if (sizeof($audienceSegmentIds) > 0) { - // Create action statement. - $filterStatementText = sprintf('WHERE id IN (%s)', - implode(',', $audienceSegmentIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new PopulateAudienceSegments(); // Perform action. $result = $audienceSegmentService->performAudienceSegmentAction($action, - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { diff --git a/examples/Dfp/v201403/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/UpdateAudienceSegments.php similarity index 61% rename from examples/Dfp/v201403/AudienceSegmentService/UpdateAudienceSegments.php rename to examples/Dfp/v201502/AudienceSegmentService/UpdateAudienceSegments.php index a3b3ee984..8a8849aa1 100755 --- a/examples/Dfp/v201403/AudienceSegmentService/UpdateAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/UpdateAudienceSegments.php @@ -1,15 +1,15 @@ LogDefaults(); // Get the AudienceSegmentService. - $audienceSegmentService = $user->GetService('AudienceSegmentService', - 'v201403'); - - // Set the ID of the first party audience segment to update. - $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('audienceSegmentId' => new NumberValue($audienceSegmentId))); + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201502'); - // Create statement text to select the audience segment to update. - $filterStatementText = "WHERE id = :audienceSegmentId LIMIT 1"; + // Create a statement to select a single first party audience segment by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id and type = :type') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $audienceSegmentId) + ->WithBindVariableValue('type', 'FIRST_PARTY'); // Get the audience segment. - $audienceSegment = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement($filterStatementText, $vars))->results[0]; + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $statementBuilder->ToStatement()); + $audienceSegment = $page->results[0]; // Update the member expiration days. $audienceSegment->membershipExpirationDays = 180; @@ -75,14 +78,9 @@ $audienceSegments = $audienceSegmentService->updateAudienceSegments(array($audienceSegment)); - // Display results. - if (isset($audienceSegments)) { - foreach ($audienceSegments as $updatedAudienceSegment) { - printf("Audience segment with ID \"%d\" and name \"%s\" was updated.\n", - $updatedAudienceSegment->id, $updatedAudienceSegment->name); - } - } else { - printf("No audience segments were updated.\n"); + foreach ($audienceSegments as $updatedAudienceSegment) { + printf("Audience segment with ID %d, and name '%s' was updated.\n", + $updatedAudienceSegment->id, $updatedAudienceSegment->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201502/BaseRateService/CreateProductBaseRates.php b/examples/Dfp/v201502/BaseRateService/CreateProductBaseRates.php new file mode 100755 index 000000000..9d19232a3 --- /dev/null +++ b/examples/Dfp/v201502/BaseRateService/CreateProductBaseRates.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201502'); + + // Create a base rate for a product. + $productBaseRate = new ProductBaseRate(); + + // Set the rate card ID that the product base rate belongs to. + $productBaseRate->rateCardId = $rateCardId; + + // Set the product the base rate will be applied to. + $productBaseRate->productId = $productId; + + // Create a rate worth $2 and set that on the product base rate. + $rate = new Money(); + $rate->currencyCode = 'USD'; + $rate->microAmount = 2000000; + $productBaseRate->rate = $rate; + + // Create the product base rate on the server. + $baseRates = $baseRateService->createBaseRates(array($productBaseRate)); + + foreach ($baseRates as $createdBaseRate) { + printf("A product base rate with ID %d and rate %.2f %s was created.\n", + $createdBaseRate->id, + $createdBaseRate->rate->microAmount / 1000000, + $createdBaseRate->rate->currencyCode + ); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201502/BaseRateService/CreateProductTemplateBaseRates.php similarity index 50% rename from examples/Dfp/v201403/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php rename to examples/Dfp/v201502/BaseRateService/CreateProductTemplateBaseRates.php index 3c72041f8..f3fa9575e 100755 --- a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php +++ b/examples/Dfp/v201502/BaseRateService/CreateProductTemplateBaseRates.php @@ -1,11 +1,9 @@ LogDefaults(); - // Get the ContentMetadataKeyHierarchyService. - $contentMetadataKeyHierarchyService = - $user->GetService('ContentMetadataKeyHierarchyService', 'v201403'); + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201502'); - // Set the ID of the content metadata key hierarchy to delete. - $contentMetadataKeyHierarchyId = - "INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE"; + // Create a base rate for a product template. + $productTemplateBaseRate = new ProductTemplateBaseRate(); - // Create a statement to select a single content metadata key hierarchy by ID. - $vars = MapUtils::GetMapEntries(array('id' => - new NumberValue($contentMetadataKeyHierarchyId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + // Set the rate card ID that the product template base rate belongs to. + $productTemplateBaseRate->rateCardId = $rateCardId; - // Get the content metadata key hierarchy. - $page = $contentMetadataKeyHierarchyService-> - getContentMetadataKeyHierarchiesByStatement($filterStatement); - $contentMetadataKeyHierarchy = $page->results[0]; + // Set the product template the base rate will be applied to. + $productTemplateBaseRate->productTemplateId = $productTemplateId; - printf("Content metadata key hierarchy with ID '%d' will be deleted.\n", - $contentMetadataKeyHierarchy->id); + // Create a rate worth $2 and set that on the product template base rate. + $rate = new Money(); + $rate->currencyCode = 'USD'; + $rate->microAmount = 2000000; + $productTemplateBaseRate->rate = $rate; - // Create and perform the delete action. - $filterStatement = new Statement("WHERE id = :id", $vars); - $deleteAction = new DeleteContentMetadataKeyHierarchies(); - $result = $contentMetadataKeyHierarchyService-> - performContentMetadataKeyHierarchyAction($deleteAction, $filterStatement); + // Create the product template base rate on the server. + $baseRates = + $baseRateService->createBaseRates(array($productTemplateBaseRate)); - printf("Number of content metadata key hierarchies deleted: %d.\n", - $result->numChanges); + foreach ($baseRates as $createdBaseRate) { + printf("A product template base rate with ID %d and rate %.2f %s was " + . "created.\n", + $createdBaseRate->id, + $createdBaseRate->rate->microAmount / 1000000, + $createdBaseRate->rate->currencyCode + ); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php b/examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php new file mode 100755 index 000000000..438d063ab --- /dev/null +++ b/examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201502'); + + // Create a statement to select all base rates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get base rates by statement. + $page = $baseRateService->getBaseRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $baseRate) { + printf("%d) Base rate with ID %d and type '%s', belonging to rate card " + . "ID %d was found.\n", $i++, $baseRate->id, + get_class($baseRate), $baseRate->rateCardId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php b/examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php new file mode 100755 index 000000000..6baa2b376 --- /dev/null +++ b/examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201502'); + + // Create a statement to select only base rates belonging to a rate card. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('rateCardId = :rateCardId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('rateCardId', $rateCardId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get base rates by statement. + $page = $baseRateService->getBaseRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $baseRate) { + printf("%d) Base rate with ID %d, and type '%s', belonging to rate " + . "card ID %d was found.\n", + $i++, + $baseRate->id, + get_class($baseRate), + $baseRate->rateCardId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php b/examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php new file mode 100755 index 000000000..539eb4f1c --- /dev/null +++ b/examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201502'); + + // Create a statement to select a single base rate by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $baseRateId); + + // Get the base rate. + $page = $baseRateService->getBaseRatesByStatement( + $statementBuilder->ToStatement()); + $baseRate = $page->results[0]; + + // Update base rate value to $3 USD. + $newRate = new Money(); + $newRate->currencyCode = 'USD'; + $newRate->microAmount = 3000000; + $baseRate->rate = $newRate; + + // Update the base rate on the server. + $baseRates = $baseRateService->updateBaseRates(array($baseRate)); + + foreach ($baseRates as $updatedBaseRate) { + printf("Base rate with ID %d and type '%s', belonging to rate card ID %d " + . "was updated.\n", + $updatedBaseRate->id, + get_class($updatedBaseRate), + $updatedBaseRate->rateCardId + ); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201502/CompanyService/CreateCompanies.php similarity index 95% rename from examples/Dfp/v201403/CompanyService/CreateCompaniesExample.php rename to examples/Dfp/v201502/CompanyService/CreateCompanies.php index 5eee3fcbc..44801cb66 100755 --- a/examples/Dfp/v201403/CompanyService/CreateCompaniesExample.php +++ b/examples/Dfp/v201502/CompanyService/CreateCompanies.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201403'); + $companyService = $user->GetService('CompanyService', 'v201502'); // Create an array to store local company objects. $companies = array(); diff --git a/examples/Dfp/v201502/CompanyService/GetAdvertisers.php b/examples/Dfp/v201502/CompanyService/GetAdvertisers.php new file mode 100755 index 000000000..59db4392e --- /dev/null +++ b/examples/Dfp/v201502/CompanyService/GetAdvertisers.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201502'); + + // Create a statement to select only companies that are advertisers. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'ADVERTISER'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get companies by statement. + $page = $companyService->getCompaniesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $company) { + printf("%d) Company with ID %d, name '%s', and type %s was found.\n", + $i++, $company->id, $company->name, $company->type); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201502/CompanyService/GetAllCompanies.php similarity index 63% rename from examples/Dfp/v201403/CompanyService/GetAllCompaniesExample.php rename to examples/Dfp/v201502/CompanyService/GetAllCompanies.php index 85f80d6a9..7e3c76859 100755 --- a/examples/Dfp/v201403/CompanyService/GetAllCompaniesExample.php +++ b/examples/Dfp/v201502/CompanyService/GetAllCompanies.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201403'); + $companyService = $user->GetService('CompanyService', 'v201502'); - // Set defaults for page and statement. - $page = new CompanyPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all companies. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all companies. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get companies by statement. - $page = $companyService->getCompaniesByStatement($filterStatement); + $page = $companyService->getCompaniesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $company) { - print $i . ') Company with ID "' . $company->id - . '", name "' . $company->name - . '", and type "' . $company->type . "\" was found.\n"; - $i++; + printf("%d) Company with ID %d, name '%s', and type %s was found.\n", + $i++, $company->id, $company->name, $company->type); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } + diff --git a/examples/Dfp/v201403/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201502/CompanyService/UpdateCompanies.php similarity index 55% rename from examples/Dfp/v201403/CompanyService/GetCompaniesByStatementExample.php rename to examples/Dfp/v201502/CompanyService/UpdateCompanies.php index 7a38beca3..20d64c8cc 100755 --- a/examples/Dfp/v201403/CompanyService/GetCompaniesByStatementExample.php +++ b/examples/Dfp/v201502/CompanyService/UpdateCompanies.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201403'); + $companyService = $user->GetService('CompanyService', 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('type' => new TextValue('ADVERTISER'))); + // Create a statement to select a single company by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $companyId); - // Create a statement to only select companies that are advertisers sorted - // by name. - $filterStatement = - new Statement("WHERE type = :type ORDER BY name LIMIT 500", $vars); + // Get the company. + $page = $companyService->getCompaniesByStatement( + $statementBuilder->ToStatement()); + $company = $page->results[0]; - // Get companies by statement. - $page = $companyService->getCompaniesByStatement($filterStatement); + // Update the comment. + $company->comment = sprintf('%s - updated.', $company->comment); - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $company) { - print $i . ') Company with ID "' . $company->id - . '", name "' . $company->name - . '", and type "' . $company->type . "\" was found.\n"; - $i++; - } - } + // Update the company on the server. + $companies = $companyService->updateCompanies(array($company)); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + foreach ($companies as $updatedCompany) { + printf("Company with ID %d, name '%s', and comment '%s' was updated.\n", + $updatedCompany->id, $updatedCompany->name, $updatedCompany->comment); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/ContactService/CreateContacts.php b/examples/Dfp/v201502/ContactService/CreateContacts.php similarity index 97% rename from examples/Dfp/v201403/ContactService/CreateContacts.php rename to examples/Dfp/v201502/ContactService/CreateContacts.php index bafb12d13..c03c9c475 100755 --- a/examples/Dfp/v201403/ContactService/CreateContacts.php +++ b/examples/Dfp/v201502/ContactService/CreateContacts.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ $user->LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201403'); + $contactService = $user->GetService('ContactService', 'v201502'); // Set the ID of the advertiser company this contact is associated with. $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; diff --git a/examples/Dfp/v201403/ContactService/GetAllContacts.php b/examples/Dfp/v201502/ContactService/GetAllContacts.php similarity index 68% rename from examples/Dfp/v201403/ContactService/GetAllContacts.php rename to examples/Dfp/v201502/ContactService/GetAllContacts.php index aa1581309..19b706e38 100755 --- a/examples/Dfp/v201403/ContactService/GetAllContacts.php +++ b/examples/Dfp/v201502/ContactService/GetAllContacts.php @@ -6,7 +6,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -21,9 +21,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -37,6 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -48,33 +49,35 @@ $user->LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201403'); + $contactService = $user->GetService('ContactService', 'v201502'); - // Statement parts to help build a statement to select all contacts. - $pqlTemplate = 'ORDER BY id LIMIT %d OFFSET %d'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select all contacts. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ContactPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get contacts by statement. - $page = $contactService->getContactsByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = $contactService->getContactsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $contact) { - printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + printf("%d) Contact with ID %d, and name '%s' was found.\n", $i++, $contact->id, $contact->name); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201502/ContactService/GetUninvitedContacts.php similarity index 62% rename from examples/Dfp/v201403/ContactService/GetUninvitedContacts.php rename to examples/Dfp/v201502/ContactService/GetUninvitedContacts.php index 7ce6ab85c..9a1d85967 100755 --- a/examples/Dfp/v201403/ContactService/GetUninvitedContacts.php +++ b/examples/Dfp/v201502/ContactService/GetUninvitedContacts.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201403'); + $contactService = $user->GetService('ContactService', 'v201502'); - // Statement parts to help build a statement to only select contacts that - // aren't invited yet. - $pqlTemplate = 'WHERE status = :status ORDER BY id LIMIT %d OFFSET %d'; - $STATUS = 'UNINVITED'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select only contacts that aren't invited yet. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'UNINVITED'); - $page = new ContactPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get contacts by statement. - $vars = MapUtils::GetMapEntries(array('status' => new TextValue($STATUS))); - $page = $contactService->getContactsByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + $page = $contactService->getContactsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $contact) { - printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + printf("%d) Contact with ID %d, and name '%s' was found.\n", $i++, $contact->id, $contact->name); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ContactService/UpdateContacts.php b/examples/Dfp/v201502/ContactService/UpdateContacts.php similarity index 70% rename from examples/Dfp/v201403/ContactService/UpdateContacts.php rename to examples/Dfp/v201502/ContactService/UpdateContacts.php index e32ffc940..4aab297b7 100755 --- a/examples/Dfp/v201403/ContactService/UpdateContacts.php +++ b/examples/Dfp/v201502/ContactService/UpdateContacts.php @@ -1,6 +1,6 @@ LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201403'); - - // Set the ID of the contact to update. - $contactId = "INSERT_CONTACT_ID_HERE"; + $contactService = $user->GetService('ContactService', 'v201502'); // Create a statement to select a single contact by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($contactId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $contactId); // Get the contact. - $page = $contactService->getContactsByStatement($filterStatement); + $page = $contactService->getContactsByStatement( + $statementBuilder->ToStatement()); $contact = $page->results[0]; - // Update the address on the contact. + // Update the address of the contact. $contact->address = '123 New Street, New York, NY, 10011'; // Update the contact on the server. $contacts = $contactService->updateContacts(array($contact)); foreach ($contacts as $updatedContact) { - printf("Contact with ID '%d', name '%s', and address '%s' was " . - "updated.\n", $updatedContact->id, $updatedContact->name, - $updatedContact->address); + printf("Contact with ID %d, name '%s', and address '%s' was updated.\n", + $updatedContact->id, $updatedContact->name, $updatedContact->address); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchies.php similarity index 97% rename from examples/Dfp/v201403/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php rename to examples/Dfp/v201502/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchies.php index 8f4bb160b..b9f22e376 100755 --- a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php +++ b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchies.php @@ -2,7 +2,7 @@ /** * This example creates content metadata key hierarchies. To determine * which content metadata key hierarchies exist, run - * GetAllContentMetadataKeyHierarchiesExample.php. + * GetAllContentMetadataKeyHierarchies.php. * * Tags: ContentMetadataKeyHierarchyService.getContentMetadataKeyHierarchiesByStatement * Tags: ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchies @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,7 +52,7 @@ // Get the ContentMetadataKeyHierarchyService. $contentMetadataKeyHierarchyService = - $user->GetService('ContentMetadataKeyHierarchyService', 'v201403'); + $user->GetService('ContentMetadataKeyHierarchyService', 'v201502'); // Set the IDs of the custom targeting keys for the hierarchy. $customTargetingKeyId1 = "INSERT_LEVEL_ONE_CUSTOM_TARGETING_KEY_ID_HERE"; diff --git a/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php new file mode 100755 index 000000000..e1850fc63 --- /dev/null +++ b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php @@ -0,0 +1,122 @@ +LogDefaults(); + + // Get the ContentMetadataKeyHierarchyService. + $contentMetadataKeyHierarchyService = $user->GetService( + 'ContentMetadataKeyHierarchyService', 'v201502'); + + // Create a statement to select a single content metadata key hierarchy by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $contentMetadataKeyHierarchyId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get content metadata key hierarchies by statement. + $page = $contentMetadataKeyHierarchyService-> + getContentMetadataKeyHierarchiesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $contentMetadataKeyHierarchy) { + printf("%d) Content metadata key hierarchy with ID %d, and name '%s' " + . "will be deleted.\n", $i++, $contentMetadataKeyHierarchy->id, + $contentMetadataKeyHierarchy->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of content metadata key hierarchies to be deleted: %d\n", + totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeleteContentMetadataKeyHierarchies(); + + // Perform action. + $result = $contentMetadataKeyHierarchyService-> + performContentMetadataKeyHierarchyAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of content metadata key hierarchies deleted: %d\n", + $result->numChanges); + } else { + printf("No content metadata key hierarchies were deleted.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php similarity index 73% rename from examples/Dfp/v201403/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php rename to examples/Dfp/v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php index a110d641c..e0046abf3 100755 --- a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php +++ b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php @@ -1,7 +1,7 @@ GetService('ContentMetadataKeyHierarchyService', 'v201403'); + $user->GetService('ContentMetadataKeyHierarchyService', 'v201502'); - // Statement parts to help build a statement to select all content metadata - // key hierarchies. - $pqlTemplate = 'ORDER BY id ASC LIMIT %d OFFSET %d'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select all content metadata key hierarchies. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ContentMetadataKeyHierarchyPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get content metadata key hierarchies by statement. - $page = $contentMetadataKeyHierarchyService-> - getContentMetadataKeyHierarchiesByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = + $contentMetadataKeyHierarchyService->getContentMetadataKeyHierarchiesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $contentMetadataKeyHierarchy) { - printf("%d) Content metadata key hierarchy with ID '%d' and name '%s' " + printf("%d) Content metadata key hierarchy with ID %d, and name '%s' " . "was found.\n", $i++, $contentMetadataKeyHierarchy->id, $contentMetadataKeyHierarchy->name); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php similarity index 68% rename from examples/Dfp/v201403/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php rename to examples/Dfp/v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php index e75828884..557a349f5 100755 --- a/examples/Dfp/v201403/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php +++ b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php @@ -2,7 +2,7 @@ /** * This example updates a content metadata key hierarchy by adding a hierarchy * level. To determine which content metadata key hierarchies exist, run - * GetAllContentMetadataKeyHierarchiesExample.php. + * GetAllContentMetadataKeyHierarchies.php. * * Tags: ContentMetadataKeyHierarchyService.getContentMetadataKeyHierarchiesByStatement * Tags: ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchies @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -40,8 +40,16 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; +// Set the ID of the content metadata key hierarchy to update. +$contentMetadataKeyHierarchyId = + 'INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE'; + +// Set the ID of the custom targeting key to be added as a hierarchy level. +$customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + try { // Get DfpUser from credentials in "../auth.ini" // relative to the DfpUser.php file's directory. @@ -52,42 +60,41 @@ // Get the ContentMetadataKeyHierarchyService. $contentMetadataKeyHierarchyService = - $user->GetService('ContentMetadataKeyHierarchyService', 'v201403'); - - // Set the ID of the content metadata key hierarchy to update. - $contentMetadataKeyHierarchyId = - "INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE"; - - // Set the ID of the custom targeting key to be added as a hierarchy level. - $customTargetingKeyId = "INSERT_CUSTOM_TARGETING_KEY_ID_HERE"; + $user->GetService('ContentMetadataKeyHierarchyService', 'v201502'); // Create a statement to select a single content metadata key hierarchy by ID. - $vars = MapUtils::GetMapEntries(array('id' => - new NumberValue($contentMetadataKeyHierarchyId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $contentMetadataKeyHierarchyId); // Get the content metadata key hierarchy. - $page = $contentMetadataKeyHierarchyService-> - getContentMetadataKeyHierarchiesByStatement($filterStatement); + $page = + $contentMetadataKeyHierarchyService-> + getContentMetadataKeyHierarchiesByStatement( + $statementBuilder->ToStatement()); $contentMetadataKeyHierarchy = $page->results[0]; // Update the content metadata key hierarchy by adding a hierarchy level. $hierarchyLevels = $contentMetadataKeyHierarchy->hierarchyLevels; + $hierarchyLevel = new ContentMetadataKeyHierarchyLevel(); $hierarchyLevel->customTargetingKeyId = $customTargetingKeyId; $hierarchyLevel->hierarchyLevel = count($hierarchyLevels) + 1; - $hierarchyLevels[] = $hierarchyLevel; - $contentMetadataKeyHierarchy->hierarchyLevels = $hierarchyLevels; + + $contentMetadataKeyHierarchy->hierarchyLevels[] = $hierarchyLevel; // Update the content metadata key hierarchy on the server. - $contentMetadataKeyHierarchies = $contentMetadataKeyHierarchyService-> - updateContentMetadataKeyHierarchies(array($contentMetadataKeyHierarchy)); + $contentMetadataKeyHierarchies = + $contentMetadataKeyHierarchyService->updateContentMetadataKeyHierarchies( + array($contentMetadataKeyHierarchy)); - foreach ($contentMetadataKeyHierarchies as $contentMetadataKeyHierarchy) { - printf("Content metadata key hierarchy with ID '%d' and name '%s' was " . - "updated.\n", $contentMetadataKeyHierarchy->id, - $contentMetadataKeyHierarchy->name); + foreach ( + $contentMetadataKeyHierarchies as $updatedContentMetadataKeyHierarchy) { + printf("Content metadata key hierarchy with ID %d, and name '%s' was " + . "updated.\n", $updatedContentMetadataKeyHierarchy->id, + $updatedContentMetadataKeyHierarchy->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201403/ContentService/GetAllContentExample.php b/examples/Dfp/v201502/ContentService/GetAllContent.php similarity index 62% rename from examples/Dfp/v201403/ContentService/GetAllContentExample.php rename to examples/Dfp/v201502/ContentService/GetAllContent.php index b52407117..1cf863398 100755 --- a/examples/Dfp/v201403/ContentService/GetAllContentExample.php +++ b/examples/Dfp/v201502/ContentService/GetAllContent.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the ContentService. - $contentService = $user->GetService('ContentService', 'v201403'); + $contentService = $user->GetService('ContentService', 'v201502'); - // Set defaults for page and statement. - $page = new ContentPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all content. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all content. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get content by statement. - $page = $contentService->getContentByStatement($filterStatement); + $page = $contentService->getContentByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $content) { - printf( - "%d) Content with ID '%s', name '%s', and status '%s' was found.\n", - $i, $content->id, $content->name, $content->status); - $i++; + printf("%d) Content with ID %d, name '%s', and status %s was found.\n", + $i++, $content->id, $content->name, $content->status); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201502/CreativeService/CreateCreativeFromTemplate.php similarity index 89% rename from examples/Dfp/v201403/CreativeService/CreateCreativeFromTemplateExample.php rename to examples/Dfp/v201502/CreativeService/CreateCreativeFromTemplate.php index 27dc05654..006d179f6 100755 --- a/examples/Dfp/v201403/CreativeService/CreateCreativeFromTemplateExample.php +++ b/examples/Dfp/v201502/CreativeService/CreateCreativeFromTemplate.php @@ -2,9 +2,9 @@ /** * This example creates a new template creative for a given advertiser. To * determine which companies are advertisers, run - * GetCompaniesByStatementExample.php. To determine which creatives already - * exist, run GetAllCreativesExample.php. To determine which creative templates - * exist, run GetAllCreativeTemplatesExample.php + * GetCompaniesByStatement.php. To determine which creatives already + * exist, run GetAllCreatives.php. To determine which creative templates + * exist, run GetAllCreativeTemplates.php * * Tags: CreativeService.createCreatives * @@ -25,12 +25,12 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Eric Koleda + * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -41,8 +41,12 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; require_once 'Google/Api/Ads/Common/Util/MediaUtils.php'; +require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; + +// Set the ID of the advertiser (company) that all creatives will be +// assigned to. +$advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; try { // Get DfpUser from credentials in "../auth.ini" @@ -53,11 +57,7 @@ $user->LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201403'); - - // Set the ID of the advertiser (company) that all creatives will be - // assigned to. - $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $creativeService = $user->GetService('CreativeService', 'v201502'); // Use the image banner with optional third party tracking template. $creativeTemplateId = 10000680; @@ -114,7 +114,7 @@ foreach ($templateCreatives as $templateCreative) { printf("A template creative with ID '%s', name '%s', and type '%s' was " . "created and can be previewed at: %s\n", $templateCreative->id, - $templateCreative->name, $templateCreative->CreativeType, + $templateCreative->name, get_class($templateCreative), $templateCreative->previewUrl); } } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201403/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201502/CreativeService/CreateCreatives.php similarity index 76% rename from examples/Dfp/v201403/CreativeService/CreateCreativesExample.php rename to examples/Dfp/v201502/CreativeService/CreateCreatives.php index b739bb53d..5c3409455 100755 --- a/examples/Dfp/v201403/CreativeService/CreateCreativesExample.php +++ b/examples/Dfp/v201502/CreativeService/CreateCreatives.php @@ -2,8 +2,8 @@ /** * This example creates new image creatives for a given advertiser. To * determine which companies are advertisers, run - * GetCompaniesByStatementExample.php. To determine which creatives already - * exist, run GetAllCreativesExample.php. + * GetCompaniesByStatement.php. To determine which creatives already + * exist, run GetAllCreatives.php. * * Tags: CreativeService.createCreatives * @@ -24,13 +24,11 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Adam Rogal - * @author Eric Koleda * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -42,8 +40,12 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; require_once 'Google/Api/Ads/Common/Util/MediaUtils.php'; +require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; + +// Set the ID of the advertiser (company) that all creatives will be +// assigned to. +$advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; try { // Get DfpUser from credentials in "../auth.ini" @@ -54,11 +56,7 @@ $user->LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201403'); - - // Set the ID of the advertiser (company) that all creatives will be - // assigned to. - $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $creativeService = $user->GetService('CreativeService', 'v201502'); // Create an array to store local image creative objects. $imageCreatives = array(); @@ -94,26 +92,30 @@ foreach ($imageCreatives as $creative) { // Use instanceof to determine what type of creative was returned. if ($creative instanceof ImageCreative) { - print 'An image creative with ID "' . $creative->id - . '", name "' . $creative->name - . '", and size {' . $creative->size->width - . ', ' . $creative->size->height . "} was created and\n" - . ' can be previewed at: ' . $creative->previewUrl . "\n"; + printf("An image creative with ID %d, name '%s', and size '%sx%s' was " + . "created and can be previewed at: '%s'\n", + $creative->id, + $creative->name, + $creative->size->width, + $creative->size->height, + $creative->previewUrl + ); } else { - print 'A creative with ID "' . $creative->id - . '", name "' . $creative->name - . '", and type "' . $creative->CreativeType - . "\" was created.\n"; + printf("A creative with ID %d, name '%s', and type '%s' was created.\n", + $creative->id, + $creative->name, + get_class($creative) + ); } } } else { - print "No creatives created.\n"; + printf("No creatives created.\n"); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201502/CreativeService/CreateCustomCreative.php similarity index 93% rename from examples/Dfp/v201403/CreativeService/CreateCustomCreativeExample.php rename to examples/Dfp/v201502/CreativeService/CreateCustomCreative.php index d413d05d1..7fbfb5cb1 100755 --- a/examples/Dfp/v201403/CreativeService/CreateCustomCreativeExample.php +++ b/examples/Dfp/v201502/CreativeService/CreateCustomCreative.php @@ -2,8 +2,8 @@ /** * This example creates a custom creative for a given advertiser. This feature * is only available to DFP premium solution networks. To determine which - * companies are advertisers, run GetCompaniesByStatementExample.php. To - * determine which creatives already exist, run GetAllCreativesExample.php. + * companies are advertisers, run GetCompaniesByStatement.php. To + * determine which creatives already exist, run GetAllCreatives.php. * * Tags: CreativeService.createCreatives * @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,7 +52,7 @@ $user->LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201403'); + $creativeService = $user->GetService('CreativeService', 'v201502'); // Set the ID of the advertiser (company) that all creatives will be // assigned to. diff --git a/examples/Dfp/v201403/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201502/CreativeService/GetAllCreatives.php similarity index 63% rename from examples/Dfp/v201403/CreativeService/GetAllCreativesExample.php rename to examples/Dfp/v201502/CreativeService/GetAllCreatives.php index 0133a689e..cf9657a27 100755 --- a/examples/Dfp/v201403/CreativeService/GetAllCreativesExample.php +++ b/examples/Dfp/v201502/CreativeService/GetAllCreatives.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201403'); + $creativeService = $user->GetService('CreativeService', 'v201502'); - // Set defaults for page and statement. - $page = new CreativePage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all creatives. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all creatives. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get creatives by statement. - $page = $creativeService->getCreativesByStatement($filterStatement); + $page = $creativeService->getCreativesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $creative) { - print $i . ') Creative with ID "' . $creative->id - . '", name "' . $creative->name - . '", and type "' . $creative->CreativeType - . "\" was found.\n"; - $i++; + printf("%d) Creative with ID %d, and name '%s' was found.\n", $i++, + $creative->id, $creative->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/CreativeService/GetImageCreatives.php b/examples/Dfp/v201502/CreativeService/GetImageCreatives.php new file mode 100755 index 000000000..b859cfb8e --- /dev/null +++ b/examples/Dfp/v201502/CreativeService/GetImageCreatives.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201502'); + + // Create a statement to select only image creatives. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('creativeType = :creativeType') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('creativeType', 'ImageCreative'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creative) { + printf("%d) Creative with ID %d, and name '%s' was found.\n", $i++, + $creative->id, $creative->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201502/CreativeService/UpdateCreatives.php similarity index 53% rename from examples/Dfp/v201403/CreativeService/UpdateCreativesExample.php rename to examples/Dfp/v201502/CreativeService/UpdateCreatives.php index 65da4c7c3..cd49dd76b 100755 --- a/examples/Dfp/v201403/CreativeService/UpdateCreativesExample.php +++ b/examples/Dfp/v201502/CreativeService/UpdateCreatives.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201403'); - - // Create a statement to get all image creatives. - $filterStatement = - new Statement("WHERE creativeType = 'ImageCreative' LIMIT 500"); + $creativeService = $user->GetService('CreativeService', 'v201502'); - // Get creatives by statement. - $page = $creativeService->getCreativesByStatement($filterStatement); + // Create a statement to select a single creative by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $creativeId); - if (isset($page->results)) { - $creatives = $page->results; + // Get the creative. + $page = $creativeService->getCreativesByStatement( + $statementBuilder->ToStatement()); + $creative = $page->results[0]; - // Update each local creative object by changing its destination URL. - foreach ($creatives as $creative) { - $creative->destinationUrl = 'http://news.google.com'; - } + // Only update the destination URL if it has one. + if ($creative instanceof HasDestinationUrlCreative) { + // Update the destination URL of the creative. + $creative->destinationUrl = 'https://news.google.com'; - // Update the creatives on the server. - $creatives = $creativeService->updateCreatives($creatives); + // Update the creative on the server. + $creatives = $creativeService->updateCreatives(array($creative)); - // Display results. - if (isset($creatives)) { - foreach ($creatives as $creative) { - print 'An image creative with ID "' . $creative->id - . '" and destination URL "' . $creative->destinationUrl - . "\" was updated.\n"; - } - } else { - print "No creatives updated.\n"; + foreach ($creatives as $updatedCreative) { + printf("Creative with ID %d, and name '%s' was updated.\n", + $updatedCreative->id, $updatedCreative->name); } } else { - print "No creatives found to update.\n"; + printf("No creatives were updated.\n"); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php b/examples/Dfp/v201502/CreativeSetService/CreateCreativeSet.php similarity index 79% rename from examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php rename to examples/Dfp/v201502/CreativeSetService/CreateCreativeSet.php index d15a727ed..f698dc420 100755 --- a/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php +++ b/examples/Dfp/v201502/CreativeSetService/CreateCreativeSet.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201403'); + $creativeSetService = $user->GetService('CreativeSetService', 'v201502'); // Set the ID of the creatives to associate with this set. $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; @@ -64,14 +64,13 @@ $creativeSet->companionCreativeIds[] = $companionCreativeID; // Create the creative set on the server. - $creativeSets = $creativeSetService->createCreativeSets(array($creativeSet)); + $createdCreativeSet = $creativeSetService->createCreativeSet($creativeSet); - foreach ($creativeSets as $creativeSet) { - printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " - . ", and companion creativeID(s) {%s} was created.\n", - $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, - join(',', $creativeSet->companionCreativeIds)); - } + printf("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was created.\n", + $createdCreativeSet->id, $createdCreativeSet->name, + $createdCreativeSet->masterCreativeId, + join(',', $createdCreativeSet->companionCreativeIds)); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201502/CreativeSetService/GetAllCreativesSets.php similarity index 65% rename from examples/Dfp/v201403/CreativeSetService/GetAllCreativesSetsExample.php rename to examples/Dfp/v201502/CreativeSetService/GetAllCreativesSets.php index 6d4b8bf89..d97bea620 100755 --- a/examples/Dfp/v201403/CreativeSetService/GetAllCreativesSetsExample.php +++ b/examples/Dfp/v201502/CreativeSetService/GetAllCreativesSets.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201403'); + $creativeSetService = $user->GetService('CreativeSetService', 'v201502'); - // Set default offset. - $offset = 0; - $filterStatement = new Statement(); + // Create a statement to select all creative sets. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all creative sets. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get creative sets by statement. - $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + $page = $creativeSetService->getCreativeSetsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $creativeSet) { - printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " - . ", and companion creativeID(s) {%s} was found.\n", - $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, - join(',', $creativeSet->companionCreativeIds)); - $i++; + printf("%d) Creative set with ID %d, and name '%s' was found.\n", $i++, + $creativeSet->id, $creativeSet->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php b/examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php new file mode 100755 index 000000000..ca1ba7200 --- /dev/null +++ b/examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201502'); + + // Create a statement to select only creative sets that have the given master + // creative. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('masterCreativeId = :masterCreativeId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('masterCreativeId', $masterCreativeId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf("%d) Creative set with ID %d, and name '%s' was found.\n", $i++, + $creativeSet->id, $creativeSet->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CreativeSetService/UpdateCreativeSetsExample.php b/examples/Dfp/v201502/CreativeSetService/UpdateCreativeSet.php similarity index 58% rename from examples/Dfp/v201403/CreativeSetService/UpdateCreativeSetsExample.php rename to examples/Dfp/v201502/CreativeSetService/UpdateCreativeSet.php index 49d72995c..070aaf6b3 100755 --- a/examples/Dfp/v201403/CreativeSetService/UpdateCreativeSetsExample.php +++ b/examples/Dfp/v201502/CreativeSetService/UpdateCreativeSet.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201403'); - - // Set the ID of the creative set to get. - $creativeSetId = 'INSERT_CREATIVE_SET_ID_HERE'; - $companionCreativeId = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + $creativeSetService = $user->GetService('CreativeSetService', 'v201502'); // Create a statement to select a single creative set by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($creativeSetId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $creativeSetId); // Get the creative set. - $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + $page = $creativeSetService->getCreativeSetsByStatement( + $statementBuilder->ToStatement()); $creativeSet = $page->results[0]; - // Update the companion creatives. - $creativeSet->companionCreativeIds[] = $companionCreativeID; + // Add the companion creative to the creative set. + $creativeSet->companionCreativeIds[] = $companionCreativeId; // Update the creative set on the server. - $creativeSets = $creativeSetService->updateCreativeSets(array($creativeSet)); + $updatedCreativeSet = $creativeSetService->updateCreativeSet($creativeSet); - foreach ($creativeSets as $creativeSet) { - printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " - . ", and companion creativeID(s) {%s} was updated.\n", - $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, - join(',', $creativeSet->companionCreativeIds)); - } + printf("Creative set with ID %d, master creative ID %d, and companion " + . "creative IDs [%s] was updated.\n", $updatedCreativeSet->id, + $updatedCreativeSet->masterCreativeId, + implode(',', $updatedCreativeSet->companionCreativeIds)); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201502/CreativeTemplateService/GetAllCreativeTemplates.php similarity index 65% rename from examples/Dfp/v201403/CreativeTemplateService/GetAllCreativeTemplatesExample.php rename to examples/Dfp/v201502/CreativeTemplateService/GetAllCreativeTemplates.php index 095b72e04..c29c2856c 100755 --- a/examples/Dfp/v201403/CreativeTemplateService/GetAllCreativeTemplatesExample.php +++ b/examples/Dfp/v201502/CreativeTemplateService/GetAllCreativeTemplates.php @@ -6,7 +6,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -21,13 +21,12 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Adam Rogal - * @author Eric Koleda + * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -38,6 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -49,42 +49,42 @@ $user->LogDefaults(); // Get the CreativeTemplateService. - $creativeTemplateService = - $user->GetService('CreativeTemplateService', 'v201403'); + $creativeTemplateService = $user->GetService('CreativeTemplateService', + 'v201502'); - // Set defaults for page and statement. - $page = new CreativeTemplatePage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all creative templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all creative templates. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get creative templates by statement. $page = $creativeTemplateService->getCreativeTemplatesByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $creativeTemplate) { - printf("%d) Creative template with ID '%s', name '%s', and type '%s' " - ."was found.\n", $i, $creativeTemplate->id, $creativeTemplate->name, + printf("%d) Creative template with ID %d, name '%s', and type %s was " + . "found.\n", $i++, $creativeTemplate->id, $creativeTemplate->name, $creativeTemplate->type); - $i++; } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php b/examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php new file mode 100755 index 000000000..cba827a63 --- /dev/null +++ b/examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = $user->GetService('CreativeTemplateService', + 'v201502'); + + // Create a statement to select only system defined creative templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'SYSTEM_DEFINED'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID %d, name '%s', and type %s was " + . "found.\n", $i++, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201502/CreativeWrapperService/CreateCreativeWrappers.php similarity index 97% rename from examples/Dfp/v201403/CreativeWrapperService/CreateCreativeWrappersExample.php rename to examples/Dfp/v201502/CreativeWrapperService/CreateCreativeWrappers.php index a2fca0973..e0dbc4d8c 100755 --- a/examples/Dfp/v201403/CreativeWrapperService/CreateCreativeWrappersExample.php +++ b/examples/Dfp/v201502/CreativeWrapperService/CreateCreativeWrappers.php @@ -3,7 +3,7 @@ * This code example creates a new creative wrapper. Creative wrappers must be * associated with a LabelType.CREATIVE_WRAPPER label and applied to ad units * by AdUnit.appliedLabels. To determine which creative wrappers exist, run - * GetAllCreativeWrappersExample.php. + * GetAllCreativeWrappers.php. * * Tags: CreativeWrapperService.createCreativeWrappers * @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -51,7 +51,7 @@ $user->LogDefaults(); // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); + $creativeWrapperService = $user->GetCreativeWrapperService('v201502'); $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; diff --git a/examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php b/examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php new file mode 100755 index 000000000..0294fe6ae --- /dev/null +++ b/examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetService('CreativeWrapperService', + 'v201502'); + + // Create a statement to select the active creative wrappers for the given + // label. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('labelId = :labelId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('labelId', $labelId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative wrappers by statement. + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeWrapper) { + printf("%d) Creative wrapper with ID %d, applying to label with ID %d, " + . "with status %s will be deactivated.\n", $i++, + $creativeWrapper->id, $creativeWrapper->labelId, + $creativeWrapper->status); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of creative wrappers to be deactivated: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeactivateCreativeWrappers(); + + // Perform action. + $result = $creativeWrapperService->performCreativeWrapperAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of creative wrappers deactivated: %d\n", + $result->numChanges); + } else { + printf("No creative wrappers were deactivated.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201502/CreativeWrapperService/GetActiveCreativeWrappers.php similarity index 53% rename from examples/Dfp/v201403/CreativeWrapperService/GetActiveCreativeWrappersExample.php rename to examples/Dfp/v201502/CreativeWrapperService/GetActiveCreativeWrappers.php index 7b8e164a4..05808f349 100755 --- a/examples/Dfp/v201403/CreativeWrapperService/GetActiveCreativeWrappersExample.php +++ b/examples/Dfp/v201502/CreativeWrapperService/GetActiveCreativeWrappers.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); + $creativeWrapperService = $user->GetService('CreativeWrapperService', + 'v201502'); // Create a statement to select only active creative wrappers. - $vars = MapUtils::GetMapEntries(array('status' => new TextValue('ACTIVE'))); - $filterStatement = - new Statement('WHERE status = :status', $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); - // Get creative wrappers by statement. - $page = - $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + // Default for total result set size. + $totalResultSetSize = 0; - // Display results. - if (isset($page->results)) { - foreach ($page->results as $creativeWrapper) { - printf("Creative wrapper with ID '%s' applying to label '%s' with" . - " status '%s' was found.\n", $creativeWrapper->id, - $creativeWrapper->labelId, $creativeWrapper->status); + do { + // Get creative wrappers by statement. + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeWrapper) { + printf("%d) Creative wrapper with ID %d, applying to label %d, and " + . "status %s was found.\n", $i++, $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } } - } - printf("Number of results found: %s\n", $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } - diff --git a/examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php b/examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php new file mode 100755 index 000000000..980276a82 --- /dev/null +++ b/examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetService('CreativeWrapperService', + 'v201502'); + + // Create a statement to select all creative wrappers. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative wrappers by statement. + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeWrapper) { + printf("%d) Creative wrapper with ID %d, applying to label %d, and " + . "status %s was found.\n", $i++, $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201502/CreativeWrapperService/UpdateCreativeWrappers.php similarity index 67% rename from examples/Dfp/v201403/CreativeWrapperService/UpdateCreativeWrappersExample.php rename to examples/Dfp/v201502/CreativeWrapperService/UpdateCreativeWrappers.php index 7d1fa492d..3803e57ce 100755 --- a/examples/Dfp/v201403/CreativeWrapperService/UpdateCreativeWrappersExample.php +++ b/examples/Dfp/v201502/CreativeWrapperService/UpdateCreativeWrappers.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201403'); - - $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + $creativeWrapperService = $user->GetService('CreativeWrapperService', 'v201502'); // Create a statement to select a single creative wrapper by ID. - $vars = - MapUtils::GetMapEntries(array('id' => - new NumberValue($creativeWrapperId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $creativeWrapperId); // Get the creative wrapper. - $page = - $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); $creativeWrapper = $page->results[0]; // Update the creative wrapper ordering. @@ -74,9 +75,10 @@ $creativeWrappers = $creativeWrapperService->updateCreativeWrappers(array($creativeWrapper)); - foreach ($creativeWrappers as $creativeWrapper) { - printf("Creative wrapper with ID '%s' and wrapping order '%s' was " . - "updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + foreach ($creativeWrappers as $updatedCreativeWrapper) { + printf("Creative wrapper with ID %d, and wrapping order '%s' was " + . "updated.\n", $updatedCreativeWrapper->id, + $updatedCreativeWrapper->ordering); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201403/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201502/CustomFieldService/CreateCustomFieldOptions.php similarity index 95% rename from examples/Dfp/v201403/CustomFieldService/CreateCustomFieldOptions.php rename to examples/Dfp/v201502/CustomFieldService/CreateCustomFieldOptions.php index 482e9169d..7cabf1c68 100755 --- a/examples/Dfp/v201403/CustomFieldService/CreateCustomFieldOptions.php +++ b/examples/Dfp/v201502/CustomFieldService/CreateCustomFieldOptions.php @@ -3,7 +3,7 @@ * This example creates custom field options for a drop-down custom field. * Once created, custom field options can be found under the options fields of * the drop-down custom field and they cannot be deleted. To determine which - * custom fields exist, run GetAllCustomFieldsExample.php. + * custom fields exist, run GetAllCustomFields.php. * * Tags: CustomFieldService.createCustomFieldOptions * @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,7 +52,7 @@ // Get the CustomFieldService. $customFieldService = - $user->GetService('CustomFieldService', 'v201403'); + $user->GetService('CustomFieldService', 'v201502'); // Set the ID of the drop-down custom field to create options for. $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; diff --git a/examples/Dfp/v201403/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201502/CustomFieldService/CreateCustomFields.php similarity index 95% rename from examples/Dfp/v201403/CustomFieldService/CreateCustomFields.php rename to examples/Dfp/v201502/CustomFieldService/CreateCustomFields.php index e026b00bc..6a8980ee1 100755 --- a/examples/Dfp/v201403/CustomFieldService/CreateCustomFields.php +++ b/examples/Dfp/v201502/CustomFieldService/CreateCustomFields.php @@ -1,7 +1,7 @@ GetService('CustomFieldService', 'v201403'); + $user->GetService('CustomFieldService', 'v201502'); // Create custom fields. $customField1 = new CustomField(); diff --git a/examples/Dfp/v201403/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201502/CustomFieldService/DeactivateCustomFields.php similarity index 55% rename from examples/Dfp/v201403/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php rename to examples/Dfp/v201502/CustomFieldService/DeactivateCustomFields.php index e90ffcc1e..e256ba814 100755 --- a/examples/Dfp/v201403/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php +++ b/examples/Dfp/v201502/CustomFieldService/DeactivateCustomFields.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the CustomFieldService. - $customFieldService = $user->GetService('CustomFieldService', 'v201403'); + $customFieldService = $user->GetService('CustomFieldService', 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('entityType' => new TextValue("LINE_ITEM"), - 'isActive' => new BooleanValue("TRUE"))); + // Create a statement to select a single custom field by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customFieldId); - // Create statement text to select only active custom fields that apply - // to line items. - $filterStatementText = - "WHERE entityType = :entityType and isActive = :isActive"; - $offset = 0; + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, - $vars); - // Get custom fields by statement. - $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); // Display results. - $customFieldIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $customField) { - print $i . ') Custom field with ID "' - . $customField->id . '" and name "' . $customField->name - . "\" will be deactivated.\n"; - $i++; - $customFieldIds[] = $customField->id; + printf("%d) Custom field with ID %d, and name '%s' will be " + . "deactivated.\n", $i++, $customField->id, $customField->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of custom fields to be deactivated: ' . sizeof($customFieldIds) - . "\n"; + printf("Number of custom fields to be deactivated: %d\n", + $totalResultSetSize); - if (sizeof($customFieldIds) > 0) { - // Create action statement. - $filterStatementText = - sprintf('WHERE id IN (%s)', implode(',', $customFieldIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeactivateCustomFields(); // Perform action. $result = $customFieldService->performCustomFieldAction($action, - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of custom fields deactivated: ' . $result->numChanges - . "\n"; + printf("Number of custom fields deactivated: %d\n", $result->numChanges); } else { - print "No custom fields were activated.\n"; + printf("No custom fields were deactivated.\n"); } } } catch (OAuth2Exception $e) { @@ -118,6 +110,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201502/CustomFieldService/GetAllCustomFields.php similarity index 65% rename from examples/Dfp/v201403/CustomFieldService/GetAllCustomFieldsExample.php rename to examples/Dfp/v201502/CustomFieldService/GetAllCustomFields.php index d56536c3f..56ef4230e 100755 --- a/examples/Dfp/v201403/CustomFieldService/GetAllCustomFieldsExample.php +++ b/examples/Dfp/v201502/CustomFieldService/GetAllCustomFields.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CustomFieldService. - $customFieldService = $user->GetService('CustomFieldService', 'v201403'); + $customFieldService = $user->GetService('CustomFieldService', 'v201502'); - // Set defaults for page and statement. - $page = new CustomFieldPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all custom fields. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all custom fields. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get custom fields by statement. - $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $customField) { - print $i . ') Custom field with ID "' . $customField->id - . '" and name "' . $customField->name . "\" was found.\n"; - $i++; + printf("%d) Custom field with ID %d, and name '%s' was found.\n", $i++, + $customField->id, $customField->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php b/examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php new file mode 100755 index 000000000..320e5b3e7 --- /dev/null +++ b/examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201502'); + + // Create a statement to select only custom fields that can be applied to + // line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('entityType = :entityType') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('entityType', 'LINE_ITEM'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customField) { + printf("%d) Custom field with ID %d, and name '%s' was found.\n", $i++, + $customField->id, $customField->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201502/CustomFieldService/SetLineItemCustomFieldValue.php similarity index 93% rename from examples/Dfp/v201403/CustomFieldService/SetLineItemCustomFieldValue.php rename to examples/Dfp/v201502/CustomFieldService/SetLineItemCustomFieldValue.php index e0581f344..2a340254f 100755 --- a/examples/Dfp/v201403/CustomFieldService/SetLineItemCustomFieldValue.php +++ b/examples/Dfp/v201502/CustomFieldService/SetLineItemCustomFieldValue.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); + $lineItemService = $user->GetService('LineItemService', 'v201502'); // Set the IDs of the custom fields, custom field option, and line item. $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; diff --git a/examples/Dfp/v201403/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201502/CustomFieldService/UpdateCustomFields.php similarity index 66% rename from examples/Dfp/v201403/CustomFieldService/UpdateCustomFieldExample.php rename to examples/Dfp/v201502/CustomFieldService/UpdateCustomFields.php index 83f553526..4a040961d 100755 --- a/examples/Dfp/v201403/CustomFieldService/UpdateCustomFieldExample.php +++ b/examples/Dfp/v201502/CustomFieldService/UpdateCustomFields.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the CustomFieldService. - $customFieldService = $user->GetService('CustomFieldService', 'v201403'); - - // Set the ID of the custom field to update. - $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $customFieldService = $user->GetService('CustomFieldService', 'v201502'); // Create a statement to select a single custom field by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($customFieldId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customFieldId); // Get the custom field. - $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); $customField = $page->results[0]; - // Update the description on the custom field. - $customField->description = "Description " . time(); + // Update the custom field description. + $customField->description = 'New custom field description.'; // Update the custom field on the server. $customFields = $customFieldService->updateCustomFields(array($customField)); - foreach ($customFields as $customField) { - printf("Custom field with ID '%s', name '%s', and description '%s' was " - . "updated.\n", $customField->id, $customField->name, - $customField->description); + foreach ($customFields as $updatedCustomField) { + printf("Custom field with ID %d, and name '%s' was updated.\n", + $updatedCustomField->id, $updatedCustomField->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201403/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201502/CustomTargetingService/CreateCustomTargetingKeysAndValues.php similarity index 96% rename from examples/Dfp/v201403/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php rename to examples/Dfp/v201502/CustomTargetingService/CreateCustomTargetingKeysAndValues.php index 20054ba3f..10da120c7 100755 --- a/examples/Dfp/v201403/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php +++ b/examples/Dfp/v201502/CustomTargetingService/CreateCustomTargetingKeysAndValues.php @@ -2,8 +2,8 @@ /** * This example creates new custom targeting keys and values. To determine which * custom targeting keys and values exist, run - * GetAllCustomTargetingKeysAndValuesExample.php. To target these custom - * targeting keys and values, run TargetCustomCriteriaExample.php. + * GetAllCustomTargetingKeysAndValues.php. To target these custom + * targeting keys and values, run TargetCustomCriteria.php. * * Tags: CustomTargetingService.createCustomTargetingKeys * Tags: CustomTargetingService.createCustomTargetingValues @@ -25,7 +25,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -54,7 +54,7 @@ // Get the CustomTargetingService. $customTargetingService = - $user->GetService('CustomTargetingService', 'v201403'); + $user->GetService('CustomTargetingService', 'v201502'); // Create predefined key. $genderKey = new CustomTargetingKey(); diff --git a/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingKeys.php similarity index 57% rename from examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingKeysExample.php rename to examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingKeys.php index b11341199..a29b03bc5 100755 --- a/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingKeysExample.php +++ b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingKeys.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201403'); - - // Set the name of the custom targeting key to delete. - $keyName = 'INSERT_CUSTOM_TARGETING_KEY_NAME_HERE'; - - // Create statement text to only select custom targeting key by the given - // name. - $filterStatementText = 'WHERE name = :name'; + $customTargetingService = $user->GetService('CustomTargetingService', + 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + // Create a statement to select a single custom targeting key by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingKeyId); - $offset = 0; - $keyIds = array(); + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = new Statement($filterStatementText . - ' LIMIT 500 OFFSET ' . $offset, $vars); - // Get custom targeting keys by statement. $page = $customTargetingService->getCustomTargetingKeysByStatement( - $filterStatement); + $statementBuilder->ToStatement()); + // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; foreach ($page->results as $customTargetingKey) { - $keyIds[] = $customTargetingKey->id; + printf("%d) Custom targeting key with ID %d, name '%s', and display " + . "name '%s' will be deleted.\n", $i++, $customTargetingKey->id, + $customTargetingKey->name, $customTargetingKey->displayName); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); printf("Number of custom targeting keys to be deleted: %d\n", - sizeof($keyIds)); + $totalResultSetSize); - if (sizeof($keyIds) > 0) { - // Create action statement. - $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeleteCustomTargetingKeys(); // Perform action. - $result = $customTargetingService->performCustomTargetingKeyAction( - $action, $filterStatement); + $result = $customTargetingService->performCustomTargetingKeyAction($action, + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { printf("Number of custom targeting keys deleted: %d\n", $result->numChanges); } else { - print "No custom targeting keys were deleted.\n"; + printf("No custom targeting keys were deleted.\n"); } } } catch (OAuth2Exception $e) { @@ -115,6 +113,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingValues.php similarity index 57% rename from examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingValuesExample.php rename to examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingValues.php index bd79d93f0..f7a85a4f0 100755 --- a/examples/Dfp/v201403/CustomTargetingService/DeleteCustomTargetingValuesExample.php +++ b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingValues.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201403'); - - // Set ID of the custom targeting key to delete values from. - $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; - - // Create statement text to only select custom values by the given custom - // targeting key ID. - $filterStatementText = 'WHERE customTargetingKeyId = :keyId'; + $customTargetingService = $user->GetService('CustomTargetingService', + 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + // Create a statement to select a single custom targeting value by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingValueId); - $offset = 0; - $valueIds = array(); + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = new Statement($filterStatementText . - ' LIMIT 500 OFFSET ' . $offset, $vars); - // Get custom targeting values by statement. $page = $customTargetingService->getCustomTargetingValuesByStatement( - $filterStatement); + $statementBuilder->ToStatement()); + // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; foreach ($page->results as $customTargetingValue) { - $valueIds[] = $customTargetingValue->id; + printf("%d) Custom targeting value with ID %d, name '%s', and display " + . "name '%s' will be deleted.\n", $i++, $customTargetingValue->id, + $customTargetingValue->name, $customTargetingValue->displayName); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); printf("Number of custom targeting values to be deleted: %d\n", - sizeof($valueIds)); + $totalResultSetSize); - if (sizeof($valueIds) > 0) { - // Create action statement. - $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); - $filterStatement = new Statement($filterStatementText, $vars); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeleteCustomTargetingValues(); // Perform action. $result = $customTargetingService->performCustomTargetingValueAction( - $action, $filterStatement); + $action, $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { printf("Number of custom targeting values deleted: %d\n", $result->numChanges); } else { - print "No custom targeting values were deleted.\n"; + printf("No custom targeting values were deleted.\n"); } } } catch (OAuth2Exception $e) { @@ -115,6 +113,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php b/examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php new file mode 100755 index 000000000..aa8a39f55 --- /dev/null +++ b/examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php @@ -0,0 +1,151 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201502'); + + // Get all custom targeting keys. + $customTargetingKeys = getAllCustomTargetingKeyIds($user); + + // Create a statement to get all custom targeting values for a custom + // targeting key. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('customTargetingKeyId = :customTargetingKeyId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + $totalResultsCounter = 0; + + foreach ($customTargetingKeys as $customTargetingKey) { + // Set the custom targeting key ID to select from. + $statementBuilder->WithBindVariableValue('customTargetingKeyId', + $customTargetingKey); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customTargetingValue) { + printf("%d) Custom targeting value with ID %d, name '%s', display " + . "name '%s', and belonging to key with ID %d was found.\n", + $totalResultSetSize++, + $customTargetingValue->id, + $customTargetingValue->name, + $customTargetingValue->displayName, + $customTargetingValue->customTargetingKeyId); + } + } + + $statementBuilder->IncreaseOffsetBy( + StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + } + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + +/** + * Gets all custom targeting key IDs. + */ +function getAllCustomTargetingKeyIds($user) { + $customTargetingKeyIds = array(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201502'); + + // Create a statement to get all custom targeting keys. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customTargetingKey) { + printf("%d) Custom targeting key with ID %d, name '%s', and display " + . "name '%s' was found.\n", $i++, $customTargetingKey->id, + $customTargetingKey->name, $customTargetingKey->displayName); + $customTargetingKeyIds[] = $customTargetingKey->id; + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + return $customTargetingKeyIds; +} + diff --git a/examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php b/examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php new file mode 100755 index 000000000..d3ec92b39 --- /dev/null +++ b/examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php @@ -0,0 +1,157 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201502'); + + // Get all predefined custom targeting keys. + $customTargetingKeyIds = getPredefinedCustomTargetingKeyIds($user); + + // Create a statement to get all custom targeting values for a custom + // targeting key. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('customTargetingKeyId = :customTargetingKeyId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + $totalResultsCounter = 0; + + foreach ($customTargetingKeyIds as $customTargetingKeyId) { + // Set the custom targeting key ID to select from. + $statementBuilder->WithBindVariableValue('customTargetingKeyId', + $customTargetingKeyId); + + // Default for total result set size and offset. + $totalResultSetSize = 0; + $statementBuilder->Offset(0); + + do { + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + foreach ($page->results as $customTargetingValue) { + printf("%d) Custom targeting value with ID %d, belonging to key with " + ."ID %d, name '%s', and display name '%s' was found.\n", + $totalResultsCounter++, + $customTargetingValue->id, + $customTargetingValue->customTargetingKeyId, + $customTargetingValue->name, + $customTargetingValue->displayName); + } + } + + $statementBuilder->IncreaseOffsetBy( + StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + } + + printf("Number of results found: %d\n", $totalResultsCounter); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + +/** + * Gets predefined custom targeting key IDs. + */ +function getPredefinedCustomTargetingKeyIds($user) { + $customTargetingKeyIds = array(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201502'); + + // Create a statement to get predefined custom targeting keys. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'PREDEFINED'); + + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customTargetingKey) { + printf("%d) Custom targeting key with ID %d, name '%s', and display " + . "name '%s' was found.\n", + $i++, + $customTargetingKey->id, + $customTargetingKey->name, + $customTargetingKey->displayName); + $customTargetingKeyIds[] = $customTargetingKey->id; + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + return $customTargetingKeyIds; +} + diff --git a/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingKeys.php similarity index 50% rename from examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingKeysExample.php rename to examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingKeys.php index 6391785e8..e3cfe7137 100755 --- a/examples/Dfp/v201403/CustomTargetingService/UpdateCustomTargetingKeysExample.php +++ b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingKeys.php @@ -1,15 +1,15 @@ GetService('CustomTargetingService', 'v201403'); + $user->GetService('CustomTargetingService', 'v201502'); - // Create a statement to get all custom targeting keys. - $filterStatement = new Statement('LIMIT 500'); + // Create a statement to select a single custom targeting key by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingKeyId); - // Get custom targeting keys by statement. - $page = $customTargetingService->getCustomTargetingKeysByStatement( - $filterStatement); + // Default for total result set size. + $totalResultSetSize = 0; - if (isset($page->results)) { - $keys = $page->results; + // Get the custom targeting key. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $statementBuilder->ToStatement()); + $customTargetingKey = $page->results[0]; - // Update each local custom targeting key object by changing its display - // name. - foreach ($keys as $key) { - if (empty($key->displayName)) { - $key->displayName = $key->name; - } - $key->displayName .= ' (Deprecated)'; - } + // Update the custom targeting key's display name. + $customTargetingKey->displayName = 'New custom targeting key display name.'; - // Update the custom targeting keys on the server. - $keys = $customTargetingService->updateCustomTargetingKeys($keys); + // Update the custom targeting key on the server. + $customTargetingKeys = + $customTargetingService-> + updateCustomTargetingKeys(array($customTargetingKey)); - // Display results. - if (isset($keys)) { - foreach ($page->results as $key) { - printf("Custom targeting key with ID '%s', name '%s', and display " . - "name '%s' was updated.\n", $key->id, $key->name, - $key->displayName); - } - } else { - print "No custom targeting keys updated.\n"; - } - } else { - print "No custom targeting keys found to update.\n"; + foreach ($customTargetingKeys as $updatedCustomTargetingKey) { + printf("Custom targeting key with ID %d, name '%s', and display name '%s' " + . "was updated.\n", $updatedCustomTargetingKey->id, + $updatedCustomTargetingKey->name, + $updatedCustomTargetingKey->displayName); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingValues.php similarity index 51% rename from examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php rename to examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingValues.php index 6f1fceb97..0c5e5629a 100755 --- a/examples/Dfp/v201403/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php +++ b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingValues.php @@ -1,16 +1,15 @@ GetService('CustomTargetingService', 'v201403'); - - // Set the ID of the custom targeting key to get custom targeting values for. - $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + $user->GetService('CustomTargetingService', 'v201502'); - // Create a statement to only select custom targeting values for a given key. - $filterStatement = new Statement( - 'WHERE customTargetingKeyId = :keyId LIMIT 500', - MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId)))); + // Create a statement to select a single custom targeting value by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingValueId); - // Get custom targeting keys by statement. + // Get the custom targeting value. $page = $customTargetingService->getCustomTargetingValuesByStatement( - $filterStatement); + $statementBuilder->ToStatement()); + $customTargetingValue = $page->results[0]; - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $key) { - printf("%d) Custom targeting value with ID '%s', name '%s', and " . - "display name '%s' was found.\n", $i, $key->id, $key->name, - $key->displayName); - $i++; - } - } + // Update the custom targeting value's display name. + $customTargetingValue->displayName = + 'New custom targeting value display name.'; - printf("Number of results found: %d\n", sizeof($page->results)); + // Update the custom targeting value on the server. + $customTargetingValues = + $customTargetingService->updateCustomTargetingValues( + array($customTargetingValue)); + + foreach ($customTargetingValues as $updatedCustomTargetingValue) { + printf("Custom targeting value with ID %d, name '%s', and display name " + . "'%s' was updated.\n", $updatedCustomTargetingValue->id, + $updatedCustomTargetingValue->name, + $updatedCustomTargetingValue->displayName); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/ExchangeRateService/CreateExchangeRates.php b/examples/Dfp/v201502/ExchangeRateService/CreateExchangeRates.php new file mode 100755 index 000000000..7bbb53f92 --- /dev/null +++ b/examples/Dfp/v201502/ExchangeRateService/CreateExchangeRates.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201502'); + + // Create an exchange rate. + $exchangeRate = new ExchangeRate(); + + // Set the currency code. + $exchangeRate->currencyCode = 'AUD'; + + // Set the direction of the conversion (from the network currency). + $exchangeRate->direction = 'FROM_NETWORK'; + + // Set the conversion value as 1.5 (this value is multiplied by + // 10,000,000,000) + $exchangeRate->exchangeRate = 15000000000; + + // Do not refresh exchange rate from Google data. Update manually only. + $exchangeRate->refreshRate = 'FIXED'; + + // Create the exchange rate on the server. + $exchangeRates = + $exchangeRateService->createExchangeRates(array($exchangeRate)); + + foreach ($exchangeRates as $createdExchangeRate) { + printf("An exchange rate with ID %d, currency code '%s', direction '%s', " + . "and exchange rate %.2f was created.\n", + $createdExchangeRate->id, + $createdExchangeRate->currencyCode, + $createdExchangeRate->direction, + $createdExchangeRate->exchangeRate / 10000000000 + ); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php b/examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php new file mode 100755 index 000000000..fcac18f02 --- /dev/null +++ b/examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201502'); + + // Create a statement to select all exchange rates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get exchange rates by statement. + $page = $exchangeRateService->getExchangeRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $exchangeRate) { + printf("%d) Exchange rate with ID %d, currency code '%s', direction " + . "'%s', and exchange rate %.2f was found.\n", + $i++, + $exchangeRate->id, + $exchangeRate->currencyCode, + $exchangeRate->direction, + $exchangeRate->exchangeRate / 10000000000 + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php b/examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php new file mode 100755 index 000000000..45f2e922d --- /dev/null +++ b/examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php @@ -0,0 +1,101 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201502'); + + // Create a statement to select only exchange rates for a specific currency + // code. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('currencyCode = :currencyCode') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('currencyCode', $currencyCode); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get exchange rates by statement. + $page = $exchangeRateService->getExchangeRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $exchangeRate) { + printf("%d) Exchange rate with ID %d, currency code '%s', direction " + . "'%s', and exchange rate %.2f was found.\n", + $i++, + $exchangeRate->id, + $exchangeRate->currencyCode, + $exchangeRate->direction, + $exchangeRate->exchangeRate / 10000000000 + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php b/examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php new file mode 100755 index 000000000..cab144ef4 --- /dev/null +++ b/examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201502'); + + // Create a statement to select a single exchange rate by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id and refreshRate = :refreshRate') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $exchangeRateId) + ->WithBindVariableValue('refreshRate', 'FIXED'); + + // Get the exchange rate. + $page = $exchangeRateService->getExchangeRatesByStatement( + $statementBuilder->ToStatement()); + $exchangeRate = $page->results[0]; + + // Update the exchange rate value to 1.5. + $exchangeRate->exchangeRate = 15000000000; + + // Update the exchange rate on the server. + $exchangeRates = + $exchangeRateService->updateExchangeRates(array($exchangeRate)); + + foreach ($exchangeRates as $updatedExchangeRate) { + printf("Exchange rate with ID %d, currency code '%s', direction '%s', and " + . "exchange rate %.2f was updated.\n", + $updatedExchangeRate->id, + $updatedExchangeRate->currencyCode, + $updatedExchangeRate->direction, + $updatedExchangeRate->exchangeRate / 10000000000 + ); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/ForecastService/GetForecastExample.php b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecast.php similarity index 51% rename from examples/Dfp/v201403/ForecastService/GetForecastExample.php rename to examples/Dfp/v201502/ForecastService/GetAvailabilityForecast.php index 2b05cb21b..01d3e480b 100755 --- a/examples/Dfp/v201403/ForecastService/GetForecastExample.php +++ b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecast.php @@ -1,13 +1,17 @@ LogDefaults(); // Get the ForecastService. - $forecastService = $user->GetService('ForecastService', 'v201403'); + $forecastService = $user->GetService('ForecastService', 'v201502'); - // Set the placement ID that the prospective line item will target. - $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201502'); - // Create prospective line item. - $lineItem = new LineItem(); - $lineItem->lineItemType = 'SPONSORSHIP'; + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; // Create inventory targeting. $inventoryTargeting = new InventoryTargeting(); - $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); - // Set targeting for line item. + // Create ad unit targeting for the root ad unit. + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $adUnitTargeting->includeDescendants = true; + + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create targeting. $targeting = new Targeting(); $targeting->inventoryTargeting = $inventoryTargeting; + + // Create a line item. + $lineItem = new LineItem(); $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Set the roadblocking type. + $lineItem->roadblockingType = 'ONE_OR_MORE'; + + // Set the creative rotation type. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the creative placeholder size. + $size = new Size(); + $size->width = 300; + $size->height = 250; + $size->isAspectRatio = false; // Create the creative placeholder. $creativePlaceholder = new CreativePlaceholder(); - $creativePlaceholder->size = new Size(300, 250, FALSE); + $creativePlaceholder->size = $size; // Set the size of creatives that can be associated with this line item. $lineItem->creativePlaceholders = array($creativePlaceholder); - // Set the line item's time to be now until the projected end date time. + // Set the length of the line item to run. $lineItem->startDateTimeType = 'IMMEDIATELY'; - $lineItem->endDateTime = - DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); - - // Set the line item to use 50% of the impressions. - $lineItem->unitType = 'IMPRESSIONS'; - $lineItem->unitsBought = 50; + $lineItem->endDateTime = DateTimeUtils::GetDfpDateTime( + new DateTime('+30 days', new DateTimeZone('America/New_York'))); - // Set the cost type to match the unit type. + // Set the cost type. $lineItem->costType = 'CPM'; - // Get forecast for line item. - $forecast = $forecastService->getForecast($lineItem); + // Set the line item to use 50% of the impressions. + $goal = new Goal(); + $goal->goalType = 'DAILY'; + $goal->unitType = 'IMPRESSIONS'; + $goal->units = 50; + $lineItem->primaryGoal = $goal; + + // Get forecast for prospective line item. + $prospectiveLineItem = new ProspectiveLineItem(); + $prospectiveLineItem->lineItem = $lineItem; + $options = new AvailabilityForecastOptions(); + $options->includeContendingLineItems = true; + $options->includeTargetingCriteriaBreakdown = true; + + $forecast = + $forecastService->getAvailabilityForecast($prospectiveLineItem, $options); // Display results. $matchedUnits = $forecast->matchedUnits; - $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; $unitType = strtolower($forecast->unitType); - printf("%d %s matched.\n", $matchedUnits, $unitType); - printf("%d%% %s available.\n",$percentAvailableUnits, $unitType); - if (isset($forecast->possibleUnits)) { + if ($matchedUnits !== 0) { + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + printf("%.2d%% %s available.\n", $percentAvailableUnits, $unitType); + } + + if ($matchedUnits !== 0) { $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; - printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + printf("%.2d%% %s possible.\n", $percentPossibleUnits, $unitType); } printf("%d contending line items.\n", count($forecast->contendingLineItems)); diff --git a/examples/Dfp/v201403/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecastForLineItem.php similarity index 73% rename from examples/Dfp/v201403/ForecastService/GetForecastByIdExample.php rename to examples/Dfp/v201502/ForecastService/GetAvailabilityForecastForLineItem.php index d8d69e04b..ec1f9b7c0 100755 --- a/examples/Dfp/v201403/ForecastService/GetForecastByIdExample.php +++ b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecastForLineItem.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the ForecastService. - $forecastService = $user->GetService('ForecastService', 'v201403'); - - // Set the line item to get a forecast for. - $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $forecastService = $user->GetService('ForecastService', 'v201502'); // Get forecast for line item. - $forecast = $forecastService->getForecastById($lineItemId); + $options = new AvailabilityForecastOptions(); + $options->includeContendingLineItems = true; + $options->includeTargetingCriteriaBreakdown = true; + $forecast = $forecastService->getAvailabilityForecastById( + $lineItemId, $options); // Display results. $matchedUnits = $forecast->matchedUnits; - $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; $unitType = strtolower($forecast->unitType); - printf("%d %s matched.\n", $matchedUnits, $unitType); - printf("%d%% %s available.\n", $percentAvailableUnits, $unitType); - if (isset($forecast->possibleUnits)) { + if ($matchedUnits !== 0) { + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + printf("%.2d%% %s available.\n", $percentAvailableUnits, $unitType); + } + + if ($matchedUnits !== 0) { $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; - printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + printf("%.2d%% %s possible.\n", $percentPossibleUnits, $unitType); } printf("%d contending line items.\n", count($forecast->contendingLineItems)); diff --git a/examples/Dfp/v201403/ReportService/DisplayReportExample.php b/examples/Dfp/v201502/ForecastService/GetDeliveryForecastForLineItems.php similarity index 60% rename from examples/Dfp/v201403/ReportService/DisplayReportExample.php rename to examples/Dfp/v201502/ForecastService/GetDeliveryForecastForLineItems.php index 1ecbcbd10..0f07d84f5 100755 --- a/examples/Dfp/v201403/ReportService/DisplayReportExample.php +++ b/examples/Dfp/v201502/ForecastService/GetDeliveryForecastForLineItems.php @@ -1,10 +1,9 @@ LogDefaults(); - // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); - - // Set the ID of the completed report. - $reportJobId = 'INSERT_REPORT_JOB_ID_HERE'; - - // Set the format of the report (e.g., CSV_DUMP) and download without - // compression so we can print it. - $reportDownloadOptions = new ReportDownloadOptions(); - $reportDownloadOptions->exportFormat = 'INSERT_EXPORT_FORMAT_HERE'; - $reportDownloadOptions->useGzipCompression = false; + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201502'); - $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, - $reportDownloadOptions); + $options = new DeliveryForecastOptions(); + $forecast = $forecastService->getDeliveryForecastByIds( + array($lineItemId1, $lineItemId2), $options); - printf("Downloading report from URL '%s'.\n", $downloadUrl); - $report = ReportUtils::DownloadReport($downloadUrl); - printf("\n%s\n", $report); + foreach ($forecast->lineItemDeliveryForecasts as $lineItemForecast) { + $unitType = strtolower($lineItemForecast->unitType); + printf("Forecast for line item %d:\n", $lineItemForecast->lineItemId); + printf("\t%d %s matched\n", $lineItemForecast->matchedUnits, $unitType); + printf("\t%d %s delivered\n", $lineItemForecast->deliveredUnits, $unitType); + printf("\t%d %s predicted\n", + $lineItemForecast->predictedDeliveryUnits, $unitType); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201502/InventoryService/ArchiveAdUnits.php similarity index 53% rename from examples/Dfp/v201403/InventoryService/DeactivateAdUnitsExample.php rename to examples/Dfp/v201502/InventoryService/ArchiveAdUnits.php index d5b6759d6..63b5eae0d 100755 --- a/examples/Dfp/v201403/InventoryService/DeactivateAdUnitsExample.php +++ b/examples/Dfp/v201502/InventoryService/ArchiveAdUnits.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); - // Create statement text to get all active ad units. - $filterStatementText = "WHERE status = 'ACTIVE'"; + // Create a statement to select ad units under the parent ad unit and the + // parent ad unit. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('parentId = :parentId or id = :parentId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('parentId', $parentAdUnitId); - $offset = 0; + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); - // Get ad units by statement. - $page = $inventoryService->getAdUnitsByStatement($filterStatement); + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); // Display results. - $adUnitIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $adUnit) { - print $i . ') Ad unit with ID "' . $adUnit->id - . '", name "' . $adUnit->name - . '", and status "' . $adUnit->status . "\" will be deactivated.\n"; - $i++; - $adUnitIds[] = $adUnit->id; + printf("%d) Ad unit with ID %d, and name '%s' will be archived.\n", + $i++, $adUnit->id, $adUnit->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of ad units to be deactivated: ' . sizeof($adUnitIds) . "\n"; + printf("Number of ad units to be archived: %d\n", $totalResultSetSize); - if (sizeof($adUnitIds) > 0) { - // Create action statement. - $filterStatementText = - sprintf('WHERE id IN (%s)', implode(',', $adUnitIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. - $action = new DeactivateAdUnits(); + $action = new ArchiveAdUnits(); // Perform action. - $result = $inventoryService->performAdUnitAction($action, $filterStatement); + $result = $inventoryService->performAdUnitAction($action, + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of ad units deactivated: ' . $result->numChanges . "\n"; + printf("Number of ad units archived: %d\n", $result->numChanges); } else { - print "No ad units were deactivated.\n"; + printf("No ad units were archived.\n"); } } } catch (OAuth2Exception $e) { @@ -108,6 +110,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php b/examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php new file mode 100755 index 000000000..c99841445 --- /dev/null +++ b/examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php @@ -0,0 +1,122 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201502'); + + // Create a statement to select a single ad unit by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $adUnitId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + printf("%d) Ad unit with ID %d, and name '%s' will be added to " + . "placement ID %d.\n", $i++, $adUnit->id, $adUnit->name, + $placementId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of ad units to be added to the placement: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new AssignAdUnitsToPlacement(); + $action->placementId = $placementId; + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of ad units added to the placeement: %d\n", + $result->numChanges); + } else { + printf("No ad units were added to the placement.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201502/InventoryService/CreateAdUnits.php similarity index 94% rename from examples/Dfp/v201403/InventoryService/CreateAdUnitsExample.php rename to examples/Dfp/v201502/InventoryService/CreateAdUnits.php index 6de1fb943..729cb1a68 100755 --- a/examples/Dfp/v201403/InventoryService/CreateAdUnitsExample.php +++ b/examples/Dfp/v201502/InventoryService/CreateAdUnits.php @@ -1,8 +1,8 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); // Get the effective root ad unit's ID for all ad units to be created under. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201502/InventoryService/CreateMobileAdUnit.php similarity index 94% rename from examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php rename to examples/Dfp/v201502/InventoryService/CreateMobileAdUnit.php index 64dc8a100..1da05b49c 100755 --- a/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php +++ b/examples/Dfp/v201502/InventoryService/CreateMobileAdUnit.php @@ -2,8 +2,8 @@ /** * This example creates a new mobile ad unit under a the effective root ad unit. * Mobile features need to be enabled on your account to use mobile targeting. - * To determine which ad units exist, run GetInventoryTreeExample.php or - * GetAllAdUnitsExample.php. + * To determine which ad units exist, run GetInventoryTree.php or + * GetAllAdUnits.php. * * Tags: NetworkService.getCurrentNetwork * Tags: InventoryService.createAdUnits @@ -25,7 +25,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,10 +52,10 @@ $user->LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); // Get the effective root ad unit's ID for all ad units to be created under. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201502/InventoryService/CreateVideoAdUnit.php similarity index 95% rename from examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php rename to examples/Dfp/v201502/InventoryService/CreateVideoAdUnit.php index 175c3bb58..ed7f39f40 100755 --- a/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php +++ b/examples/Dfp/v201502/InventoryService/CreateVideoAdUnit.php @@ -2,8 +2,8 @@ /** * This example creates a new video ad unit under the effective root ad unit. * This feature is only available to DFP premium solution networks. To determine - * which ad units exist, run GetInventoryTreeExample.php or - * GetAllAdUnitsExample.php. + * which ad units exist, run GetInventoryTree.php or + * GetAllAdUnits.php. * * Tags: NetworkService.getCurrentNetwork * Tags: InventoryService.createAdUnits @@ -25,7 +25,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,10 +52,10 @@ $user->LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); // Get the effective root ad unit's ID for all ad units to be created under. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201403/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201502/InventoryService/GetAllAdUnitSizes.php similarity index 66% rename from examples/Dfp/v201403/InventoryService/GetAdUnitSizesExample.php rename to examples/Dfp/v201502/InventoryService/GetAllAdUnitSizes.php index 2b585c9cc..f0aa6685e 100755 --- a/examples/Dfp/v201403/InventoryService/GetAdUnitSizesExample.php +++ b/examples/Dfp/v201502/InventoryService/GetAllAdUnitSizes.php @@ -1,12 +1,12 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('targetPlatform' => new TextValue('WEB'))); - - // Create a statement to only select web ad units sizes. - $filterStatement = new Statement("WHERE targetPlatform = :targetPlatform", - $vars); + // Create a statement to select all ad unit sizes. + $statementBuilder = new StatementBuilder(); // Get all ad unit sizes by statement. - $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement( + $statementBuilder->ToStatement()); // Display results. - $i = 0; - foreach ($adUnitSizes as $adUnitSize) { - printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + foreach ($adUnitSizes as $i=>$adUnitSize) { + printf("%d) Ad unit size of dimensions %s was found.\n", $i, $adUnitSize->fullDisplayString); - $i++; } - printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); + printf("Number of ad unit sizes found: %d\n", count($adUnitSizes)); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201502/InventoryService/GetAllAdUnits.php similarity index 62% rename from examples/Dfp/v201403/InventoryService/GetAllAdUnitsExample.php rename to examples/Dfp/v201502/InventoryService/GetAllAdUnits.php index ac55942d7..73faa6e9d 100755 --- a/examples/Dfp/v201403/InventoryService/GetAllAdUnitsExample.php +++ b/examples/Dfp/v201502/InventoryService/GetAllAdUnits.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); - // Set defaults for page and statement. - $page = new AdUnitPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all ad units. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all ad units. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; - // Get creatives by statement. - $page = $inventoryService->getAdUnitsByStatement($filterStatement); + do { + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $adUnit) { - print $i . ') Ad unit with ID "' . $adUnit->id - . '", name "' . $adUnit->name - . '", and status "' . $adUnit->status . "\" was found.\n"; - $i++; + printf("%d) Ad unit with ID %s, name '%s', and status %s was found.\n", + $i++, $adUnit->id, $adUnit->name, $adUnit->status); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201502/InventoryService/GetInventoryTree.php similarity index 99% rename from examples/Dfp/v201403/InventoryService/GetInventoryTreeExample.php rename to examples/Dfp/v201502/InventoryService/GetInventoryTree.php index 130016ae1..0d27d8df8 100755 --- a/examples/Dfp/v201403/InventoryService/GetInventoryTreeExample.php +++ b/examples/Dfp/v201502/InventoryService/GetInventoryTree.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ */ function GetAllAdUnits(DfpUser $user) { // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); // Create array to hold all ad units. $adUnits = array(); @@ -85,7 +85,7 @@ function GetAllAdUnits(DfpUser $user) { */ function FindRootAdUnit(DfpUser $user) { // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); // Create a statement to only select image creatives. $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); diff --git a/examples/Dfp/v201403/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201502/InventoryService/GetTopLevelAdUnits.php similarity index 51% rename from examples/Dfp/v201403/InventoryService/GetAdUnitsByStatementExample.php rename to examples/Dfp/v201502/InventoryService/GetTopLevelAdUnits.php index 13df6c912..9177e4346 100755 --- a/examples/Dfp/v201403/InventoryService/GetAdUnitsByStatementExample.php +++ b/examples/Dfp/v201502/InventoryService/GetTopLevelAdUnits.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); - // Get the effective root ad unit's ID. - $network = $networkService->getCurrentNetwork(); - $effectiveRootAdUnitId = $network->effectiveRootAdUnitId; + // Set the parent ad unit's ID for all children ad units to be fetched from. + $parentAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; - // Create a statement to select the children of the effective root ad unit. - $filterStatement = - new Statement("WHERE parentId = :id LIMIT 500", - MapUtils::GetMapEntries(array( - 'id' => new NumberValue($effectiveRootAdUnitId)))); + // Create a statement to select ad units under the parent ad unit. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('parentId = :parentId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('parentId', $parentAdUnitId); - // Get ad units by statement. - $page = $inventoryService->getAdUnitsByStatement($filterStatement); + // Default for total result set size. + $totalResultSetSize = 0; - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $adUnit) { - print $i . ') Ad unit with ID "' . $adUnit->id - . '", name "' . $adUnit->name - . '", and status "' . $adUnit->status . "\" was found.\n"; - $i++; + do { + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + printf("%d) Ad unit with ID %s, name '%s', and status %s was found.\n", + $i++, $adUnit->id, $adUnit->name, $adUnit->status); + } } - } - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201502/InventoryService/UpdateAdUnits.php similarity index 51% rename from examples/Dfp/v201403/InventoryService/UpdateAdUnitsExample.php rename to examples/Dfp/v201502/InventoryService/UpdateAdUnits.php index a9c662d9c..68ec92dc8 100755 --- a/examples/Dfp/v201403/InventoryService/UpdateAdUnitsExample.php +++ b/examples/Dfp/v201502/InventoryService/UpdateAdUnits.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); - // Create a statement to get all ad units. - $filterStatement = new Statement("LIMIT 500"); + // Create a statement to select a single ad unit by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $adUnitId); - // Get ad units by statement. - $page = $inventoryService->getAdUnitsByStatement($filterStatement); + // Get the ad unit. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); + $adUnit = $page->results[0]; - if (isset($page->results)) { - $adUnits = $page->results; + // Create a 480x60 ad unit size. + $size = new Size(); + $size->width = 480; + $size->height = 60; - // Update each local ad unit object by enabling AdSense. - foreach ($adUnits as $adUnit) { - $adUnit->inheritedAdSenseSettings->value->adSenseEnabled = TRUE; - } + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = size; + $adUnitSize->environmentType = 'BROWSER'; + + // Update the ad unit sizes. + $adUnit->adUnitSizes[] = $adUnitSize; - // Update the ad units on the server. - $adUnits = $inventoryService->updateAdUnits($adUnits); + // Update the ad unit on the server. + $adUnits = $inventoryService->updateAdUnits(array($adUnit)); - // Display results. - if (isset($adUnits)) { - foreach ($adUnits as $adUnit) { - print 'Ad unit with ID "' . $adUnit->id . '", name "' . $adUnit->name - . '", and AdSense enabled "' - . ($adUnit->inheritedAdSenseSettings->value->adSenseEnabled - ? 'TRUE' : 'FALSE') - . "\" was updated.\n"; - } + foreach ($adUnits as $updatedAdUnit) { + $adUnitSizesStrings = array(); + foreach ($updatedAdUnit->adUnitSizes as $updatedAdUnitSize) { + $adUnitSizesStrings[] = sprintf('%dx%d', $updatedAdUnitSize->size->width, + $updatedAdUnitSize->size->height); } - } else { - print "No ad units updated.\n"; + printf("Ad unit with ID %d, name '%s', and sizes [%s] was updated.\n", + $updatedAdUnit->id, $updatedAdUnit->name, + implode(',', $adUnitSizesStrings)); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/LabelService/CreateLabelsExample.php b/examples/Dfp/v201502/LabelService/CreateLabels.php similarity index 94% rename from examples/Dfp/v201403/LabelService/CreateLabelsExample.php rename to examples/Dfp/v201502/LabelService/CreateLabels.php index cc104c0de..81f654b13 100755 --- a/examples/Dfp/v201403/LabelService/CreateLabelsExample.php +++ b/examples/Dfp/v201502/LabelService/CreateLabels.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201403'); + $labelService = $user->GetService('LabelService', 'v201502'); // Create an array to store local label objects. $labels = array(); diff --git a/examples/Dfp/v201403/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201502/LabelService/DeactivateLabels.php similarity index 54% rename from examples/Dfp/v201403/LabelService/DeactivateLabelsExample.php rename to examples/Dfp/v201502/LabelService/DeactivateLabels.php index fc6230143..c127229f1 100755 --- a/examples/Dfp/v201403/LabelService/DeactivateLabelsExample.php +++ b/examples/Dfp/v201502/LabelService/DeactivateLabels.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201403'); + $labelService = $user->GetService('LabelService', 'v201502'); - // Create statement text to get all active labels. - $filterStatementText = "WHERE isActive = true"; + // Create a statement to select a single label by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $labelId); - $offset = 0; + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); - // Get labels by statement. - $page = $labelService->getLabelsByStatement($filterStatement); + $page = $labelService->getLabelsByStatement( + $statementBuilder->ToStatement()); // Display results. - $labelIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; foreach ($page->results as $label) { - printf("A label with ID '%s' and name '%s' will be deactivated.\n", - $label->id, $label->name); - $labelIds[] = $label->id; + printf("%d) Label with ID %d, and name '%s' will be deactivated.\n", + $i++, $label->id, $label->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of labels to be deactivated: ' . sizeof($labelIds) . "\n"; + printf("Number of labels to be deactivated: %d\n", $totalResultSetSize); - if (sizeof($labelIds) > 0) { - // Create action statement. - $filterStatementText = - sprintf('WHERE id IN (%s)', implode(',', $labelIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeactivateLabels(); // Perform action. - $result = $labelService->performLabelAction($action, $filterStatement); + $result = $labelService->performLabelAction($action, + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of labels deactivated: ' . $result->numChanges . "\n"; + printf("Number of labels deactivated: %d\n", $result->numChanges); } else { - print "No labels were deactivated.\n"; + printf("No labels were deactivated.\n"); } } } catch (OAuth2Exception $e) { @@ -106,6 +109,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/LabelService/GetActiveLabels.php b/examples/Dfp/v201502/LabelService/GetActiveLabels.php new file mode 100755 index 000000000..2b979bebb --- /dev/null +++ b/examples/Dfp/v201502/LabelService/GetActiveLabels.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201502'); + + // Create a statement to select only active labels. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('isActive = :isActive') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('isActive', true); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get labels by statement. + $page = $labelService->getLabelsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID %d, and name '%s' was found.\n", $i++, + $label->id, $label->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201502/LabelService/GetAllLabels.php similarity index 64% rename from examples/Dfp/v201403/LabelService/GetAllLabelsExample.php rename to examples/Dfp/v201502/LabelService/GetAllLabels.php index 638d97e54..dcf59ddf9 100755 --- a/examples/Dfp/v201403/LabelService/GetAllLabelsExample.php +++ b/examples/Dfp/v201502/LabelService/GetAllLabels.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201403'); + $labelService = $user->GetService('LabelService', 'v201502'); - // Set defaults for page and statement. - $page = new LabelPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all labels. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all labels. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get labels by statement. - $page = $labelService->getLabelsByStatement($filterStatement); + $page = $labelService->getLabelsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $label) { - printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", - $i, $label->id, $label->name, join(",", $label->types)); - $i++; + printf("%d) Label with ID %d, and name '%s' was found.\n", $i++, + $label->id, $label->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201502/LabelService/UpdateLabels.php similarity index 57% rename from examples/Dfp/v201403/LabelService/GetLabelsByStatementExample.php rename to examples/Dfp/v201502/LabelService/UpdateLabels.php index ae5bfbbb4..a7936cb10 100755 --- a/examples/Dfp/v201403/LabelService/GetLabelsByStatementExample.php +++ b/examples/Dfp/v201502/LabelService/UpdateLabels.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201403'); + $labelService = $user->GetService('LabelService', 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries(array()); + // Create a statement to select a single label by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $labelId); - // Create a statement to select labels ordered by name. - $filterStatement = - new Statement("ORDER BY name LIMIT 500", $vars); + // Get the label. + $page = $labelService->getLabelsByStatement($statementBuilder->ToStatement()); + $label = $page->results[0]; - // Get labels by statement. - $page = $labelService->getLabelsByStatement($filterStatement); + // Update the label description. + $label->description = 'New label description.'; - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $label) { - printf("%d) Label with ID '%s', name '%s', and types {%s} was found.\n", - $i, $label->id, $label->name, join(",", $label->types)); - $i++; - } - } + // Update the label on the server. + $labels = $labelService->updateLabels(array($label)); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + foreach ($labels as $updatedLabel) { + printf("Label with ID %d, name '%s' was updated.\n", $updatedLabel->id, + $updatedLabel->name); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/LicaService/CreateLicasExample.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/CreateLicas.php similarity index 98% rename from examples/Dfp/v201403/LicaService/CreateLicasExample.php rename to examples/Dfp/v201502/LineItemCreativeAssociationService/CreateLicas.php index 86468cdac..4c0559962 100755 --- a/examples/Dfp/v201403/LicaService/CreateLicasExample.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/CreateLicas.php @@ -6,7 +6,7 @@ * be used for more than one line item. For premium solution networks, the * creative ids can represent any creatvie. To copy creatives, run * CopyImageCreatives.php. To determine which LICAs exist, run - * GetAllLicasExample.php. + * GetAllLicas.php. * * Tags: LineItemCreativeAssociationService.createLineItemCreativeAssociations * @@ -27,7 +27,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -56,7 +56,7 @@ // Get the LineItemCreativeAssociationService. $licaService = - $user->GetService('LineItemCreativeAssociationService', 'v201403'); + $user->GetService('LineItemCreativeAssociationService', 'v201502'); // Set the line item ID and creative ID to associate // them with. diff --git a/examples/Dfp/v201403/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/DeactivateLicas.php similarity index 53% rename from examples/Dfp/v201403/LicaService/DeactivateLicasExample.php rename to examples/Dfp/v201502/LineItemCreativeAssociationService/DeactivateLicas.php index 8e21da589..dc41479b8 100755 --- a/examples/Dfp/v201403/LicaService/DeactivateLicasExample.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/DeactivateLicas.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the LineItemCreativeAssociationService. - $licaService = - $user->GetService('LineItemCreativeAssociationService', 'v201403'); + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201502'); - // Set the line item to get LICAs by. - $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + // Create a statement to select all LICAs for a line item. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('lineItemId = :lineItemId') + ->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('lineItemId', $lineItemId); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('lineItemId' => new NumberValue($lineItemId))); - - // Create statement text to select active LICAs for a given line item. - $filterStatementText = "WHERE lineItemId = :lineItemId AND status = 'ACTIVE'"; - - $offset = 0; + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, - $vars); - // Get LICAs by statement. $page = $licaService->getLineItemCreativeAssociationsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. - $creativeIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $lica) { - print $i . ') LICA with line item ID "' . $lica->lineItemId - . '", creative ID "' . $lica->creativeId - . '", and status "' . $lica->status - . "\" will be deactivated.\n"; - $i++; - $creativeIds[] = $lica->creativeId; + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, and creative set ID %d will " + . "be deactivated.\n", $i++, $lica->lineItemId, + $lica->creativeSetId); + } else { + printf("%d) LICA with line item ID %d, and creative ID %d will be " + . "deactivated.\n", $i++, $lica->lineItemId, $lica->creativeId); + } } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) - . "\n"; + printf("Number of LICAs to be deactivated: %d\n", $totalResultSetSize); - if (sizeof($lica->creativeId) > 0) { - // Create action statement. - $filterStatementText = sprintf( - 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', - implode(',', $creativeIds)); - $filterStatement = new Statement($filterStatementText, $vars); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeactivateLineItemCreativeAssociations(); // Perform action. $result = $licaService->performLineItemCreativeAssociationAction($action, - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + printf("Number of LICAs deactivated: %d\n", $result->numChanges); } else { - print "No LICAs were deactivated.\n"; + printf("No LICAs were deactivated.\n"); } } } catch (OAuth2Exception $e) { @@ -122,6 +116,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/LicaService/GetAllLicasExample.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetAllLicas.php similarity index 63% rename from examples/Dfp/v201403/LicaService/GetAllLicasExample.php rename to examples/Dfp/v201502/LineItemCreativeAssociationService/GetAllLicas.php index 9eb4f7716..cedbec15a 100755 --- a/examples/Dfp/v201403/LicaService/GetAllLicasExample.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetAllLicas.php @@ -1,14 +1,13 @@ GetService('LineItemCreativeAssociationService', 'v201403'); + $user->GetService('LineItemCreativeAssociationService', 'v201502'); - // Set defaults for page and statement. - $page = new LineItemCreativeAssociationPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all LICAs. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all LICAs. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get LICAs by statement. $page = $licaService->getLineItemCreativeAssociationsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $lica) { if (isset($lica->creativeSetId)) { - printf("%d) LICA with line item ID %d, creative set ID %d, and " . - "status %s was found.\n", $i, $lica->lineItemId, - $lica->creativeSetId, $lica->status); + printf("%d) LICA with line item ID %d, and creative set ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeSetId); } else { - printf("%d) LICA with line item ID %d, creative ID %d, and status " . - "%s was found.\n", $i, $lica->lineItemId, $lica->creativeId, - $lica->status); + printf("%d) LICA with line item ID %d, and creative ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeId); } - $i++; } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php new file mode 100755 index 000000000..de35bb599 --- /dev/null +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php @@ -0,0 +1,101 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $lineItemCreativeAssociationService = $user->GetService( + 'LineItemCreativeAssociationService', 'v201502'); + + // Create a statement to select all LICAs for a given line item. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('lineItemId = :lineItemId') + ->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('lineItemId', $lineItemId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get LICAs by statement. + $page = $lineItemCreativeAssociationService-> + getLineItemCreativeAssociationsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, and creative set ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeSetId); + } else { + printf("%d) LICA with line item ID %d, and creative ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeId); + } + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/LicaService/UpdateLicasExample.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/UpdateLicas.php similarity index 54% rename from examples/Dfp/v201403/LicaService/UpdateLicasExample.php rename to examples/Dfp/v201502/LineItemCreativeAssociationService/UpdateLicas.php index 46c5862e2..e7bc6f64a 100755 --- a/examples/Dfp/v201403/LicaService/UpdateLicasExample.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/UpdateLicas.php @@ -1,14 +1,14 @@ GetService('LineItemCreativeAssociationService', 'v201403'); - - // Create a statement to get all LICAs. - $filterStatement = new Statement("LIMIT 500"); + $user->GetService('LineItemCreativeAssociationService', 'v201502'); - // Get LICAs by statement. - $page = $licaService->getLineItemCreativeAssociationsByStatement( - $filterStatement); + // Create a statement to select a single LICA by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where( + 'lineItemId = :lineItemId AND creativeId = :creativeId') + ->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(1) + ->WithBindVariableValue('lineItemId', $lineItemId) + ->WithBindVariableValue('creativeId', $creativeId); - if (isset($page->results)) { - $licas = $page->results; + // Get the LICA. + $page = + $licaService->getLineItemCreativeAssociationsByStatement( + $statementBuilder->ToStatement()); + $lica = $page->results[0]; - // Update each local LICA object by changing its destination URL. - foreach ($licas as $lica) { - $lica->destinationUrl = 'http://news.google.com'; - } + // Update the destination URL. + $lica->destinationUrl = 'https://news.google.com?newTrackingParameter'; - // Update the LICAs on the server. - $licas = $licaService->updateLineItemCreativeAssociations($licas); + // Update the LICA on the server. + $licas = $licaService->updateLineItemCreativeAssociations(array($lica)); - // Display results. - if (isset($licas)) { - foreach ($licas as $lica) { - print 'LICA with line item ID "' . $lica->lineItemId - . '", creative ID "' . $lica->creativeId - . '", and destination URL "' . $lica->destinationUrl - . "\" was updated.\n"; - } - } else { - print "No LICAs updated.\n"; - } - } else { - print "No LICAs found to update.\n"; + foreach ($licas as $updatedLica) { + printf("Lica with line item ID %d, and creative ID %d was updated.\n", + $updatedLica->lineItemId, $updatedLica->creativeId); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201502/LineItemService/CreateLineItems.php similarity index 86% rename from examples/Dfp/v201403/LineItemService/CreateLineItemsExample.php rename to examples/Dfp/v201502/LineItemService/CreateLineItems.php index abc55e311..dce9da8c4 100755 --- a/examples/Dfp/v201403/LineItemService/CreateLineItemsExample.php +++ b/examples/Dfp/v201502/LineItemService/CreateLineItems.php @@ -1,15 +1,15 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); + $lineItemService = $user->GetService('LineItemService', 'v201502'); // Set the order that all created line items will belong to and the placement // ID to target. @@ -88,7 +87,7 @@ $geoTargeting->excludedLocations = array($cityLocation, $metroLocation); // Exclude users from US federal government domains. - $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), FALSE); + $userDomainTargeting = new UserDomainTargeting(array('usa.gov'), false); // Target only the weekend in the browser's timezone. $saturdayDayPart = new DayPart(); @@ -137,7 +136,7 @@ // Create the creative placeholder. $creativePlaceholder = new CreativePlaceholder(); - $creativePlaceholder->size = new Size(300, 250, FALSE); + $creativePlaceholder->size = new Size(300, 250, false); // Set the size of creatives that can be associated with this line item. $lineItem->creativePlaceholders = array($creativePlaceholder); @@ -156,8 +155,11 @@ // Set the number of units bought to 500,000 so that the budget is // $1,000. - $lineItem->unitsBought = 500000; - $lineItem->unitType = 'IMPRESSIONS'; + $goal = new Goal(); + $goal->units = 500000; + $goal->unitType = 'IMPRESSIONS'; + $goal->goalType = 'LIFETIME'; + $lineItem->primaryGoal = $goal; $lineItems[] = $lineItem; } @@ -168,19 +170,18 @@ // Display results. if (isset($lineItems)) { foreach ($lineItems as $lineItem) { - print 'A line item with with ID "' . $lineItem->id - . '", belonging to order ID "' . $lineItem->orderId - . '", and name "' . $lineItem->name - . "\" was created.\n"; + printf("A line item with with ID %d, belonging to order ID %d, and name " + . "%s was created\n", $lineItem->id, $lineItem->orderId, + $lineItem->name); } } else { - print "No line items created."; + printf("No line items created."); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/LineItemService/CreateVideoLineItemExample.php b/examples/Dfp/v201502/LineItemService/CreateVideoLineItems.php similarity index 63% rename from examples/Dfp/v201403/LineItemService/CreateVideoLineItemExample.php rename to examples/Dfp/v201502/LineItemService/CreateVideoLineItems.php index 370d2549b..731379c47 100755 --- a/examples/Dfp/v201403/LineItemService/CreateVideoLineItemExample.php +++ b/examples/Dfp/v201502/LineItemService/CreateVideoLineItems.php @@ -1,16 +1,16 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); - - // Set the order that all created line items will belong to and the placement - // ID to target. - $orderId = 'INSERT_ORDER_ID_HERE'; - $targetedVideoAdUnitId = 'INSERT_TARGETED_VIDEO_AD_UNIT_ID_HERE'; - - // Set the custom targeting key ID and value ID representing the metadata - // on the content to target. This would typically be a key representing - // a 'genre' and a value representing something like 'comedy'. - $contentCustomTargetingKeyId = 'INSERT_CONTENT_CUSTOM_TARGETING_KEY_ID_HERE'; - $contentCustomTargetingValueId = - 'INSERT_CONTENT_CUSTOM_TARGETING_VALUE_ID_HERE'; - - // Create custom criteria for the content metadata targeting. - $contentCustomCriteria = new CustomCriteria(); - $contentCustomCriteria->keyId = $contentCustomTargetingKeyId; - $contentCustomCriteria->valueIds = array($contentCustomTargetingValueId); - $contentCustomCriteria->operator = 'IS'; - - // Create custom criteria set. - $customCriteriaSet = new CustomCriteriaSet(); - $customCriteriaSet->children = array($contentCustomCriteria); + $lineItemService = $user->GetService('LineItemService', 'v201502'); + + // Create content targeting. + $contentMetadataTargeting = new ContentMetadataKeyHierarchyTargeting(); + $contentMetadataTargeting->customTargetingValueIds = + array($contentCustomTargetingValueId); + $contentTargeting = new ContentTargeting(); + $contentTargeting->targetedContentMetadata = array($contentMetadataTargeting); // Create inventory targeting. $inventoryTargeting = new InventoryTargeting(); $inventoryTargeting->targetedAdUnits = - array(new AdUnitTargeting($targetedVideoAdUnitId, TRUE)); + array(new AdUnitTargeting($targetedVideoAdUnitId, true)); // Create video position targeting. $videoPosition = new VideoPosition; @@ -94,7 +89,7 @@ // Create targeting. $targeting = new Targeting(); - $targeting->customTargeting = $customCriteriaSet; + $targeting->contentTargeting = $contentTargeting; $targeting->inventoryTargeting = $inventoryTargeting; $targeting->videoPositionTargeting = $videoPositionTargeting; @@ -104,7 +99,7 @@ $lineItem->orderId = $orderId; $lineItem->targeting = $targeting; $lineItem->lineItemType = 'SPONSORSHIP'; - $lineItem->allowOverbook = TRUE; + $lineItem->allowOverbook = true; // Set the environment type to video. $lineItem->environmentType = 'VIDEO_PLAYER'; @@ -114,14 +109,14 @@ // Create the master creative placeholder. $creativeMasterPlaceholder = new CreativePlaceholder(); - $creativeMasterPlaceholder->size = new Size(400, 300, FALSE); + $creativeMasterPlaceholder->size = new Size(400, 300, false); // Create companion creative placeholders. $companionCreativePlaceholder1 = new CreativePlaceholder(); - $companionCreativePlaceholder1->size = new Size(300, 250, FALSE); + $companionCreativePlaceholder1->size = new Size(300, 250, false); $companionCreativePlaceholder2 = new CreativePlaceholder(); - $companionCreativePlaceholder2->size = new Size(728, 90, FALSE); + $companionCreativePlaceholder2->size = new Size(728, 90, false); // Set companion creative placeholders. $creativeMasterPlaceholder->companions = @@ -143,20 +138,22 @@ $lineItem->costPerUnit = new Money('USD', 1000000); // Set the percentage to be 100%. - $lineItem->unitsBought = 100; + $goal = new Goal(); + $goal->units = 100; + $goal->goalType = 'DAILY'; + $lineItem->primaryGoal = $goal; // Create the line item on the server. $lineItems = $lineItemService->createLineItems($lineItem); // Display results. - if (isset($lineItems)) { - foreach ($lineItems as $lineItem) { - printf("A line item with with ID '%s', belonging to order ID '%s', and " - . "name '%s' was created.\n", $lineItem->id, $lineItem->orderId, - $lineItem->name); - } - } else { - printf("No line items created."); + foreach ($lineItems as $createdLineItem) { + printf("A line item with with ID %d, belonging to order ID %d, and name " + . "'%s' was created.\n", + $createdLineItem->id, + $createdLineItem->orderId, + $createdLineItem->name + ); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201403/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201502/LineItemService/GetAllLineItems.php similarity index 62% rename from examples/Dfp/v201403/LineItemService/GetAllLineItemsExample.php rename to examples/Dfp/v201502/LineItemService/GetAllLineItems.php index bb071a615..2bcad9389 100755 --- a/examples/Dfp/v201403/LineItemService/GetAllLineItemsExample.php +++ b/examples/Dfp/v201502/LineItemService/GetAllLineItems.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); + $lineItemService = $user->GetService('LineItemService', 'v201502'); - // Set defaults for page and statement. - $page = new LineItemPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all line items. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get line items by statement. - $page = $lineItemService->getLineItemsByStatement($filterStatement); + $page = $lineItemService->getLineItemsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $lineItem) { - print $i . ') Line item with ID "' - . $lineItem->id . '", belonging to order ID "' - . $lineItem->orderId . '", and name "' . $lineItem->name - . "\" was found.\n"; - $i++; + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "was found.\n", $i++, $lineItem->id, $lineItem->orderId, + $lineItem->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php b/examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php new file mode 100755 index 000000000..42f2712cf --- /dev/null +++ b/examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201502'); + + // Create a statement to select only line items that are missing creatives. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('isMissingCreatives = :isMissingCreatives') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('isMissingCreatives', true); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "was found.\n", $i++, $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php new file mode 100755 index 000000000..ac403e582 --- /dev/null +++ b/examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php @@ -0,0 +1,98 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201502'); + + // Create a statement to select only recently updated line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('lastModifiedDateTime >= :lastModifiedDateTime') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue( + 'lastModifiedDateTime', + date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('-1 day')) + ); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "was found.\n", $i++, $lineItem->id, $lineItem->orderId, + $lineItem->name + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/LineItemService/PauseLineItems.php b/examples/Dfp/v201502/LineItemService/PauseLineItems.php new file mode 100755 index 000000000..1398ed8ad --- /dev/null +++ b/examples/Dfp/v201502/LineItemService/PauseLineItems.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201502'); + + // Create a statement to select a single line item by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $lineItemId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get line items by statement. + $page = $lineItemService->getLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $lineItem) { + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "will be paused.\n", $i++, $lineItem->id, $lineItem->orderId, + $lineItem->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of line items to be paused: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new PauseLineItems(); + + // Perform action. + $result = $lineItemService->performLineItemAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of line items paused: %d\n", $result->numChanges); + } else { + printf("No line items were paused.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201502/LineItemService/TargetCustomCriteria.php similarity index 84% rename from examples/Dfp/v201403/LineItemService/TargetCustomCriteriaExample.php rename to examples/Dfp/v201502/LineItemService/TargetCustomCriteria.php index 880b3542c..d6dbdb465 100755 --- a/examples/Dfp/v201403/LineItemService/TargetCustomCriteriaExample.php +++ b/examples/Dfp/v201502/LineItemService/TargetCustomCriteria.php @@ -1,16 +1,16 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201403'); + $lineItemService = $user->GetService('LineItemService', 'v201502'); $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', @@ -94,14 +93,16 @@ array($customCriteria1, $subCustomCriteriaSet); // Create a statement to select a single line item by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($lineItemId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue($lineItemId); // Get the line item. - $page = $lineItemService->getLineItemsByStatement($filterStatement); - $lineItem = $page->results[0]; + $results = $lineItemService->getLineItemsByStatement( + $statementBuilder->ToStatement())->results; + $lineItem = $results[0]; // Set the custom criteria targeting on the line item. $lineItem->targeting->customTargeting = $topCustomCriteriaSet; @@ -110,7 +111,7 @@ $lineItems = $lineItemService->updateLineItems(array($lineItem)); foreach ($lineItems as $lineItem) { - printf("Line item with ID '%s' was updated.\n", $lineItem->id); + printf("Line item with ID %d was updated.\n", $lineItem->id); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201502/LineItemService/UpdateLineItems.php b/examples/Dfp/v201502/LineItemService/UpdateLineItems.php new file mode 100755 index 000000000..ac1e6515d --- /dev/null +++ b/examples/Dfp/v201502/LineItemService/UpdateLineItems.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the LineItemService. + $lineItemService = $user->GetService('LineItemService', 'v201502'); + + // Create a statement to select a single line item by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $lineItemId); + + // Get the line item. + $page = $lineItemService->getLineItemsByStatement( + $statementBuilder->ToStatement()); + $lineItem = $page->results[0]; + + // Update the line item's priority to high if possible. + if ($lineItem->lineItemType === 'STANDARD') { + $lineItem->priority = 6; + + // Update the line item on the server. + $lineItems = $lineItemService->updateLineItems(array($lineItem)); + + foreach ($lineItems as $updatedLineItem) { + printf("Line item with ID %d, name '%s' was updated.\n", + $updatedLineItem->id, $updatedLineItem->name); + } + } else { + printf('No line items were updated.'); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201502/NetworkService/GetAllNetworks.php similarity index 74% rename from examples/Dfp/v201403/NetworkService/GetAllNetworksExample.php rename to examples/Dfp/v201502/NetworkService/GetAllNetworks.php index 2d3b45796..eef61354e 100755 --- a/examples/Dfp/v201403/NetworkService/GetAllNetworksExample.php +++ b/examples/Dfp/v201502/NetworkService/GetAllNetworks.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -22,12 +22,12 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Eric Koleda + * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -49,29 +49,25 @@ $user->LogDefaults(); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); - // Get all networks that you have access to with the current login + // Get all networks that you have access to with the current authentication // credentials. $networks = $networkService->getAllNetworks(); // Display results. - if (isset($networks)) { - $i = 0; - foreach ($networks as $network) { - print $i . ') Network with network code "' . $network->networkCode - . '" and display name "' . $network->displayName - . "\" was found.\n"; - $i++; - } + $i = 0; + foreach ($networks as $network) { + printf("%d) Network with network code %d, and display name '%s' was " + . "found.\n", $i++, $network->networkCode, $network->displayName); } - print 'Number of results found: ' . $i . "\n"; + printf("Number of results found: %d\n", $i); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201502/NetworkService/GetCurrentNetwork.php similarity index 96% rename from examples/Dfp/v201403/NetworkService/GetCurrentNetworkExample.php rename to examples/Dfp/v201502/NetworkService/GetCurrentNetwork.php index b6b157575..6f72f4c0c 100755 --- a/examples/Dfp/v201403/NetworkService/GetCurrentNetworkExample.php +++ b/examples/Dfp/v201502/NetworkService/GetCurrentNetwork.php @@ -21,7 +21,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -48,7 +48,7 @@ $user->LogDefaults(); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); // Get the current network. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201403/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201502/NetworkService/MakeTestNetwork.php similarity index 97% rename from examples/Dfp/v201403/NetworkService/MakeTestNetworkExample.php rename to examples/Dfp/v201502/NetworkService/MakeTestNetwork.php index e27a9c8c7..eb4f20a6c 100755 --- a/examples/Dfp/v201403/NetworkService/MakeTestNetworkExample.php +++ b/examples/Dfp/v201502/NetworkService/MakeTestNetwork.php @@ -32,7 +32,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -59,7 +59,7 @@ $user->LogDefaults(); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); // Make the test network. $network = $networkService->makeTestNetwork(); diff --git a/examples/Dfp/v201502/OrderService/ApproveOrders.php b/examples/Dfp/v201502/OrderService/ApproveOrders.php new file mode 100755 index 000000000..0acc72fd1 --- /dev/null +++ b/examples/Dfp/v201502/OrderService/ApproveOrders.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201502'); + + // Create a statement to select a single order by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $orderId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get orders by statement. + $page = $orderService->getOrdersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $order) { + printf("%d) Order with ID %d, name '%s', and advertiser ID %d will be " + . "approved.\n", $i++, $order->id, $order->name, + $order->advertiserId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of orders to be approved: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ApproveOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of orders approved: %d\n", $result->numChanges); + } else { + printf("No orders were approved.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/OrderService/CreateOrdersExample.php b/examples/Dfp/v201502/OrderService/CreateOrders.php similarity index 96% rename from examples/Dfp/v201403/OrderService/CreateOrdersExample.php rename to examples/Dfp/v201502/OrderService/CreateOrders.php index 602ac19d0..3e09d06c1 100755 --- a/examples/Dfp/v201403/OrderService/CreateOrdersExample.php +++ b/examples/Dfp/v201502/OrderService/CreateOrders.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the OrderService. - $orderService = $user->GetOrderService('v201403'); + $orderService = $user->GetOrderService('v201502'); // Set the advertiser (company), salesperson, and trafficker to assign to each // order. diff --git a/examples/Dfp/v201403/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201502/OrderService/GetAllOrders.php similarity index 61% rename from examples/Dfp/v201403/OrderService/GetAllOrdersExample.php rename to examples/Dfp/v201502/OrderService/GetAllOrders.php index fc9572149..39278eb68 100755 --- a/examples/Dfp/v201403/OrderService/GetAllOrdersExample.php +++ b/examples/Dfp/v201502/OrderService/GetAllOrders.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201403'); + $orderService = $user->GetService('OrderService', 'v201502'); - // Set defaults for page and statement. - $page = new OrderPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all orders. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all orders. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get orders by statement. - $page = $orderService->getOrdersByStatement($filterStatement); + $page = $orderService->getOrdersByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $order) { - print $i . ') Order with ID "' . $order->id - . '", name "' . $order->name - . '", and advertiser ID "' . $order->advertiserId - . "\" was found.\n"; - $i++; + printf("%d) Order with ID %d, name '%s', and advertiser ID %d was " + . "found.\n", $i++, $order->id, $order->name, $order->advertiserId); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php b/examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php new file mode 100755 index 000000000..eb7cf071f --- /dev/null +++ b/examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201502'); + + // Create a statement to select only orders that are starting soon. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where( + 'status = :status AND startDateTime >= :now AND startDateTime <= :soon') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'APPROVED') + ->WithBindVariableValue( + 'now', + date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('now')) + ) + ->WithBindVariableValue( + 'soon', + date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, + strtotime('5 day')) + ); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get orders by statement. + $page = $orderService->getOrdersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $order) { + printf("%d) Order with ID %d, name '%s', and advertiser ID %d was " + . "found.\n", $i++, $order->id, $order->name, $order->advertiserId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/OrderService/UpdateOrders.php b/examples/Dfp/v201502/OrderService/UpdateOrders.php new file mode 100755 index 000000000..817a429d3 --- /dev/null +++ b/examples/Dfp/v201502/OrderService/UpdateOrders.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201502'); + + // Create a statement to select a single order by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $orderId); + + // Get the order. + $page = $orderService->getOrdersByStatement($statementBuilder->ToStatement()); + $order = $page->results[0]; + + // Update the order's notes. + $order->notes = 'Spoke to advertiser. All is well.'; + + // Update the order on the server. + $orders = $orderService->updateOrders(array($order)); + + foreach ($orders as $updatedOrder) { + printf("Order with ID %d, name '%s' was updated.\n", $updatedOrder->id, + $updatedOrder->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201502/PlacementService/CreatePlacements.php similarity index 97% rename from examples/Dfp/v201403/PlacementService/CreatePlacementsExample.php rename to examples/Dfp/v201502/PlacementService/CreatePlacements.php index 5cef872ee..f20cacc50 100755 --- a/examples/Dfp/v201403/PlacementService/CreatePlacementsExample.php +++ b/examples/Dfp/v201502/PlacementService/CreatePlacements.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201403'); + $placementService = $user->GetService('PlacementService', 'v201502'); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201403'); + $inventoryService = $user->GetService('InventoryService', 'v201502'); // Create local placement object to store skyscraper ad units. $skyscraperAdUnitPlacement = new Placement(); diff --git a/examples/Dfp/v201403/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201502/PlacementService/DeactivatePlacements.php similarity index 55% rename from examples/Dfp/v201403/PlacementService/DeactivatePlacementsExample.php rename to examples/Dfp/v201502/PlacementService/DeactivatePlacements.php index a8b2e523f..5f8a65f43 100755 --- a/examples/Dfp/v201403/PlacementService/DeactivatePlacementsExample.php +++ b/examples/Dfp/v201502/PlacementService/DeactivatePlacements.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201403'); + $placementService = $user->GetService('PlacementService', 'v201502'); - // Create statement text to select active placements. - $filterStatementText = "WHERE status = 'ACTIVE'"; + // Create a statement to select a single placement by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $placementId); - $offset = 0; + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset); - // Get placements by statement. - $page = $placementService->getPlacementsByStatement($filterStatement); + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); // Display results. - $placementIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $placement) { - print $i . ') Placement with ID "' . $placement->id - . '", name "' . $placement->name - . '", and status "' . $placement->status - . "\" will be deactivated.\n"; - $i++; - $placementIds[] = $placement->id; + printf("%d) Placement with ID %d, and name '%s' will be deactivated.\n", + $i++, $placement->id, $placement->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of placements to be deactivated: ' . sizeof($placementIds) - . "\n"; + printf("Number of placements to be deactivated: %d\n", $totalResultSetSize); - if (sizeof($placementIds) > 0) { - // Create action statement. - $filterStatementText = - sprintf('WHERE id IN (%s)', implode(',', $placementIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeactivatePlacements(); // Perform action. - $result = - $placementService->performPlacementAction($action, $filterStatement); + $result = $placementService->performPlacementAction($action, + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of placements deactivated: ' . $result->numChanges . "\n"; + printf("Number of placements deactivated: %d\n", $result->numChanges); } else { - print "No placements were deactivated.\n"; + printf("No placements were deactivated.\n"); } } } catch (OAuth2Exception $e) { @@ -110,6 +109,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/PlacementService/GetActivePlacements.php b/examples/Dfp/v201502/PlacementService/GetActivePlacements.php new file mode 100755 index 000000000..79cb65d69 --- /dev/null +++ b/examples/Dfp/v201502/PlacementService/GetActivePlacements.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201502'); + + // Create a statement to select only active placements. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get placements by statement. + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $placement) { + printf("%d) Placement with ID %d, and name '%s' was found.\n", $i++, + $placement->id, $placement->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201502/PlacementService/GetAllPlacements.php similarity index 65% rename from examples/Dfp/v201403/PlacementService/GetAllPlacementsExample.php rename to examples/Dfp/v201502/PlacementService/GetAllPlacements.php index a0c4b2fdb..628d3e617 100755 --- a/examples/Dfp/v201403/PlacementService/GetAllPlacementsExample.php +++ b/examples/Dfp/v201502/PlacementService/GetAllPlacements.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201403'); + $placementService = $user->GetService('PlacementService', 'v201502'); - // Set defaults for page and statement. - $page = new PlacementPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all placements. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all placements. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get placements by statement. - $page = $placementService->getPlacementsByStatement($filterStatement); + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $placement) { - print $i . ') Placement with ID "' . $placement->id - . '" and name "' . $placement->name - . "\" was found.\n"; - $i++; + printf("%d) Placement with ID %d, and name '%s' was found.\n", $i++, + $placement->id, $placement->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201502/PlacementService/UpdatePlacements.php similarity index 53% rename from examples/Dfp/v201403/PlacementService/GetPlacementsByStatementExample.php rename to examples/Dfp/v201502/PlacementService/UpdatePlacements.php index 5154c0763..091c6af20 100755 --- a/examples/Dfp/v201403/PlacementService/GetPlacementsByStatementExample.php +++ b/examples/Dfp/v201502/PlacementService/UpdatePlacements.php @@ -1,13 +1,14 @@ LogDefaults(); // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201403'); + $placementService = $user->GetService('PlacementService', 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('status' => new TextValue('ACTIVE'))); + // Create a statement to select a single placement by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $placementId); - // Create a statement to only select active placements. - $filterStatement = new Statement("WHERE status = :status LIMIT 500", $vars); + // Get the placement. + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); + $placement = $page->results[0]; - // Get placements by statement. - $page = $placementService->getPlacementsByStatement($filterStatement); + // Enable AdSense targeting. + $placement->targetingDescription = 'For sports pages. AdSense is enabled.'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'https://news.google.com'; + $placement->isAdSenseTargetingEnabled = true; - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $placement) { - print $i . ') Placement with ID "' . $placement->id - . '", name "' . $placement->name - . '", and status "' . $placement->status . "\" was found.\n"; - $i++; - } - } + // Update the placement on the server. + $placements = $placementService->updatePlacements(array($placement)); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + foreach ($placements as $updatedPlacement) { + printf("Placement with ID %d, and name '%s' was updated.\n", + $updatedPlacement->id, $updatedPlacement->name); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/PremiumRateService/CreatePremiumRates.php b/examples/Dfp/v201502/PremiumRateService/CreatePremiumRates.php new file mode 100755 index 000000000..d8055913d --- /dev/null +++ b/examples/Dfp/v201502/PremiumRateService/CreatePremiumRates.php @@ -0,0 +1,109 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201502'); + + $premiumRate = new PremiumRate(); + + // Create an ad unit premium to apply to the rate card. + $adUnitPremiumFeature = new AdUnitPremiumFeature(); + + // Create a CPM based premium rate value with adjustments in micro amounts. + // This will adjust a CPM priced proposal line item that has inventory + // targeting specified by 2 units of the currency associated with the rate + // card (this comes from absolute value adjustment). + $cpmPremiumRateValue = new PremiumRateValue(); + $cpmPremiumRateValue->premiumFeature = $adUnitPremiumFeature; + $cpmPremiumRateValue->rateType = 'CPM'; + $cpmPremiumRateValue->adjustmentSize = 2000000; + $cpmPremiumRateValue->adjustmentType = 'ABSOLUTE_VALUE'; + + // Create a CPC based premium rate value with adjustments in milli amounts. + // This will adjust a CPC priced proposal line item that has inventory + // targeting specified by 10% of the cost associated with the rate card (this + // comes from a percentage adjustment). + $cpcPremiumRateValue = new PremiumRateValue(); + $cpcPremiumRateValue->premiumFeature = $adUnitPremiumFeature; + $cpcPremiumRateValue->rateType = 'CPC'; + $cpcPremiumRateValue->adjustmentSize = 10000; + $cpcPremiumRateValue->adjustmentType = 'PERCENTAGE'; + + // Associate premium rate with the rate card and set premium information. This + // premium will apply for proposal line items targeting 'any' ad unit for both + // CPM and CPC rate types. + $premiumRate->rateCardId = $rateCardId; + $premiumRate->pricingMethod = 'ANY_VALUE'; + $premiumRate->premiumFeature = $adUnitPremiumFeature; + $premiumRate->premiumRateValues = + array($cpmPremiumRateValue, $cpcPremiumRateValue); + + // Create the premium rate on the server. + $premiumRates = $premiumRateService->createPremiumRates(array($premiumRate)); + + foreach ($premiumRates as $createdPremiumRate) { + printf("A premium rate with ID %d, of type '%s', assigned to rate card " + . "with ID %d was created.\n", + $createdPremiumRate->id, + get_class($createdPremiumRate->premiumFeature), + $createdPremiumRate->rateCardId + ); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php b/examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php new file mode 100755 index 000000000..799ef5041 --- /dev/null +++ b/examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201502'); + + // Create a statement to select all premium rates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get premium rates by statement. + $page = $premiumRateService->getPremiumRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $premiumRate) { + printf("%d) Premium rate with ID %d, of type '%s', assigned to rate " + . "card with ID %d was found.\n", $i++, $premiumRate->id, + get_class($premiumRate->premiumFeature), $premiumRate->rateCardId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php b/examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php new file mode 100755 index 000000000..d82ee944f --- /dev/null +++ b/examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201502'); + + // Create a statement to select only premium rates on a specific rate card. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('rateCardId = :rateCardId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('rateCardId', $rateCardId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get premium rates by statement. + $page = $premiumRateService->getPremiumRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $premiumRate) { + printf("%d) Premium rate with ID %d, of type '%s', assigned to rate " + . "card with ID %d was found.\n", + $i++, $premiumRate->id, + get_class($premiumRate->premiumFeature), + $premiumRate->rateCardId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php b/examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php new file mode 100755 index 000000000..33d80b5a1 --- /dev/null +++ b/examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php @@ -0,0 +1,101 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201502'); + + // Create a statement to select a single premium rate by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $premiumRateId); + + // Get the premium rate. + $page = $premiumRateService->getPremiumRatesByStatement( + $statementBuilder->ToStatement()); + $premiumRate = $page->results[0]; + + // Create a flat fee based premium rate value with a 10% increase. + $flatFeePremiumRateValue = new PremiumRateValue(); + $flatFeePremiumRateValue->premiumFeature = $premiumRate->premiumFeature; + $flatFeePremiumRateValue->rateType = 'CPM'; + $flatFeePremiumRateValue->adjustmentSize = 10000; + $flatFeePremiumRateValue->adjustmentType = 'PERCENTAGE'; + + // Update the premium rate's premiumRateValues to include a flat fee premium + // rate. + $premiumRate->premiumRateValues[] = $flatFeePremiumRateValue; + + // Update the premium rate on the server. + $premiumRates = $premiumRateService->updatePremiumRates(array($premiumRate)); + + foreach ($premiumRates as $updatedPremiumRate) { + printf("Premium rate with ID %d, of type '%s', assigned to rate card with " + . "ID %d was updated.\n", + $updatedPremiumRate->id, + get_class($updatedPremiumRate->premiumFeature), + $updatedPremiumRate->rateCardId + ); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductService/GetAllProducts.php b/examples/Dfp/v201502/ProductService/GetAllProducts.php new file mode 100755 index 000000000..ee510bd25 --- /dev/null +++ b/examples/Dfp/v201502/ProductService/GetAllProducts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ProductService. + $productService = $user->GetService('ProductService', 'v201502'); + + // Create a statement to select all products. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get products by statement. + $page = $productService->getProductsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $product) { + printf("%d) Product with ID %d, and name '%s' was found.\n", $i++, + $product->id, $product->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php b/examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php new file mode 100755 index 000000000..ec423f3d0 --- /dev/null +++ b/examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the ProductService. + $productService = $user->GetService('ProductService', 'v201502'); + + // Create a statement to select only products created from a specific product + // template. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('productTemplateId = :productTemplateId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('productTemplateId', $productTemplateId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get products by statement. + $page = $productService->getProductsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $product) { + printf("%d) Product with ID %d, and name '%s' was found.\n", $i++, + $product->id, $product->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductService/UpdateProducts.php b/examples/Dfp/v201502/ProductService/UpdateProducts.php new file mode 100755 index 000000000..e11eef7b9 --- /dev/null +++ b/examples/Dfp/v201502/ProductService/UpdateProducts.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ProductService. + $productService = $user->GetService('ProductService', 'v201502'); + + // Create a statement to select a single product by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $productId); + + // Get the product. + $page = $productService->getProductsByStatement( + $statementBuilder->ToStatement()); + $product = $page->results[0]; + + // Update the product's notes. + $product->notes = 'Product needs further review before approval.'; + + // Update the product on the server. + $products = $productService->updateProducts(array($product)); + + foreach ($products as $updatedProduct) { + printf("Product with ID %d and name '%s' was updated.\n", + $updatedProduct->id, $updatedProduct->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php new file mode 100755 index 000000000..ba5ce8d13 --- /dev/null +++ b/examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201502'); + + // Create a statement to select a single product template by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $productTemplateId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get product templates by statement. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $productTemplate) { + printf("%d) Product template with ID %d and name '%s' will be " + . "activated.\n", + $i++, + $productTemplate->id, + $productTemplate->name + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of product templates to be activated: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ActivateProductTemplates(); + + // Perform action. + $result = $productTemplateService->performProductTemplateAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of product templates activated: %d\n", + $result->numChanges); + } else { + printf("No product templates were activated.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductTemplateService/CreateProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/CreateProductTemplates.php new file mode 100755 index 000000000..94f9cfca2 --- /dev/null +++ b/examples/Dfp/v201502/ProductTemplateService/CreateProductTemplates.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201502'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201502'); + + // Create a product template. + $productTemplate = new ProductTemplate(); + $productTemplate->name = sprintf('Product template #%s', uniqid()); + $productTemplate->description = 'This product template creates standard ' + . 'proposal line items targeting Chrome browsers with product ' + . 'segmentation on ad units and geo targeting.'; + + // Set the name macro which will be used to generate the names of the + // products. This will create a segmentation based on the line item type, ad + // unit, and location. + $productTemplate->nameMacro = + ' - - - '; + + // Set the product type so the created proposal line items will be trafficked + // in DFP. + $productTemplate->productType = 'DFP'; + + // Set rate type to create CPM priced proposal line items. + $productTemplate->rateType = 'CPM'; + + // Optionally set the creative rotation of the product to serve one or more + // creatives. + $productTemplate->roadblockingType = 'ONE_OR_MORE'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(728, 90, false); + + // Create companion creative placeholders. + $companionCreativePlaceholder = new CreativePlaceholder(); + $companionCreativePlaceholder->size = new Size(300, 250, false); + + // Set the size of creatives that can be associated with the product template. + $productTemplate->creativePlaceholders = + array($creativeMasterPlaceholder, $companionCreativePlaceholder); + + // Set the type of proposal line item to be created from the product template. + $productTemplate->lineItemType = 'STANDARD'; + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $adUnitTargeting->includeDescendants = true; + + // Create geo targeting for the US. + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + // Create geo targeting for Hong Kong. + $regionLocation = new DfpLocation(); + $regionLocation->id = 2344; + + $geoTargeting = new GeoTargeting(); + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Add browser targeting to Chrome on the product template distinct from + // product segmentation. + $chromeBrowser = new Browser(); + $chromeBrowser->id = 500072; + + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($chromeBrowser); + + $productTemplateTargeting = new ProductTemplateTargeting(); + $productTemplateTargeting->browserTargeting = $browserTargeting; + + $productTemplate->targeting = $productTemplateTargeting; + + // Add inventory and geo targeting as product segmentation. + $productSegmentation = new ProductSegmentation(); + $productSegmentation->adUnitSegments = array($adUnitTargeting); + $productSegmentation->geoSegment = $geoTargeting; + + $productTemplate->productSegmentation = $productSegmentation; + + // Create the product template on the server. + $productTemplates = $productTemplateService->createProductTemplates( + array($productTemplate)); + + foreach ($productTemplates as $createdProductTemplate) { + printf("A product template with ID %d and name '%s' was created.\n", + $createdProductTemplate->id, $createdProductTemplate->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php new file mode 100755 index 000000000..5d72ead19 --- /dev/null +++ b/examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201502'); + + // Create a statement to select all product templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get product templates by statement. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $productTemplate) { + printf("%d) Product template with ID %d, and name '%s' was found.\n", + $i++, $productTemplate->id, $productTemplate->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php new file mode 100755 index 000000000..d54c0b705 --- /dev/null +++ b/examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201502'); + + // Create a statement to select only sponsorship product templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('lineItemType = :lineItemType') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('lineItemType', 'SPONSORSHIP'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get product templates by statement. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $productTemplate) { + printf("%d) Product template with ID %d, and name '%s' was found.\n", + $i++, $productTemplate->id, $productTemplate->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php new file mode 100755 index 000000000..bcb8eb885 --- /dev/null +++ b/examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201502'); + + // Create a statement to select a single product template by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $productTemplateId); + + // Get the product template. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + $productTemplate = $page->results[0]; + + // Add geo targeting for Canada to the product template. + $countryLocation = new DfpLocation(); + $countryLocation->id = 2124; + + $productTemplateTargeting = $productTemplate->targeting; + + if (isset($productTemplateTargeting->geoTargeting)) { + $productTemplateTargeting->geoTargeting[] = $countryLocation; + } else { + $productTemplateTargeting->geoTargeting = array($countryLocation); + } + + $productTemplate->targeting = $productTemplateTargeting; + + // Update the product template on the server. + $productTemplates = + $productTemplateService->updateProductTemplates(array($productTemplate)); + + foreach ($productTemplates as $updatedProductTemplate) { + printf("Product template with ID %d and name '%s' was updated.\n", + $updatedProductTemplate->id, $updatedProductTemplate->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php new file mode 100755 index 000000000..f69b864cf --- /dev/null +++ b/examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201502'); + + // Create a statement to select a single proposal line item by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalLineItemId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposal line items by statement. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposalLineItem) { + printf("%d) Proposal line item with ID %d and name '%s' will be " + . "archived.\n", + $i++, + $proposalLineItem->id, + $proposalLineItem->name + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of proposal line items to be archived: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ArchiveProposalLineItems(); + + // Perform action. + $result = $proposalLineItemService->performProposalLineItemAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of proposal line items archived: %d\n", + $result->numChanges); + } else { + printf("No proposal line items were archived.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php new file mode 100755 index 000000000..aaae39f85 --- /dev/null +++ b/examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php @@ -0,0 +1,138 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201502'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201502'); + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $adUnitTargeting->includeDescendants = true; + + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + + // Create a proposal line item. + $proposalLineItem = new ProposalLineItem(); + $proposalLineItem->name = sprintf('Proposal line item #%s', uniqid()); + + $proposalLineItem->proposalId = $proposalId; + $proposalLineItem->rateCardId = $rateCardId; + $proposalLineItem->productId = $productId; + $proposalLineItem->targeting = $targeting; + + // Set the length of the proposal line item to run. + $proposalLineItem->startDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime()); + $proposalLineItem->endDateTime = + DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + + // Set delivery specifications for the proposal line item. + $proposalLineItem->deliveryRateType = 'EVENLY'; + $proposalLineItem->creativeRotationType = 'OPTIMIZED'; + + // Set billing specifications for the proposal line item. + $proposalLineItem->billingCap = 'CAPPED_CUMULATIVE'; + $proposalLineItem->billingSource = 'THIRD_PARTY_VOLUME'; + + // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 + // for a total value of $2. + $goal = new Goal(); + $goal->units = 1000; + $goal->unitType = 'IMPRESSIONS'; + $proposalLineItem->goal = $goal; + + $proposalLineItem->cost = new Money('USD', 2000000); + $proposalLineItem->costPerUnit = new Money('USD', 2000000); + $proposalLineItem->rateType = 'CPM'; + + // Create the proposal line item on the server. + $proposalLineItems = $proposalLineItemService->createProposalLineItems( + array($proposalLineItem)); + + foreach ($proposalLineItems as $createdProposalLineItem) { + printf("A proposal line item with ID %d and name '%s' was created.\n", + $createdProposalLineItem->id, $createdProposalLineItem->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php new file mode 100755 index 000000000..40de9d2cc --- /dev/null +++ b/examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201502'); + + // Create a statement to select all proposal line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposal line items by statement. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposalLineItem) { + printf("%d) Proposal line item with ID %d, and name '%s' was found.\n", + $i++, $proposalLineItem->id, $proposalLineItem->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php b/examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php new file mode 100755 index 000000000..4308d6b3e --- /dev/null +++ b/examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201502'); + + // Create a statement to select only proposal line items belonging to a + // specific proposal. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('proposalId = :proposalId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('proposalId', $proposalId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposal line items by statement. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposalLineItem) { + printf("%d) Proposal line item with ID %d and name '%s' was found.\n", + $i++, $proposalLineItem->id, $proposalLineItem->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php new file mode 100755 index 000000000..3eca3b7d1 --- /dev/null +++ b/examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201502'); + + // Create a statement to select a single proposal line item by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalLineItemId); + + // Get the proposal line item. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + $proposalLineItem = $page->results[0]; + + // Update the proposal line item's note field. + $proposalLineItem->notes = 'Proposal line item ready for submission.'; + + // Update the proposal line item on the server. + $proposalLineItems = + $proposalLineItemService->updateProposalLineItems( + array($proposalLineItem)); + + foreach ($proposalLineItems as $updatedProposalLineItem) { + printf("Proposal line item with ID %d and name '%s' was updated.\n", + $updatedProposalLineItem->id, $updatedProposalLineItem->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalService/CreateProposals.php b/examples/Dfp/v201502/ProposalService/CreateProposals.php new file mode 100755 index 000000000..8366fb804 --- /dev/null +++ b/examples/Dfp/v201502/ProposalService/CreateProposals.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201502'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201502'); + + // Create a proposal. + $proposal = new Proposal(); + $proposal->name = sprintf('Proposal #%s', uniqid()); + + // Create a proposal company association. + $proposalCompanyAssociation = new ProposalCompanyAssociation(); + $proposalCompanyAssociation->companyId = $advertiserId; + $proposalCompanyAssociation->type = 'ADVERTISER'; + $proposal->advertiser = $proposalCompanyAssociation; + + // Create salesperson splits for the primary salesperson and secondary + // salespeople. + $primarySalesperson = new SalespersonSplit(); + $primarySalesperson->userId = $primarySalespersonId; + $primarySalesperson->split = 75000; + $proposal->primarySalesperson = $primarySalesperson; + + $secondarySalesperson = new SalespersonSplit(); + $secondarySalesperson->userId = $secondarySalespersonId; + $secondarySalesperson->split = 25000; + $proposal->secondarySalespeople = array($secondarySalesperson); + + // Set the probability to close to 100%. + $proposal->probabilityOfClose = 100000; + + // Set the primary trafficker on the proposal for when it becomes an order. + $proposal->primaryTraffickerId = $primaryTraffickerId; + + // Create a budget for the proposal worth 100 in the network local currency. + $budget = new Money(); + $budget->microAmount = 100000000; + $budget->currencyCode = $networkService->getCurrentNetwork()->currencyCode; + $proposal->budget = $budget; + + $proposal->billingCap = 'CAPPED_CUMULATIVE'; + $proposal->billingSource = 'DFP_VOLUME'; + + // Create the proposal on the server. + $proposals = $proposalService->createProposals(array($proposal)); + + foreach ($proposals as $createdProposal) { + printf("A proposal with ID %d and name '%s' was created.\n", + $createdProposal->id, $createdProposal->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalService/GetAllProposals.php b/examples/Dfp/v201502/ProposalService/GetAllProposals.php new file mode 100755 index 000000000..5dec10c8d --- /dev/null +++ b/examples/Dfp/v201502/ProposalService/GetAllProposals.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201502'); + + // Create a statement to select all proposals. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposals by statement. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposal) { + printf("%d) Proposal with ID %d, and name '%s' was found.\n", $i++, + $proposal->id, $proposal->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php b/examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php new file mode 100755 index 000000000..0035278cc --- /dev/null +++ b/examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201502'); + + // Create a statement to select only proposals pending approval. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'PENDING_APPROVAL'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposals by statement. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposal) { + printf("%d) Proposal with ID %d and name '%s' was found.\n", $i++, + $proposal->id, $proposal->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php b/examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php new file mode 100755 index 000000000..507e60abc --- /dev/null +++ b/examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php @@ -0,0 +1,114 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201502'); + + // Create a statement to select a single proposal by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposals by statement. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposal) { + printf("%d) Proposal with ID %d and name '%s' will be submitted for " + . "approval.\n", $i++, $proposal->id, $proposal->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of proposals to be submitted: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new SubmitProposalsForApproval(); + + // Perform action. + $result = $proposalService->performProposalAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of proposals submitted: %d\n", $result->numChanges); + } else { + printf("No proposals were submitted.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/ProposalService/UpdateProposals.php b/examples/Dfp/v201502/ProposalService/UpdateProposals.php new file mode 100755 index 000000000..64d715545 --- /dev/null +++ b/examples/Dfp/v201502/ProposalService/UpdateProposals.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201502'); + + // Create a statement to select a single proposal by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalId); + + // Get the proposal. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + $proposal = $page->results[0]; + + // Update the proposal's notes. + $proposal->notes = 'Proposal needs further review before approval.'; + + // Update the proposal on the server. + $proposals = $proposalService->updateProposals(array($proposal)); + + foreach ($proposals as $updatedProposal) { + printf("Proposal with ID %d and name '%s' was updated.\n", + $updatedProposal->id, $updatedProposal->name); + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201502/PublisherQueryLanguageService/FetchMatchTables.php similarity index 72% rename from examples/Dfp/v201403/PublisherQueryLanguageService/FetchMatchTables.php rename to examples/Dfp/v201502/PublisherQueryLanguageService/FetchMatchTables.php index 4acea1987..be8bb43b1 100755 --- a/examples/Dfp/v201403/PublisherQueryLanguageService/FetchMatchTables.php +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/FetchMatchTables.php @@ -7,13 +7,13 @@ * may need to be raised for this example to work properly. * * A full list of available tables can be found at: - * https://developers.google.com/doubleclick-publishers/docs/reference/v201403/PublisherQueryLanguageService + * https://developers.google.com/doubleclick-publishers/docs/reference/v201502/PublisherQueryLanguageService * * Tags: PublisherQueryLanguageService.select * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -28,9 +28,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -45,6 +45,7 @@ require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -56,18 +57,25 @@ $user->LogDefaults(); // Get the PublisherQueryLanguageService. - $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201403'); - - // Statement parts to help build a statement to select all line items. - $lineItemPqlTemplate = 'SELECT Id, Name, Status FROM Line_Item ORDER BY Id ' - . 'ASC LIMIT %d OFFSET %d'; - // Statement parts to help build a statement to select all ad units. - $adUnitPqlTemplate = 'SELECT Id, Name FROM Ad_Unit ORDER BY Id ASC LIMIT ' - . '%d OFFSET %d'; - - $lineItemFilePath = fetchMatchTable($lineItemPqlTemplate, $pqlService, + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201502'); + + // Create statement to select all line items. + $lineItemStatementBuilder = new StatementBuilder(); + $lineItemStatementBuilder->Select('Id, Name, Status') + ->From('Line_Item') + ->OrderBy('Id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Create statement to select all ad units. + $adUnitStatementBuilder = new StatementBuilder(); + $adUnitStatementBuilder->Select('Id, Name') + ->From('Ad_Unit') + ->OrderBy('Id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + $lineItemFilePath = fetchMatchTable($lineItemStatementBuilder, $pqlService, "Line-Item-Matchtable"); - $adUnitFilePath = fetchMatchTable($adUnitPqlTemplate, $pqlService, + $adUnitFilePath = fetchMatchTable($adUnitStatementBuilder, $pqlService, "Ad-Unit-Matchtable"); printf("Line items saved to %s\n", $lineItemFilePath); @@ -83,21 +91,19 @@ /** * Fetches a match table from a PQL statement and writes it to a file. */ -function fetchMatchTable($pqlTemplate, $pqlService, $fileName) { - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; - $i = 0; +function fetchMatchTable($statementBuilder, $pqlService, $fileName) { + $resultSet = null; + $combinedResultSet = null; do { - $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, - $SUGGESTED_PAGE_LIMIT, $offset))); + $resultSet = $pqlService->select($statementBuilder->ToStatement()); // Combine result sets with previous ones. $combinedResultSet = (!isset($combinedResultSet)) ? $resultSet : Pql::CombineResultSets($combinedResultSet, $resultSet); - $offset += $SUGGESTED_PAGE_LIMIT; + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while (isset($resultSet->rows) && count($resultSet->rows) > 0); // Change to your file location. diff --git a/examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php b/examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php new file mode 100755 index 000000000..4b79d8dcf --- /dev/null +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201502'); + + // Create statement to select all line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Select('Id, BrowserName, MajorVersion, MinorVersion') + ->From('Browser') + ->OrderBy('BrowserName ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for result sets. + $resultSet = null; + $combinedResultSet = null; + $i = 0; + + do { + // Get all browsers. + $resultSet = $pqlService->select($statementBuilder->ToStatement()); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d browsers beginning at offset %d were found.\n", $i++, + isset($resultSet->rows) ? count($resultSet->rows) : 0, + $statementBuilder->GetOffset()); + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Browsers-%s.csv", sys_get_temp_dir(), uniqid()); + $fp = fopen($filePath, 'w'); + + // Write the result set to a CSV. + fputcsv($fp, Pql::GetColumnLabels($combinedResultSet)); + foreach ($combinedResultSet->rows as $row) { + fputcsv($fp, Pql::GetRowStringValues($row)); + } + fclose($fp); + + printf("Browsers saved to %s\n", $filePath); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201502/PublisherQueryLanguageService/GetGeoTargets.php similarity index 69% rename from examples/Dfp/v201403/PublisherQueryLanguageService/GetGeoTargets.php rename to examples/Dfp/v201502/PublisherQueryLanguageService/GetGeoTargets.php index 0ed1e9424..fba49c234 100755 --- a/examples/Dfp/v201403/PublisherQueryLanguageService/GetGeoTargets.php +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/GetGeoTargets.php @@ -2,20 +2,20 @@ /** * This example gets geographic criteria from the Geo_Target table, such as * all cities available to target. Other types include 'Country', 'Region', - * 'State', 'Postal_Code', and 'DMA_Region' (i.e., Metro). This example may take + * 'State', 'Postal_Code', and 'DMA_Region' (i.e. Metro). This example may take * a while to run. * - * NOTE: Since this example loads all city geo targets into memory, your PHP - * memory_limit may need to be raised for this example to work properly. + * NOTE: Since this example loads all results into memory, your PHP memory_limit + * may need to be raised for this example to work properly. * - * A full list of available PQL tables can be found at: - * https://developers.google.com/doubleclick-publishers/docs/reference/v201403/PublisherQueryLanguageService + * A full list of available geo target types can be found at: + * https://developers.google.com/doubleclick-publishers/docs/reference/v201502/PublisherQueryLanguageService * * Tags: PublisherQueryLanguageService.select * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -30,9 +30,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -47,6 +47,7 @@ require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -58,27 +59,29 @@ $user->LogDefaults(); // Get the PublisherQueryLanguageService. - $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201403'); + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201502'); // Set the type of geo target. $geoTargetType = 'City'; - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('type' => new TextValue($geoTargetType))); - - // Statement parts to help build a statement to select all targetable cities. - $pqlTemplate = "SELECT Id, Name, CanonicalParentId, ParentIds, CountryCode, " - . "Type, Targetable FROM Geo_Target WHERE Type = :type AND Targetable = " - . "true ORDER BY CountryCode ASC, Name ASC LIMIT %d OFFSET %d "; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create statement to select all line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Select( + 'Id, Name, CanonicalParentId, ParentIds, CountryCode, Type, Targetable') + ->From('Geo_Target') + ->Where('Type = :Type AND Targetable = true') + ->OrderBy('CountryCode ASC, Name ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('Type', $geoTargetType); + + // Default for result sets. + $resultSet = null; + $combinedResultSet = null; $i = 0; do { // Get all cities. - $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, - $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + $resultSet = $pqlService->select($statementBuilder->ToStatement()); // Combine result sets with previous ones. $combinedResultSet = (!isset($combinedResultSet)) @@ -86,15 +89,15 @@ : Pql::CombineResultSets($combinedResultSet, $resultSet); printf("%d) %d geo targets beginning at offset %d were found.\n", $i++, - count($resultSet->rows), $offset); + isset($resultSet->rows) ? count($resultSet->rows) : 0, + $statementBuilder->GetOffset()); - $offset += $SUGGESTED_PAGE_LIMIT; + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while (isset($resultSet->rows) && count($resultSet->rows) > 0); // Change to your file location. $filePath = sprintf("%s/%s-%s.csv", sys_get_temp_dir(), $geoTargetType, uniqid()); - ob_start(); $fp = fopen($filePath, 'w'); // Write the result set to a CSV. @@ -103,7 +106,6 @@ fputcsv($fp, Pql::GetRowStringValues($row)); } fclose($fp); - ob_end_clean(); printf("Geo targets saved to %s\n", $filePath); } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201403/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201502/PublisherQueryLanguageService/GetLineItemsNamedLike.php similarity index 73% rename from examples/Dfp/v201403/PublisherQueryLanguageService/GetLineItemsNamedLike.php rename to examples/Dfp/v201502/PublisherQueryLanguageService/GetLineItemsNamedLike.php index f86939803..a7227744f 100755 --- a/examples/Dfp/v201403/PublisherQueryLanguageService/GetLineItemsNamedLike.php +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -3,14 +3,17 @@ * This example gets all line items which have a name beginning with "line * item". This example may take a while to run. * + * NOTE: Since this example loads all results into memory, your PHP memory_limit + * may need to be raised for this example to work properly.* + * * The Line_Item PQL table schema can be found here: - * https://developers.google.com/doubleclick-publishers/docs/reference/v201403/PublisherQueryLanguageService#Line_Item + * https://developers.google.com/doubleclick-publishers/docs/reference/v201502/PublisherQueryLanguageService#Line_Item * * Tags: PublisherQueryLanguageService.select * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * 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. @@ -25,9 +28,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -42,6 +45,7 @@ require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -53,20 +57,24 @@ $user->LogDefaults(); // Get the PublisherQueryLanguageService. - $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201403'); + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201502'); + + // Create statement to select line items whose names begin with "line item". + $statementBuilder = new StatementBuilder(); + $statementBuilder->Select('Id, Name, Status') + ->From('Line_Item') + ->Where('Name LIKE \'line item%\'') + ->OrderBy('Id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - // Statement parts to help build a statement to select all cities that start - // with "Santa". - $pqlTemplate = "SELECT Id, Name, Status FROM Line_Item WHERE Name LIKE 'line " - . "item%%' ORDER BY Id ASC LIMIT %d OFFSET %d"; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Default for result sets. + $combinedResultSet = null; + $resultSet = null; $i = 0; do { // Get line items like 'line item%'. - $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, - $SUGGESTED_PAGE_LIMIT, $offset))); + $resultSet = $pqlService->select($statementBuilder->ToStatement()); // Combine result sets with previous ones. $combinedResultSet = (!isset($combinedResultSet)) @@ -74,9 +82,10 @@ : Pql::CombineResultSets($combinedResultSet, $resultSet); printf("%d) %d line items beginning at offset %d were found.\n", $i++, - count($resultSet->rows), $offset); + isset($resultSet->rows) ? count($resultSet->rows) : 0, + $statementBuilder->GetOffset()); - $offset += $SUGGESTED_PAGE_LIMIT; + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while (isset($resultSet->rows) && count($resultSet->rows) > 0); // Change to your file location. diff --git a/examples/Dfp/v201502/RateCardService/GetAllRateCards.php b/examples/Dfp/v201502/RateCardService/GetAllRateCards.php new file mode 100755 index 000000000..ef35c61c7 --- /dev/null +++ b/examples/Dfp/v201502/RateCardService/GetAllRateCards.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the RateCardService. + $rateCardService = $user->GetService('RateCardService', 'v201502'); + + // Create a statement to select all rate cards. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get rate cards by statement. + $page = $rateCardService->getRateCardsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $rateCard) { + printf("%d) Rate card with ID %d, name '%s', and currency '%s' was " + . "found.\n", $i++, $rateCard->id, $rateCard->name, + $rateCard->currencyCode); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/RateCardService/GetUsdRateCards.php b/examples/Dfp/v201502/RateCardService/GetUsdRateCards.php new file mode 100755 index 000000000..7603b1c2a --- /dev/null +++ b/examples/Dfp/v201502/RateCardService/GetUsdRateCards.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the RateCardService. + $rateCardService = $user->GetService('RateCardService', 'v201502'); + + // Create a statement to select only rate cards that have a currency in US + // dollars. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('currencyCode = :currencyCode') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('currencyCode', 'USD'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get rate cards by statement. + $page = $rateCardService->getRateCardsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $rateCard) { + printf("%d) Rate card with ID %d, name '%s', and currency '%s' was " + . "found.\n", + $i++, + $rateCard->id, + $rateCard->name, + $rateCard->currencyCode + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201502/ReportService/RunDeliveryReportForOrder.php similarity index 61% rename from examples/Dfp/v201403/ReportService/RunDeliveryReportExample.php rename to examples/Dfp/v201502/ReportService/RunDeliveryReportForOrder.php index c54d545e8..08839c5ce 100755 --- a/examples/Dfp/v201403/ReportService/RunDeliveryReportExample.php +++ b/examples/Dfp/v201502/ReportService/RunDeliveryReportForOrder.php @@ -1,15 +1,12 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); - - // Set the order id to report on. - $order_id = 'INSERT_ORDER_ID_HERE'; - - // Create bind variables. - $vars = - MapUtils::GetMapEntries(array('orderId' => new NumberValue($order_id))); - - // Create statement text to filter based on an order id. - $filterStatementText = 'WHERE order_id = :orderId'; - - // Create statement object from text. - $filterStatement = new Statement($filterStatementText, $vars); - - // Create report job. - $reportJob = new ReportJob(); + $reportService = $user->GetService('ReportService', 'v201502'); // Create report query. $reportQuery = new ReportQuery(); - $reportQuery->dateRangeType = 'LAST_MONTH'; $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', 'AD_SERVER_CTR', 'AD_SERVER_CPM_AND_CPC_REVENUE', 'AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); - $reportQuery->statement = $filterStatement; + + // Create statement to filter for an order. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('order_id = :orderId')->WithBindVariableValue( + 'orderId', $orderId); + + // Set the filter statement. + $reportQuery->statement = $statementBuilder->ToStatement(); + + // Set the start and end dates or choose a dynamic date range type. + $reportQuery->dateRangeType = 'LAST_MONTH'; + + // Create report job. + $reportJob = new ReportJob(); $reportJob->reportQuery = $reportQuery; // Run report job. $reportJob = $reportService->runReportJob($reportJob); - do { - printf("Report with ID '%s' is running.\n", $reportJob->id); - sleep(30); - // Get report job. - $reportJob = $reportService->getReportJob($reportJob->id); - } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); - - if ($reportJob->reportJobStatus == 'FAILED') { - printf("Report job with ID '%s' failed to finish successfully.\n", - $reportJob->id); - } else { - printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'delivery-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201502/ReportService/RunInventoryReport.php similarity index 62% rename from examples/Dfp/v201403/ReportService/RunInventoryReportExample.php rename to examples/Dfp/v201502/ReportService/RunInventoryReport.php index d0a6ca5e9..d16e1e740 100755 --- a/examples/Dfp/v201403/ReportService/RunInventoryReportExample.php +++ b/examples/Dfp/v201502/ReportService/RunInventoryReport.php @@ -1,14 +1,12 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); + $reportService = $user->GetService('ReportService', 'v201502'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201403'); + $networkService = $user->GetService('NetworkService', 'v201502'); // Get the root ad unit ID to filter on. $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('ancestorAdUnitId' => - new NumberValue($rootAdUnitId))); - - // Create statement text to filter based on an order id. - $filterStatementText = - 'WHERE AD_UNIT_ANCESTOR_AD_UNIT_ID = :ancestorAdUnitId'; - - // Create statement object from text. - $filterStatement = new Statement($filterStatementText, $vars); - - // Create report job. - $reportJob = new ReportJob(); + // Create statement to filter on a parent ad unit with the root ad unit ID to + // include all ad units in the network. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('PARENT_AD_UNIT_ID = + :parentAdUnitId')->WithBindVariableValue('parentAdUnitId', $rootAdUnitId); // Create report query. $reportQuery = new ReportQuery(); - $reportQuery->dateRangeType = 'YESTERDAY'; $reportQuery->dimensions = array('AD_UNIT_ID', 'AD_UNIT_NAME'); $reportQuery->columns = array('AD_SERVER_IMPRESSIONS', 'AD_SERVER_CLICKS', 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_IMPRESSIONS', 'DYNAMIC_ALLOCATION_INVENTORY_LEVEL_CLICKS', 'TOTAL_INVENTORY_LEVEL_IMPRESSIONS', 'TOTAL_INVENTORY_LEVEL_CPM_AND_CPC_REVENUE'); - $reportQuery->statement = $filterStatement; + + // Set the filter statement. + $reportQuery->statement = $statementBuilder->ToStatement(); + + // Set the ad unit view to hierarchical. $reportQuery->adUnitView = 'HIERARCHICAL'; + + // Set the start and end dates or choose a dynamic date range type. + $reportQuery->dateRangeType = 'YESTERDAY'; + + // Create report job. + $reportJob = new ReportJob(); $reportJob->reportQuery = $reportQuery; // Run report job. $reportJob = $reportService->runReportJob($reportJob); - do { - printf("Report with ID '%s' is running.\n", $reportJob->id); - sleep(30); - // Get report job. - $reportJob = $reportService->getReportJob($reportJob->id); - } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); - - if ($reportJob->reportJobStatus == 'FAILED') { - printf("Report job with ID '%s' failed to finish successfully.\n", - $reportJob->id); - } else { - printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'inventory-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/ReportService/RunReachReportExample.php b/examples/Dfp/v201502/ReportService/RunReachReport.php similarity index 64% rename from examples/Dfp/v201403/ReportService/RunReachReportExample.php rename to examples/Dfp/v201502/ReportService/RunReachReport.php index 49ce2633d..713e27a82 100755 --- a/examples/Dfp/v201403/ReportService/RunReachReportExample.php +++ b/examples/Dfp/v201502/ReportService/RunReachReport.php @@ -1,14 +1,12 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); - - // Create report job. - $reportJob = new ReportJob(); + $reportService = $user->GetService('ReportService', 'v201502'); // Create report query. $reportQuery = new ReportQuery(); - $reportQuery->dateRangeType = 'REACH_LIFETIME'; $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME'); - $reportQuery->columns = array('REACH_FREQUENCY', - 'REACH_AVERAGE_REVENUE', + $reportQuery->columns = array('REACH_FREQUENCY', 'REACH_AVERAGE_REVENUE', 'REACH'); + + // Set the dynamic date range type or a custom start and end date that is + // the beginning of the week (Sunday) to the end of the week (Saturday), or + // the first of the month to the end of the month. + $reportQuery->dateRangeType = 'REACH_LIFETIME'; + + // Create report job. + $reportJob = new ReportJob(); $reportJob->reportQuery = $reportQuery; // Run report job. $reportJob = $reportService->runReportJob($reportJob); - do { - printf("Report with ID '%s' is running.\n", $reportJob->id); - sleep(30); - // Get report job. - $reportJob = $reportService->getReportJob($reportJob->id); - } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); - - if ($reportJob->reportJobStatus == 'FAILED') { - printf("Report job with ID '%s' failed to finish successfully.\n", - $reportJob->id); - } else { - printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'reach-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201403/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201502/ReportService/RunReportWithCustomFields.php similarity index 57% rename from examples/Dfp/v201403/ReportService/RunMergedDeliveryReportExample.php rename to examples/Dfp/v201502/ReportService/RunReportWithCustomFields.php index 9e6696ed4..1c6c6909e 100755 --- a/examples/Dfp/v201403/ReportService/RunMergedDeliveryReportExample.php +++ b/examples/Dfp/v201502/ReportService/RunReportWithCustomFields.php @@ -1,15 +1,13 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201403'); + $reportService = $user->GetService('ReportService', 'v201502'); - // Create report job. - $reportJob = new ReportJob(); + // Set the ID of the custom field to include in the report. + $CUSTOM_FIELD_ID = "INSERT_CUSTOM_FIELD_ID_HERE"; // Create report query. $reportQuery = new ReportQuery(); + $reportQuery->dimensions = array('DATE', 'LINE_ITEM_ID'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + + // Set the dynamic date range type or a custom start and end date. $reportQuery->dateRangeType = 'LAST_MONTH'; - $reportQuery->dimensions = array('ORDER_ID', 'ORDER_NAME'); - $reportQuery->dimensionAttributes = array('ORDER_TRAFFICKER', - 'ORDER_START_DATE_TIME', 'ORDER_END_DATE_TIME'); - $reportQuery->columns = array('MERGED_AD_SERVER_IMPRESSIONS', - 'MERGED_AD_SERVER_CLICKS', 'MERGED_AD_SERVER_CTR', - 'MERGED_AD_SERVER_CPM_AND_CPC_REVENUE', - 'MERGED_AD_SERVER_WITHOUT_CPD_AVERAGE_ECPM'); + + // Set the custom field IDs. + $reportQuery->customFieldIds = array($CUSTOM_FIELD_ID); + + // Create report job. + $reportJob = new ReportJob(); $reportJob->reportQuery = $reportQuery; // Run report job. $reportJob = $reportService->runReportJob($reportJob); - do { - printf("Report with ID '%s' is running.\n", $reportJob->id); - sleep(30); - // Get report job. - $reportJob = $reportService->getReportJob($reportJob->id); - } while ($reportJob->reportJobStatus == 'IN_PROGRESS'); - - if ($reportJob->reportJobStatus == 'FAILED') { - printf("Report job with ID '%s' failed to finish successfully.\n", - $reportJob->id); - } else { - printf("Report job with ID '%s' completed successfully.\n", $reportJob->id); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'custom-field-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php similarity index 53% rename from examples/Dfp/v201403/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php rename to examples/Dfp/v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php index 211de6bfc..8f26675cc 100755 --- a/examples/Dfp/v201403/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php +++ b/examples/Dfp/v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php @@ -1,13 +1,14 @@ LogDefaults(); // Get the SuggestedAdUnitService. - $suggestedAdUnitService = - $user->GetService('SuggestedAdUnitService', 'v201403'); - - // Set the number of requests for suggested ad units greater than which to - // approve. - $numRequests = 'INSERT_NUMBER_OF_REQUESTS_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('numRequests' => new NumberValue($numRequests))); + $suggestedAdUnitService = $user->GetService('SuggestedAdUnitService', + 'v201502'); - // Statement parts to help build a statement to select suggested ad units that - // are highly requested. - $pqlTemplate = "WHERE numRequests >= :numRequests ORDER BY id LIMIT %d " - . "OFFSET %d"; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to only select suggested ad units that are highly + // requested. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('numRequests >= :numRequests') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('numRequests', $numRequests); - $page = null; - $suggestedAdUnitIds = array(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get suggested ad units by statement. $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), - $vars)); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; - foreach ($page->results as $suggestedAdUnit) { - printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " - . "will be approved.\n", $i++, $suggestedAdUnit->id); - $suggestedAdUnitIds[] = $suggestedAdUnitId->id; + foreach ($page->results as $adUnit) { + printf("%d) Suggested ad unit with ID %s, and number of requests %d " + . "will be approved.\n", $i++, $adUnit->id, $adUnit->numRequests); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); printf("Number of suggested ad units to be approved: %d\n", - count($suggestedAdUnitIds)); + $totalResultSetSize); - if (count($suggestedAdUnitIds) > 0) { - // Create action statement. - $filterStatementText = sprintf('WHERE id IN (%s)', - implode(',', $suggestedAdUnitIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new ApproveSuggestedAdUnit(); // Perform action. $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - printf("Number of suggested ad units approved: %d\n", - $result->numChanges); + printf("Number of new ad units created: %d\n", + count($result->newAdUnitIds)); } else { - print "No suggested ad units were approved.\n"; + printf("No suggested ad units were approved.\n"); } } } catch (OAuth2Exception $e) { @@ -121,6 +114,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php similarity index 64% rename from examples/Dfp/v201403/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php rename to examples/Dfp/v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php index a0097c40b..d9f865be4 100755 --- a/examples/Dfp/v201403/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php +++ b/examples/Dfp/v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php @@ -1,14 +1,13 @@ LogDefaults(); // Get the SuggestedAdUnitService. - $suggestedAdUnitService = - $user->GetService('SuggestedAdUnitService', 'v201403'); + $suggestedAdUnitService = $user->GetService('SuggestedAdUnitService', + 'v201502'); - // Set defaults for page and statement. - $page = new SuggestedAdUnitPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all suggested ad units. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all suggested ad units. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; - // Get creatives by statement. + do { + // Get suggested ad units by statement. $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $suggestedAdUnit) { - printf("%d) Suggested ad unit with ID '%s' and number of requests '%d' " - . "was found.\n", $i, $suggestedAdUnit->id, + printf("%d) Suggested ad unit with ID %s, and number of requests %d " + . "was found.\n", $i++, $suggestedAdUnit->id, $suggestedAdUnit->numRequests); - $i++; } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php b/examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php new file mode 100755 index 000000000..e70acee01 --- /dev/null +++ b/examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php @@ -0,0 +1,98 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = $user->GetService('SuggestedAdUnitService', + 'v201502'); + + // Create a statement to select only highly requested suggested ad units. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('numRequests >= :numRequests') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('numRequests', $numRequests); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get suggested ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $suggestedAdUnit) { + printf("%d) Suggested ad unit with ID %s, and number of requests %d " + . "was found.\n", $i++, $suggestedAdUnit->id, + $suggestedAdUnit->numRequests); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/TeamService/CreateTeamsExample.php b/examples/Dfp/v201502/TeamService/CreateTeams.php similarity index 95% rename from examples/Dfp/v201403/TeamService/CreateTeamsExample.php rename to examples/Dfp/v201502/TeamService/CreateTeams.php index 7ff07d26f..c9d76efb9 100755 --- a/examples/Dfp/v201403/TeamService/CreateTeamsExample.php +++ b/examples/Dfp/v201502/TeamService/CreateTeams.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201403'); + $teamService = $user->GetService('TeamService', 'v201502'); // Create an array to store local team objects. $teams = array(); diff --git a/examples/Dfp/v201403/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201502/TeamService/GetAllTeams.php similarity index 62% rename from examples/Dfp/v201403/TeamService/GetAllTeamsExample.php rename to examples/Dfp/v201502/TeamService/GetAllTeams.php index e3ac696a3..1d1eac9d8 100755 --- a/examples/Dfp/v201403/TeamService/GetAllTeamsExample.php +++ b/examples/Dfp/v201502/TeamService/GetAllTeams.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201403'); + $teamService = $user->GetService('TeamService', 'v201502'); - // Set defaults for page and statement. - $page = new TeamPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all teams. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all teams. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get teams by statement. - $page = $teamService->getTeamsByStatement($filterStatement); + $page = $teamService->getTeamsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $team) { - print $i . ') Team with ID "' . $team->id - . '" and name "' . $team->name - . "\" was found.\n"; - $i++; + printf("%d) Team with ID %d, and name '%s' was found.\n", $i++, + $team->id, $team->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201502/TeamService/UpdateTeams.php similarity index 53% rename from examples/Dfp/v201403/TeamService/GetTeamsByStatementExample.php rename to examples/Dfp/v201502/TeamService/UpdateTeams.php index d12cb20ee..15b6e85c9 100755 --- a/examples/Dfp/v201403/TeamService/GetTeamsByStatementExample.php +++ b/examples/Dfp/v201502/TeamService/UpdateTeams.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201403'); + $teamService = $user->GetService('TeamService', 'v201502'); + + // Create a statement to select a single team by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $teamId); - // Create a statement to order teams by name. - $filterStatementText = 'ORDER BY name LIMIT 500'; - $filterStatement = new Statement($filterStatementText); + // Get the team. + $page = $teamService->getTeamsByStatement( + $statementBuilder->ToStatement()); + $team = $page->results[0]; - // Get teams by statement. - $page = $teamService->getTeamsByStatement($filterStatement); + // Don't add ad unit if the team has all inventory already. + if (!$team->hasAllInventory) { + // Update the team's ad units. + $team->adUnitIds[] = $adUnitId; - // Display results. - if (isset($page->results)) { - $i = $page->startIndex; - foreach ($page->results as $team) { - print $i . ') Team with ID "' . $team->id - . '" and name "' . $team->name - . "\" was found.\n"; - $i++; + // Update the team on the server. + $teams = $teamService->updateTeams(array($team)); + + foreach ($teams as $updatedTeam) { + printf("Team with ID %d, name '%s' was updated.\n", $updatedTeam->id, + $updatedTeam->name); } + } else { + printf('No teams were updated.'); } - - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/UserService/CreateUsersExample.php b/examples/Dfp/v201502/UserService/CreateUsers.php similarity index 93% rename from examples/Dfp/v201403/UserService/CreateUsersExample.php rename to examples/Dfp/v201502/UserService/CreateUsers.php index 646781751..1109538c4 100755 --- a/examples/Dfp/v201403/UserService/CreateUsersExample.php +++ b/examples/Dfp/v201502/UserService/CreateUsers.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); + $userService = $user->GetService('UserService', 'v201502'); // Set the user's email addresses and names. $emailAndNames = @@ -58,7 +58,7 @@ array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', 'INSERT_ANOTHER_NAME_HERE')); - // Roles can be obtained by running GetAllRolesExample.php. + // Roles can be obtained by running GetAllRoles.php. $roleId = 'INSERT_ROLE_ID_HERE'; // Create an array to store local user objects. diff --git a/examples/Dfp/v201403/UserService/DeactivateUserExample.php b/examples/Dfp/v201502/UserService/DeactivateUsers.php similarity index 51% rename from examples/Dfp/v201403/UserService/DeactivateUserExample.php rename to examples/Dfp/v201502/UserService/DeactivateUsers.php index e2eaa9ee7..d9f488020 100755 --- a/examples/Dfp/v201403/UserService/DeactivateUserExample.php +++ b/examples/Dfp/v201502/UserService/DeactivateUsers.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); - - // Set the ID of the user to deactivate. - $userId = 'INSERT_USER_ID_HERE'; + $userService = $user->GetService('UserService', 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('id' => new NumberValue($userId))); + // Create a statement to select a single user by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $userId); - // Create statement text to get user by id. - $filterStatementText = "WHERE id = :id"; - - $offset = 0; + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = - new Statement($filterStatementText . " LIMIT 500 OFFSET " . $offset, - $vars); - // Get users by statement. - $page = $userService->getUsersByStatement($filterStatement); + $page = $userService->getUsersByStatement($statementBuilder->ToStatement()); // Display results. - $userIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; - foreach ($page->results as $usr) { - print $i . ') User with ID "' . $usr->id - . '", email "' . $usr->email - . '", and status "' . ($usr->isActive ? 'ACTIVE' : 'INACTIVE') - . "\" will be deactivated.\n"; - $i++; - $userIds[] = $usr->id; + foreach ($page->results as $user) { + printf("%d) User with ID %d, email '%s', and role '%s' will be " + . "deactivated.\n", $i++, $user->id, $user->email, $user->roleName); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of users to be deactivated: ' . sizeof($userIds) . "\n"; + printf("Number of users to be deactivated: %d\n", $totalResultSetSize); - if (sizeof($userIds) > 0) { - // Create action statement. - $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $userIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeactivateUsers(); // Perform action. - $result = $userService->performUserAction($action, $filterStatement); + $result = $userService->performUserAction($action, + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of users deactivated: ' . $result->numChanges . "\n"; + printf("Number of users deactivated: %d\n", $result->numChanges); } else { - print "No users were deactivated.\n"; + printf("No users were deactivated.\n"); } } } catch (OAuth2Exception $e) { @@ -116,6 +108,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/UserService/GetAllRolesExample.php b/examples/Dfp/v201502/UserService/GetAllRoles.php similarity index 72% rename from examples/Dfp/v201403/UserService/GetAllRolesExample.php rename to examples/Dfp/v201502/UserService/GetAllRoles.php index db63d1d24..a761a3c9c 100755 --- a/examples/Dfp/v201403/UserService/GetAllRolesExample.php +++ b/examples/Dfp/v201502/UserService/GetAllRoles.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); + $userService = $user->GetService('UserService', 'v201502'); // Get all roles. $roles = $userService->getAllRoles(); - if (isset($roles)) { - foreach ($roles as $role) { - print 'Role with ID "' . $role->id . '" and name "' . $role->name - . "\" was found.\n"; - } + $i = 0; + foreach ($roles as $role) { + printf("%d) Role with ID %d and name '%s' was found.\n", $i++, $role->id, + $role->name); } - print 'Number of results found: ' . sizeof($roles) . "\n"; + + printf("Number of results found: %d\n", count($roles)); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/UserService/GetAllUsersExample.php b/examples/Dfp/v201502/UserService/GetAllUsers.php similarity index 61% rename from examples/Dfp/v201403/UserService/GetAllUsersExample.php rename to examples/Dfp/v201502/UserService/GetAllUsers.php index df8135cc5..2761167bd 100755 --- a/examples/Dfp/v201403/UserService/GetAllUsersExample.php +++ b/examples/Dfp/v201502/UserService/GetAllUsers.php @@ -1,12 +1,12 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); + $userService = $user->GetService('UserService', 'v201502'); - // Set defaults for page and statement. - $page = new UserPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all users. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all users. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get users by statement. - $page = $userService->getUsersByStatement($filterStatement); + $page = $userService->getUsersByStatement( + $statementBuilder->ToStatement()); + // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; - foreach ($page->results as $usr) { - print $i . ') User with ID "' . $usr->id - . '", email "' . $usr->email - . '", and role "' . $usr->roleName . "\" was found.\n"; - $i++; + foreach ($page->results as $user) { + printf("%d) User with ID %d, email '%s', and role '%s' was found.\n", + $i++, $user->id, $user->email, $user->roleName); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print "Number of results found: " . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/UserService/GetCurrentUserExample.php b/examples/Dfp/v201502/UserService/GetCurrentUser.php similarity index 95% rename from examples/Dfp/v201403/UserService/GetCurrentUserExample.php rename to examples/Dfp/v201502/UserService/GetCurrentUser.php index 461fb3259..f112eb62c 100755 --- a/examples/Dfp/v201403/UserService/GetCurrentUserExample.php +++ b/examples/Dfp/v201502/UserService/GetCurrentUser.php @@ -21,7 +21,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201403 + * @subpackage v201502 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -48,7 +48,7 @@ $user->LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); + $userService = $user->GetService('UserService', 'v201502'); // Get the current user. $usr = $userService->getCurrentUser(); diff --git a/examples/Dfp/v201403/UserService/GetUserExample.php b/examples/Dfp/v201502/UserService/GetUser.php similarity index 95% rename from examples/Dfp/v201403/UserService/GetUserExample.php rename to examples/Dfp/v201502/UserService/GetUser.php index bbc8c7beb..d281c3086 100755 --- a/examples/Dfp/v201403/UserService/GetUserExample.php +++ b/examples/Dfp/v201502/UserService/GetUser.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); + $userService = $user->GetService('UserService', 'v201502'); // Set the ID of the user to get. $userId = 'INSERT_USER_ID_HERE'; diff --git a/examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php b/examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php new file mode 100755 index 000000000..f390bd0e3 --- /dev/null +++ b/examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201502'); + + // Create a statement to select users by email. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('email = :email') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('email', $emailAddress); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get users by statement. + $page = $userService->getUsersByStatement($statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $user) { + printf("%d) User with ID %d, email '%s', and role '%s' was found.\n", + $i++, $user->id, $user->email, $user->roleName); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/UserService/UpdateUsersExample.php b/examples/Dfp/v201502/UserService/UpdateUsers.php similarity index 56% rename from examples/Dfp/v201403/UserService/UpdateUsersExample.php rename to examples/Dfp/v201502/UserService/UpdateUsers.php index 5185fd430..69b412fa4 100755 --- a/examples/Dfp/v201403/UserService/UpdateUsersExample.php +++ b/examples/Dfp/v201502/UserService/UpdateUsers.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201403'); - - // Create a statement to get all users. - $filterStatement = new Statement('LIMIT 500'); + $userService = $user->GetService('UserService', 'v201502'); - // Get users by statement. - $page = $userService->getUsersByStatement($filterStatement); + // Create a statement to select a single user by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $userId); - if (isset($page->results)) { - $users = $page->results; + // Get the user. + $page = $userService->getUsersByStatement($statementBuilder->ToStatement()); + $user = $page->results[0]; - // Update each local user object by changing its name. - foreach ($users as $usr) { - $usr->name .= ' Sr.'; - } + // Set the role of the user to a salesperson. + // To determine what other roles exist, run GetAllRoles.php. + $user->roleId = -5; - // Update the users on the server. - $users = $userService->updateUsers($users); + // Update the user on the server. + $users = $userService->updateUsers(array($user)); - // Display results. - if (isset($users)) { - foreach ($users as $usr) { - print 'A user with ID "' . $usr->id - . '", name "' . $usr->name - . '", and role "' . $usr->roleName . "\" was updated.\n"; - } - } else { - print "No users updated.\n"; - } - } else { - print "No users found to update.\n"; + foreach ($users as $updatedUser) { + printf("User with ID %d, name '%s' was updated.\n", $updatedUser->id, + $updatedUser->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201502/UserTeamAssociationService/CreateUserTeamAssociations.php similarity index 92% rename from examples/Dfp/v201403/UserTeamAssociationService/CreateUserTeamAssociationsExample.php rename to examples/Dfp/v201502/UserTeamAssociationService/CreateUserTeamAssociations.php index 7647da3cd..91c5f0e8e 100755 --- a/examples/Dfp/v201403/UserTeamAssociationService/CreateUserTeamAssociationsExample.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/CreateUserTeamAssociations.php @@ -1,8 +1,8 @@ GetService('UserTeamAssociationService', 'v201403'); + $user->GetService('UserTeamAssociationService', 'v201502'); // Set the team ID and user IDs to associate together. $teamId = 'INSERT_TEAM_ID_HERE'; diff --git a/examples/Dfp/v201403/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php similarity index 51% rename from examples/Dfp/v201403/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php rename to examples/Dfp/v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php index a3d7e93f5..eb1bd3616 100755 --- a/examples/Dfp/v201403/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php @@ -1,13 +1,16 @@ LogDefaults(); // Get the UserTeamAssociationService. - $userTeamAssociationService = - $user->GetService('UserTeamAssociationService', 'v201403'); - - // Set the user to remove from its teams. - $userId = 'INSERT_USER_ID_HERE'; + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('userId' => new NumberValue($userId))); + // Create a statement to get all user team associations for a user. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('userId = :userId') + ->OrderBy('userId ASC, teamid ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('userId', $userId); - // Create statement text to select user team associations by the user ID. - $filterStatementText = "WHERE userId = :userId "; - - $offset = 0; + // Default for total result set size. + $totalResultSetSize = 0; do { - // Create statement to page through results. - $filterStatement = new Statement($filterStatementText - . " LIMIT 500 OFFSET " . $offset, $vars); - // Get user team associations by statement. $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; - foreach ($page->results as $uta) { - print $i . ') User team association between user with ID "' - . $uta->userId . '" and team with ID "' . $uta->teamId - . "\" will be deleted.\n"; - $i++; + foreach ($page->results as $userTeamAssociation) { + printf("%d) User team association with user ID %d, and team ID %d will " + . "be deleted.\n", $i++, $userTeamAssociation->userId, + $userTeamAssociation->teamId); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of user team associations to be deleted: ' . $i . "\n"; + printf("Number of user team associations to be deleted: %d\n", + $totalResultSetSize); - if ($i > 0) { - // Create action statement. - $filterStatementText = 'WHERE userId = :userId '; - $filterStatement = new Statement($filterStatementText, $vars); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeleteUserTeamAssociations(); // Perform action. $result = $userTeamAssociationService->performUserTeamAssociationAction( - $action, $filterStatement); + $action, $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of user team associations deleted: ' - . $result->numChanges . "\n"; + printf("Number of user team associations deleted: %d\n", + $result->numChanges); } else { - print "No user team associations were deleted.\n"; + printf("No user team associations were deleted.\n"); } } } catch (OAuth2Exception $e) { @@ -115,6 +115,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201403/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php similarity index 59% rename from examples/Dfp/v201403/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php rename to examples/Dfp/v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php index 10ad77ea4..95db3d396 100755 --- a/examples/Dfp/v201403/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the UserTeamAssociationService. - $userTeamAssociationService = - $user->GetService('UserTeamAssociationService', 'v201403'); + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201502'); - // Set defaults for page and statement. - $page = new UserTeamAssociationPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all user team associations. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('teamId ASC, userId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all user team associations. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get user team associations by statement. $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; - foreach ($page->results as $uta) { - print $i . ') User Team association between user with ID "' - . $uta->userId . '" and team with ID "' - . $uta->teamId . "\" was found.\n"; - $i++; + foreach ($page->results as $userTeamAssociation) { + printf("%d) User team association between user with ID %d, and team " + . "with ID %d was found.\n", $i++, $userTeamAssociation->userId, + $userTeamAssociation->teamId); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php b/examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php new file mode 100755 index 000000000..e1c7fe77c --- /dev/null +++ b/examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201502'); + + // Create a statement to select all user team associations (i.e., teams) for + // a given user. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('userId = :userId') + ->OrderBy('userId ASC, teamId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('userId', $userId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $userTeamAssociation) { + printf("%d) User team association between user with ID %d, and team " + . "with ID %d was found.\n", $i++, $userTeamAssociation->userId, + $userTeamAssociation->teamId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201403/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php similarity index 52% rename from examples/Dfp/v201403/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php rename to examples/Dfp/v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php index 8dc0356d4..0f7fc88da 100755 --- a/examples/Dfp/v201403/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php @@ -1,15 +1,14 @@ GetService('UserTeamAssociationService', 'v201403'); - - // Set the user to set to read only access within its teams. - $userId = "INSERT_USER_ID_HERE"; + $user->GetService('UserTeamAssociationService', 'v201502'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('userId' => new NumberValue($userId))); - - // Create filter text to select user team associations by the user ID. - $filterStatement = new Statement("WHERE userId = :userId LIMIT 500", $vars); + // Create a statement to select a single user team association by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('userId = :userId AND teamId = :teamId') + ->OrderBy('userId ASC, teamId ASC') + ->Limit(1) + ->WithBindVariableValue('userId', $userId) + ->WithBindVariableValue('teamId', $teamId); + // Get the user team association. $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( - $filterStatement); - - if (isset($page->results)) { - $utas = $page->results; + $statementBuilder->ToStatement()); + $userTeamAssociation = $page->results[0]; - // Update each local user team association to read only access. - foreach ($utas as $uta) { - $uta->overriddenTeamAccessType = 'READ_ONLY'; - } + // Update the user's access type on the team. + $userTeamAssociation->overriddenTeamAccessType = 'READ_ONLY'; - // Update the user team associations on the server. - $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + // Update the user team association on the server. + $userTeamAssociations = + $userTeamAssociationService->updateUserTeamAssociations( + array($userTeamAssociation)); - // Display results. - if (isset($utas)) { - foreach ($utas as $uta) { - print 'User team association between user with ID "' - . $uta->userId . '" and team with ID "' . $uta->teamId - . '" was updated to access type "' - . $uta->overriddenTeamAccessType . '".\n'; - } - } else { - print "No user team associations updated.\n"; - } - } else { - print "No user team associations found to update.\n"; + foreach ($userTeamAssociations as $updatedUserTeamAssociation) { + printf("User team association with user ID %d, and team ID %d was " + . "updated.\n", $updatedUserTeamAssociation->userId, + $updatedUserTeamAssociation->teamId); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php b/examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php new file mode 100755 index 000000000..7b8005284 --- /dev/null +++ b/examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php @@ -0,0 +1,124 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201502'); + + // Create a statement to select workflow approval requests for a proposal. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('WHERE entityId = :entityId and entityType = ' + . ':entityType and type = :type') + ->OrderBy('id ASC') + ->WithBindVariableValue('entityId', $proposalId) + ->WithBindVariableValue('entityType', 'PROPOSAL') + ->WithBindVariableValue('type', 'WORKFLOW_APPROVAL_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow approval request with ID %d, for '%s', with ID %d " + . "will be approved.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of workflow approval requests to be approved: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ApproveWorkflowApprovalRequests(); + + // Perform action. + $result = $workflowRequestService->performWorkflowRequestAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of workflow approval requests approved: %d\n", + $result->numChanges); + } else { + printf("No workflow approval requests were approved.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php new file mode 100755 index 000000000..60dfde3b0 --- /dev/null +++ b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201502'); + + // Create a statement to select only workflow approval requests. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'WORKFLOW_APPROVAL_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow approval request with ID %d, for '%s', with ID %d " + . "was found.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php new file mode 100755 index 000000000..c2639a14b --- /dev/null +++ b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201502'); + + // Create a statement to select only workflow external condition requests. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'WORKFLOW_EXTERNAL_CONDITION_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow external condition request with ID %d, for '%s', " + . "with ID %d was found.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php b/examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php new file mode 100755 index 000000000..6328cb7f8 --- /dev/null +++ b/examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201502'); + + // Create a statement to select workflow external condition requests for a + // proposal. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('WHERE entityId = :entityId and entityType = ' + . ':entityType and type = :type') + ->OrderBy('id ASC') + ->WithBindVariableValue('entityId', $proposalId) + ->WithBindVariableValue('entityType', 'PROPOSAL') + ->WithBindVariableValue('type', 'WORKFLOW_EXTERNAL_CONDITION_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow external condition request with ID %d, for '%s', " + . "with ID %d will be triggerd.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of workflow external condition requests to be triggerd: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new TriggerWorkflowExternalConditionRequests(); + + // Perform action. + $result = $workflowRequestService->performWorkflowRequestAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of workflow external condition requests triggerd: %d\n", + $result->numChanges); + } else { + printf("No workflow external condition requests were triggerd.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php index 910823460..9ec0b5824 100755 --- a/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php @@ -99,15 +99,11 @@ protected function GenerateSoapHeader() { } /** - * Removes the authentication token from the request before being logged. - * @param string $request the request with sensitive data to remove - * @return string the request with the authentication token removed - * @access protected + * @see AdsSoapClient::RemoveSensitiveInfo() */ protected function RemoveSensitiveInfo($request) { - $result = preg_replace( - '/(.*authToken>)(.*)(<\/.*authToken>.*)/sU', '\1*****\3', $request); - return isset($result) ? $result : $request; + // No-op, there is no sensitive information to remove from AdWords requests. + return $request; } /** diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php index 569fd8d17..5f9821d8d 100755 --- a/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php @@ -33,7 +33,6 @@ */ require_once dirname(__FILE__) . '/../../Common/Lib/AdsUser.php'; require_once dirname(__FILE__) . '/../../Common/Util/ApiPropertiesUtils.php'; -require_once dirname(__FILE__) . '/../../Common/Util/AuthToken.php'; require_once dirname(__FILE__) . '/../../Common/Util/DeprecationUtils.php'; require_once dirname(__FILE__) . '/../Util/ReportUtils.php'; require_once 'AdWordsSoapClientFactory.php'; diff --git a/src/Google/Api/Ads/AdWords/auth.ini b/src/Google/Api/Ads/AdWords/auth.ini index 4bd4a1232..6bf4a47c4 100755 --- a/src/Google/Api/Ads/AdWords/auth.ini +++ b/src/Google/Api/Ads/AdWords/auth.ini @@ -23,3 +23,4 @@ client_secret = "INSERT_OAUTH2_CLIENT_SECRET_HERE" ; If you already have a refresh token, enter it below. Otherwise run ; GetRefreshToken.php. refresh_token = "INSERT_OAUTH2_REFRESH_TOKEN_HERE" + diff --git a/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php index 400fe8751..09f0a3b78 100755 --- a/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php +++ b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php @@ -206,7 +206,6 @@ function __doRequest($request, $location, $action, $version, $one_way = 0) { */ function __soapCall($function_name, $arguments, $options = NULL, $input_headers = NULL, &$output_headers = NULL) { - DeprecationUtils::CheckUsingClientLogin($this->user); try { $input_headers[] = $this->GenerateSoapHeader(); $this->lastHeaders = $input_headers; @@ -222,8 +221,8 @@ function __soapCall($function_name, $arguments, $options = NULL, // Override the existing HTTP headers each time since they may have // changed. $existingStreamContextOptions['http']['header'] = implode("\r\n", - array_map('AdsSoapClient::implodeHttpHeaders', array_keys($httpHeaders), - $httpHeaders)); + array_map('AdsSoapClient::implodeHttpHeaders', + array_keys($httpHeaders), $httpHeaders)); stream_context_set_option($existingStreamContext, $existingStreamContextOptions); } @@ -335,14 +334,6 @@ public function GetServer() { } } - /** - * Gets the email of the user making the request. - * @return string the email of the user making the request - */ - public function GetEmail() { - return $this->user->getEmail(); - } - /** * Gets the service name for this client. * @return string the service name for this client diff --git a/src/Google/Api/Ads/Common/Lib/build.ini b/src/Google/Api/Ads/Common/Lib/build.ini index 56ad016a1..a030b4dd8 100755 --- a/src/Google/Api/Ads/Common/Lib/build.ini +++ b/src/Google/Api/Ads/Common/Lib/build.ini @@ -1,3 +1,3 @@ -LIB_VERSION = 5.7.1 +LIB_VERSION = 5.8.0 LIB_NAME = "Common-PHP" diff --git a/src/Google/Api/Ads/Common/Util/AuthToken.php b/src/Google/Api/Ads/Common/Util/AuthToken.php deleted file mode 100755 index c92a4ac3b..000000000 --- a/src/Google/Api/Ads/Common/Util/AuthToken.php +++ /dev/null @@ -1,181 +0,0 @@ -email = $email; - $this->password = $password; - $this->accountType = is_null($accountType) - ? self::DEFAULT_ACCOUNT_TYPE : $accountType; - $this->service = $service; - $this->source = $source; - $this->server = is_null($server) ? self::DEFAULT_SERVER : $server; - $this->captchaToken = $captchaToken; - $this->captchaResponse = $captchaResponse; - - $this->curlUtils = is_null($curlUtils) ? new CurlUtils() : $curlUtils; - } - - /** - * Peforms a POST to get the auth token and then parses the result. - * @return string the auth token - * @throws AuthTokenException if an error occurs during authentication - */ - public function GetAuthToken() { - $response = $this->Login(); - $fields = $this->ParseResponse($response); - if (array_key_exists('Error', $fields)) { - $error = $fields['Error']; - if (array_key_exists('Info', $fields)) { - $error .= ': ' . $fields['Info']; - } - $url = array_key_exists('Url', $fields) ? $fields['Url'] : NULL; - $captchaToken = array_key_exists('CaptchaToken', $fields) ? - $fields['CaptchaToken'] : NULL; - $captchaUrl = array_key_exists('CaptchaUrl', $fields) ? - $fields['CaptchaUrl'] : NULL; - throw new AuthTokenException($error, $url, $captchaToken, $captchaUrl); - } else if (!array_key_exists('Auth', $fields)) { - throw new AuthTokenException('Unknown'); - } else { - return $fields['Auth']; - } - } - - /** - * Makes the client login request and stores the result. - * @return string the response from the ClientLogin API - * @throws AuthTokenException if an error occurs during authentication - */ - private function Login() { - $postUrl = $this->server . '/accounts/ClientLogin'; - $postVars = http_build_query(array( - 'accountType' => $this->accountType, - 'Email' => $this->email, - 'Passwd' => $this->password, - 'service' => $this->service, - 'source' => $this->source, - 'logintoken' => $this->captchaToken, - 'logincaptcha' => $this->captchaResponse - ), NULL, '&'); - - $ch = $this->curlUtils->CreateSession($postUrl); - $this->curlUtils->SetOpt($ch, CURLOPT_POST, 1); - $this->curlUtils->SetOpt($ch, CURLOPT_POSTFIELDS, $postVars); - - $response = $this->curlUtils->Exec($ch); - $httpCode = $this->curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE); - $error = $this->curlUtils->Error($ch); - $this->curlUtils->Close($ch); - - if (!empty($error)) { - throw new AuthTokenException($error); - } else if ($httpCode != 200 && $httpCode != 403) { - throw new AuthTokenException($httpCode); - } - - return $response; - } - - /** - * Parses the response into a map of field name to value. - * @param string $response the response from the ClientLogin API - * @return array a map of field name to value - */ - private function ParseResponse($response) { - $result = array(); - $lines = explode("\n", $response); - foreach ($lines as $line) { - $parts = explode('=', $line, 2); - $key = isset($parts[0]) ? $parts[0] : NULL; - $value = isset($parts[1]) ? $parts[1] : NULL; - $result[$key] = $value; - } - return $result; - } - - /** - * Returns the server to make requests to. - * @return string the server to make requests to - */ - public function GetServer() { - return $this->server; - } -} - diff --git a/src/Google/Api/Ads/Common/Util/AuthTokenException.php b/src/Google/Api/Ads/Common/Util/AuthTokenException.php deleted file mode 100755 index d53f80d23..000000000 --- a/src/Google/Api/Ads/Common/Util/AuthTokenException.php +++ /dev/null @@ -1,92 +0,0 @@ -error = $error; - $this->url = $url; - $this->captchaToken = $captchaToken; - $this->captchaUrl = $captchaUrl; - parent::__construct('Failed to get authToken. Reason: ' . $error); - } - - /** - * Gets the error that caused the exception. - * @return string the error that caused the exception - */ - public function GetError() { - return $this->error; - } - - /** - * Gets the URL associated with the error. - * @return string the URL associated with the error - */ - public function GetUrl() { - return $this->url; - } - - /** - * Gets the CATPCHA token for the error. - * @return string the CATPCHA token for the error - */ - public function GetCaptchaToken() { - return $this->captchaToken; - } - - /** - * Gets the CAPTCHA URL for the error. - * @return string the CAPTCHA URL for the error - */ - public function GetCaptchaUrl() { - return $this->captchaUrl; - } -} - diff --git a/src/Google/Api/Ads/Common/Util/DeprecationUtils.php b/src/Google/Api/Ads/Common/Util/DeprecationUtils.php index c7aa74033..097a30212 100755 --- a/src/Google/Api/Ads/Common/Util/DeprecationUtils.php +++ b/src/Google/Api/Ads/Common/Util/DeprecationUtils.php @@ -39,53 +39,6 @@ */ abstract class DeprecationUtils { - /** - * Determines if a ClientLogin deprecation warning should be logged or not. - * - * @param AdsUser $user the AdsUser to test - */ - public static function CheckUsingClientLogin(AdsUser $user) { - if (!self::IsUsingOAuth2($user)) { - self::Log("Current authentication method DEPRECATED. Please switch to" - . " OAuth2 as authentication method. For more information, see:\n" - . " https://developers.google.com/accounts/docs/" - . "AuthForInstalledApps", Logger::$ERROR); - } - } - - /** - * Checks to see if an ads user is authenticating with OAuth 2 or not. - * - * @param AdsUser $user the AdsUser to test - * @return boolean true if using OAuth 2, false otherwise - */ - public static function IsUsingOAuth2(AdsUser $user) { - // AdsUser doesn't have ClientLogin information on it, only the subclasses - // do, so we can only check for absence of OAuth 2 here. - return $user->GetOAuth2Info() !== NULL; - } - - /** - * Checks to see if ClientLogin is being used as the authentication mechanism - * in a version where it is not supported and throws an error if this is the - * case. - * - * @param AdsUser $user the AdsUser to test - * @param string $finalClientLoginVersion the final API version that supports - * ClientLogin - * @param string $requestedVersion the API version being used - * @throws ServiceException if the requested version does not support - * ClientLogin - */ - public static function CheckUsingClientLoginWithUnsupportedVersion( - AdsUser $user, $finalClientLoginVersion, $requestedVersion) { - if (!self::IsUsingOAuth2($user) && - $requestedVersion > $finalClientLoginVersion) { - throw new ServiceException(sprintf("ClientLogin is not supported in " - . "version %s. Please upgrade to OAuth 2.", $requestedVersion)); - } - } - /** * Checks to see if skipReportHeader or skipReportSummary can be used. * Throws an error if it cannot be used. diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php index 97d8b7832..200b61be4 100755 --- a/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php +++ b/src/Google/Api/Ads/Dfp/Lib/DfpSoapClient.php @@ -25,9 +25,6 @@ * @copyright 2011, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Adam Rogal - * @author Eric Koleda - * @author Paul Rashidi * @author Vincent Tsao * @see AdsSoapClient */ @@ -63,14 +60,7 @@ public function __construct($wsdl, array $options, AdsUser $user, protected function GenerateSoapHeader() { $headerObject = $this->Create('SoapRequestHeader'); foreach (get_object_vars($headerObject) as $var => $value) { - $authToken = $this->GetHeaderValue('authToken'); - if ($var === 'authentication' && !empty($authToken)) { - $authentication = $this->Create('ClientLogin'); - $authentication->token = $this->GetHeaderValue('authToken'); - $headerObject->$var = $authentication; - } else { - $headerObject->$var = $this->GetHeaderValue($var); - } + $headerObject->$var = $this->GetHeaderValue($var); } return new SoapHeader($this->serviceNamespace, 'RequestHeader', $headerObject, FALSE); @@ -80,7 +70,7 @@ protected function GenerateSoapHeader() { * @see AdsSoapClient::RemoveSensitiveInfo() */ protected function RemoveSensitiveInfo($request) { - $tags = array('authToken', 'authentication'); + $tags = array('authentication'); $regexFormat = '/(<(?:[^:]+:)?%s(?:\s[^>]*)?>).*(<\/(?:[^:]+:)?%s\s*>)/sU'; $result = $request; foreach ($tags as $tag) { @@ -94,12 +84,16 @@ protected function RemoveSensitiveInfo($request) { * @see AdsSoapClient::GenerateRequestInfoMessage() */ protected function GenerateRequestInfoMessage() { - return 'email=' . $this->GetEmail() . ' service=' . $this->GetServiceName() - . ' method=' . $this->GetLastMethodName() . ' responseTime=' - . $this->GetLastResponseTime() . ' requestId=' - . $this->GetLastRequestId() . ' server=' . $this->GetServer() - . ' isFault=' . $this->IsFault() . ' faultMessage=' - . $this->GetLastFaultMessage(); + return sprintf('service=%s method=%s responseTime=%d requestId=%s ' + . 'server=%s isFault=%b faultMessage=%s', + $this->GetServiceName(), + $this->GetLastMethodName(), + $this->GetLastResponseTime(), + $this->GetLastRequestId(), + $this->GetServer(), + $this->IsFault(), + $this->GetLastFaultMessage() + ); } } diff --git a/src/Google/Api/Ads/Dfp/Lib/DfpUser.php b/src/Google/Api/Ads/Dfp/Lib/DfpUser.php index 1389b6486..ed016ba18 100755 --- a/src/Google/Api/Ads/Dfp/Lib/DfpUser.php +++ b/src/Google/Api/Ads/Dfp/Lib/DfpUser.php @@ -31,7 +31,6 @@ */ require_once 'Google/Api/Ads/Common/Lib/AdsUser.php'; require_once 'Google/Api/Ads/Common/Util/ApiPropertiesUtils.php'; -require_once 'Google/Api/Ads/Common/Util/AuthToken.php'; require_once 'Google/Api/Ads/Common/Util/DeprecationUtils.php'; require_once 'Google/Api/Ads/Common/Util/Logger.php'; require_once 'Google/Api/Ads/Dfp/Lib/DfpSoapClientFactory.php'; @@ -46,7 +45,6 @@ class DfpUser extends AdsUser { const OAUTH2_SCOPE = 'https://www.googleapis.com/auth/dfp'; const OAUTH2_HANDLER_CLASS = 'SimpleOAuth2Handler'; - const FINAL_CLIENT_LOGIN_VERSION = "v201311"; /** * The name of the SOAP header that represents the user agent making API @@ -60,8 +58,6 @@ class DfpUser extends AdsUser { private $libVersion; private $libName; - private $email; - private $password; private $applicationName; @@ -86,10 +82,6 @@ class DfpUser extends AdsUser { * authentication INI or relative to the current directory (cwd). If * NULL, the default authentication INI file will attempt to be * loaded - * @param string $email the email of the user (required header). Will - * overwrite the email entry loaded from any INI file - * @param string $password the password of the user (required header). Will - * overwrite the password entry loaded from any INI file * @param string $applicationName the application name (required header). Will * be prepended with the library name and version. Will also overwrite the * applicationName entry in any INI file @@ -99,12 +91,11 @@ class DfpUser extends AdsUser { * file * @param string $settingsIniPath the path to the settings INI file. If * NULL, the default settings INI file will be loaded - * @param string $authToken the authToken to use for requests * @param array $oauth2Info the OAuth 2.0 information to use for requests */ - public function __construct($authenticationIniPath = NULL, $email = NULL, - $password = NULL, $applicationName = NULL, $networkCode = NULL, - $settingsIniPath = NULL, $authToken = NULL, $oauth2Info = NULL) { + public function __construct($authenticationIniPath = NULL, + $applicationName = NULL, $networkCode = NULL, $settingsIniPath = NULL, + $oauth2Info = NULL) { parent::__construct(); @@ -129,21 +120,13 @@ public function __construct($authenticationIniPath = NULL, $email = NULL, parse_ini_file(dirname(__FILE__) . '/../auth.ini', TRUE); } - $email = $this->GetAuthVarValue($email, 'email', $authenticationIni); - $password = $this->GetAuthVarValue($password, 'password', - $authenticationIni); $applicationName = $this->GetAuthVarValue($applicationName, self::USER_AGENT_HEADER_NAME, $authenticationIni); $networkCode = $this->GetAuthVarValue($networkCode, 'networkCode', $authenticationIni); - $authToken = $this->GetAuthVarValue($authToken, 'authToken', - $authenticationIni); $oauth2Info = $this->GetAuthVarValue($oauth2Info, 'OAUTH2', $authenticationIni); - $this->SetEmail($email); - $this->SetPassword($password); - $this->SetAuthToken($authToken); $this->SetOAuth2Info($oauth2Info); $this->SetApplicationName($applicationName); $this->SetClientLibraryUserAgent($applicationName); @@ -186,48 +169,9 @@ public function GetService($serviceName, $version = NULL, $server = NULL, $serviceFactory = new DfpSoapClientFactory($this, $version, $server); } - DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($this, - self::FINAL_CLIENT_LOGIN_VERSION, $version); - return parent::GetServiceSoapClient($serviceName, $serviceFactory); } - /** - * Regenerates the authentication token and sets it for this user. - * @param string $server The server to retrieve the token from. - * @return string The newly generated auth token. - */ - public function RegenerateAuthToken($server = NULL) { - if (!isset($server)) { - $server = $this->GetAuthServer(); - } - $authTokenClient = new AuthToken($this->email, $this->password, 'gam', - $this->GetClientLibraryUserAgent(), 'GOOGLE', $server); - $authToken = $authTokenClient->GetAuthToken(); - $this->SetAuthToken($authToken); - return $authToken; - } - - /** - * Gets the authentication token. - * @return string the auth token - */ - public function GetAuthToken() { - $authToken = $this->GetHeaderValue('authToken'); - if (!isset($authToken) && isset($this->email) && isset($this->password)) { - $authToken = $this->RegenerateAuthToken(); - } - return $authToken; - } - - /** - * Sets the authentication token. - * @param string $authToken the auth token to set - */ - public function SetAuthToken($authToken) { - $this->SetHeaderValue('authToken', $authToken); - } - /** * Gets the code for the network that this user belongs to. * @return string the network code @@ -274,38 +218,6 @@ public function GetClientLibraryNameAndVersion() { return array($this->libName, $this->libVersion); } - /** - * Gets the email address of the user login. - * @return string the user login email - */ - public function GetEmail() { - return $this->email; - } - - /** - * Sets the email address of the user login. - * @param string $email the user login email - */ - public function SetEmail($email) { - $this->email = $email; - } - - /** - * Gets the password for this user. - * @return string the password for this user - */ - public function GetPassword() { - return $this->password; - } - - /** - * Sets the password for this user. - * @param string $password the password for this user - */ - public function SetPassword($password) { - $this->password = $password; - } - /** * Get the default OAuth2 Handler for this user. * @param NULL|string $className the name of the oauth2Handler class or NULL @@ -322,21 +234,7 @@ public function GetDefaultOAuth2Handler($className = NULL) { * @throws ValidationException if there are any validation errors */ public function ValidateUser() { - if ($this->GetOAuth2Info() !== NULL) { - parent::ValidateOAuth2Info(); - } else if ($this->GetAuthToken() == NULL) { - if (!isset($this->email)) { - throw new ValidationException('email', NULL, - 'email is required and cannot be NULL.'); - } - - if (!isset($this->password)) { - throw new ValidationException('password', NULL, - 'password is required and cannot be NULL.'); - } - // Generate an authToken. - $this->RegenerateAuthToken(); - } + parent::ValidateOAuth2Info(); if ($this->GetApplicationName() === NULL || trim($this->GetApplicationName()) === '' diff --git a/src/Google/Api/Ads/Dfp/Lib/api.properties b/src/Google/Api/Ads/Dfp/Lib/api.properties index c652087af..0f17560a5 100755 --- a/src/Google/Api/Ads/Dfp/Lib/api.properties +++ b/src/Google/Api/Ads/Dfp/Lib/api.properties @@ -18,138 +18,7 @@ wsdl2php.skipClassNameCheckTypes= ;; API api.server=https://ads.google.com -api.versions=v201306,v201308,v201311,v201403,v201405,v201408,v201411 - -;; v201306 -api.versions.v201306.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowActionService -api.versions.v201306.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201306/ActivityService?wsdl -api.versions.v201306.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201306/ActivityGroupService?wsdl -api.versions.v201306.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201306/AdRuleService?wsdl -api.versions.v201306.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201306/AudienceSegmentService?wsdl -api.versions.v201306.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201306/BaseRateService?wsdl -api.versions.v201306.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201306/CompanyService?wsdl -api.versions.v201306.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201306/ContactService?wsdl -api.versions.v201306.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201306/ContentService?wsdl -api.versions.v201306.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201306/ContentBundleService?wsdl -api.versions.v201306.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeService?wsdl -api.versions.v201306.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeSetService?wsdl -api.versions.v201306.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeTemplateService?wsdl -api.versions.v201306.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201306/CreativeWrapperService?wsdl -api.versions.v201306.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201306/CustomFieldService?wsdl -api.versions.v201306.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201306/CustomTargetingService?wsdl -api.versions.v201306.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201306/ForecastService?wsdl -api.versions.v201306.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201306/InventoryService?wsdl -api.versions.v201306.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201306/LabelService?wsdl -api.versions.v201306.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201306/LineItemService?wsdl -api.versions.v201306.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201306/LineItemCreativeAssociationService?wsdl -api.versions.v201306.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201306/LineItemTemplateService?wsdl -api.versions.v201306.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201306/NetworkService?wsdl -api.versions.v201306.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201306/OrderService?wsdl -api.versions.v201306.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201306/PlacementService?wsdl -api.versions.v201306.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201306/ProductService?wsdl -api.versions.v201306.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201306/ProductTemplateService?wsdl -api.versions.v201306.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201306/ProposalService?wsdl -api.versions.v201306.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201306/ProposalLineItemService?wsdl -api.versions.v201306.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201306/PublisherQueryLanguageService?wsdl -api.versions.v201306.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201306/RateCardService?wsdl -api.versions.v201306.services.RateCardCustomizationService.wsdl=${api.server}/apis/ads/publisher/v201306/RateCardCustomizationService?wsdl -api.versions.v201306.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201306/ReconciliationOrderReportService?wsdl -api.versions.v201306.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201306/ReconciliationReportService?wsdl -api.versions.v201306.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201306/ReconciliationReportRowService?wsdl -api.versions.v201306.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201306/ReportService?wsdl -api.versions.v201306.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201306/SuggestedAdUnitService?wsdl -api.versions.v201306.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201306/TeamService?wsdl -api.versions.v201306.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201306/UserService?wsdl -api.versions.v201306.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201306/UserTeamAssociationService?wsdl -api.versions.v201306.services.WorkflowActionService.wsdl=${api.server}/apis/ads/publisher/v201306/WorkflowActionService?wsdl - -;; v201308 -api.versions.v201308.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowActionService -api.versions.v201308.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201308/ActivityService?wsdl -api.versions.v201308.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201308/ActivityGroupService?wsdl -api.versions.v201308.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201308/AdRuleService?wsdl -api.versions.v201308.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201308/AudienceSegmentService?wsdl -api.versions.v201308.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201308/BaseRateService?wsdl -api.versions.v201308.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201308/CompanyService?wsdl -api.versions.v201308.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201308/ContactService?wsdl -api.versions.v201308.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201308/ContentService?wsdl -api.versions.v201308.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201308/ContentBundleService?wsdl -api.versions.v201308.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeService?wsdl -api.versions.v201308.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeSetService?wsdl -api.versions.v201308.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeTemplateService?wsdl -api.versions.v201308.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201308/CreativeWrapperService?wsdl -api.versions.v201308.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201308/CustomFieldService?wsdl -api.versions.v201308.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201308/CustomTargetingService?wsdl -api.versions.v201308.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201308/ForecastService?wsdl -api.versions.v201308.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201308/InventoryService?wsdl -api.versions.v201308.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201308/LabelService?wsdl -api.versions.v201308.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201308/LineItemService?wsdl -api.versions.v201308.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201308/LineItemCreativeAssociationService?wsdl -api.versions.v201308.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201308/LineItemTemplateService?wsdl -api.versions.v201308.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201308/NetworkService?wsdl -api.versions.v201308.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201308/OrderService?wsdl -api.versions.v201308.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201308/PlacementService?wsdl -api.versions.v201308.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201308/ProductService?wsdl -api.versions.v201308.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201308/ProductTemplateService?wsdl -api.versions.v201308.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201308/ProposalService?wsdl -api.versions.v201308.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201308/ProposalLineItemService?wsdl -api.versions.v201308.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201308/PublisherQueryLanguageService?wsdl -api.versions.v201308.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201308/RateCardService?wsdl -api.versions.v201308.services.RateCardCustomizationService.wsdl=${api.server}/apis/ads/publisher/v201308/RateCardCustomizationService?wsdl -api.versions.v201308.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201308/ReconciliationOrderReportService?wsdl -api.versions.v201308.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201308/ReconciliationReportService?wsdl -api.versions.v201308.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201308/ReconciliationReportRowService?wsdl -api.versions.v201308.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201308/ReportService?wsdl -api.versions.v201308.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201308/SuggestedAdUnitService?wsdl -api.versions.v201308.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201308/TeamService?wsdl -api.versions.v201308.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201308/UserService?wsdl -api.versions.v201308.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201308/UserTeamAssociationService?wsdl -api.versions.v201308.services.WorkflowActionService.wsdl=${api.server}/apis/ads/publisher/v201308/WorkflowActionService?wsdl - -;; v201311 -api.versions.v201311.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,ContentMetadataKeyHierarchyService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ExchangeRateService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowRequestService -api.versions.v201311.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201311/ActivityService?wsdl -api.versions.v201311.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201311/ActivityGroupService?wsdl -api.versions.v201311.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201311/AdRuleService?wsdl -api.versions.v201311.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201311/AudienceSegmentService?wsdl -api.versions.v201311.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201311/BaseRateService?wsdl -api.versions.v201311.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201311/CompanyService?wsdl -api.versions.v201311.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201311/ContactService?wsdl -api.versions.v201311.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201311/ContentService?wsdl -api.versions.v201311.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201311/ContentBundleService?wsdl -api.versions.v201311.services.ContentMetadataKeyHierarchyService.wsdl=${api.server}/apis/ads/publisher/v201311/ContentMetadataKeyHierarchyService?wsdl -api.versions.v201311.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeService?wsdl -api.versions.v201311.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeSetService?wsdl -api.versions.v201311.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeTemplateService?wsdl -api.versions.v201311.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201311/CreativeWrapperService?wsdl -api.versions.v201311.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201311/CustomFieldService?wsdl -api.versions.v201311.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201311/CustomTargetingService?wsdl -api.versions.v201311.services.ExchangeRateService.wsdl=${api.server}/apis/ads/publisher/v201311/ExchangeRateService?wsdl -api.versions.v201311.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201311/ForecastService?wsdl -api.versions.v201311.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201311/InventoryService?wsdl -api.versions.v201311.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201311/LabelService?wsdl -api.versions.v201311.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201311/LineItemService?wsdl -api.versions.v201311.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201311/LineItemCreativeAssociationService?wsdl -api.versions.v201311.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201311/LineItemTemplateService?wsdl -api.versions.v201311.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201311/NetworkService?wsdl -api.versions.v201311.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201311/OrderService?wsdl -api.versions.v201311.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201311/PlacementService?wsdl -api.versions.v201311.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201311/ProductService?wsdl -api.versions.v201311.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201311/ProductTemplateService?wsdl -api.versions.v201311.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201311/ProposalService?wsdl -api.versions.v201311.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201311/ProposalLineItemService?wsdl -api.versions.v201311.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201311/PublisherQueryLanguageService?wsdl -api.versions.v201311.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201311/RateCardService?wsdl -api.versions.v201311.services.RateCardCustomizationService.wsdl=${api.server}/apis/ads/publisher/v201311/RateCardCustomizationService?wsdl -api.versions.v201311.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201311/ReconciliationOrderReportService?wsdl -api.versions.v201311.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201311/ReconciliationReportService?wsdl -api.versions.v201311.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201311/ReconciliationReportRowService?wsdl -api.versions.v201311.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201311/ReportService?wsdl -api.versions.v201311.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201311/SuggestedAdUnitService?wsdl -api.versions.v201311.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201311/TeamService?wsdl -api.versions.v201311.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201311/UserService?wsdl -api.versions.v201311.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201311/UserTeamAssociationService?wsdl -api.versions.v201311.services.WorkflowRequestService.wsdl=${api.server}/apis/ads/publisher/v201311/WorkflowRequestService?wsdl +api.versions=v201403,v201405,v201408,v201411,v201502 ;; v201403 api.versions.v201403.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,ContentMetadataKeyHierarchyService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ExchangeRateService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,LiveStreamEventService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,RateCardCustomizationGroupService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowRequestService @@ -339,3 +208,54 @@ api.versions.v201411.services.UserService.wsdl=${api.server}/apis/ads/publisher/ api.versions.v201411.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201411/UserTeamAssociationService?wsdl api.versions.v201411.services.WorkflowRequestService.wsdl=${api.server}/apis/ads/publisher/v201411/WorkflowRequestService?wsdl +;; v201502 +api.versions.v201502.services=ActivityService,ActivityGroupService,AdExclusionRuleService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,ContentMetadataKeyHierarchyService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ExchangeRateService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,LiveStreamEventService,NetworkService,OrderService,PackageService,PlacementService,PremiumRateService,ProductPackageItemService,ProductPackageService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SharedAdUnitService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowRequestService +api.versions.v201502.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201502/ActivityService?wsdl +api.versions.v201502.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201502/ActivityGroupService?wsdl +api.versions.v201502.services.AdExclusionRuleService.wsdl=${api.server}/apis/ads/publisher/v201502/AdExclusionRuleService?wsdl +api.versions.v201502.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201502/AdRuleService?wsdl +api.versions.v201502.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201502/AudienceSegmentService?wsdl +api.versions.v201502.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201502/BaseRateService?wsdl +api.versions.v201502.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201502/CompanyService?wsdl +api.versions.v201502.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201502/ContactService?wsdl +api.versions.v201502.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201502/ContentService?wsdl +api.versions.v201502.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201502/ContentBundleService?wsdl +api.versions.v201502.services.ContentMetadataKeyHierarchyService.wsdl=${api.server}/apis/ads/publisher/v201502/ContentMetadataKeyHierarchyService?wsdl +api.versions.v201502.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201502/CreativeService?wsdl +api.versions.v201502.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201502/CreativeSetService?wsdl +api.versions.v201502.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201502/CreativeTemplateService?wsdl +api.versions.v201502.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201502/CreativeWrapperService?wsdl +api.versions.v201502.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201502/CustomFieldService?wsdl +api.versions.v201502.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201502/CustomTargetingService?wsdl +api.versions.v201502.services.ExchangeRateService.wsdl=${api.server}/apis/ads/publisher/v201502/ExchangeRateService?wsdl +api.versions.v201502.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201502/ForecastService?wsdl +api.versions.v201502.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201502/InventoryService?wsdl +api.versions.v201502.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201502/LabelService?wsdl +api.versions.v201502.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201502/LineItemService?wsdl +api.versions.v201502.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201502/LineItemCreativeAssociationService?wsdl +api.versions.v201502.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201502/LineItemTemplateService?wsdl +api.versions.v201502.services.LiveStreamEventService.wsdl=${api.server}/apis/ads/publisher/v201502/LiveStreamEventService?wsdl +api.versions.v201502.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201502/NetworkService?wsdl +api.versions.v201502.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201502/OrderService?wsdl +api.versions.v201502.services.PackageService.wsdl=${api.server}/apis/ads/publisher/v201502/PackageService?wsdl +api.versions.v201502.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201502/PlacementService?wsdl +api.versions.v201502.services.PremiumRateService.wsdl=${api.server}/apis/ads/publisher/v201502/PremiumRateService?wsdl +api.versions.v201502.services.ProductPackageItemService.wsdl=${api.server}/apis/ads/publisher/v201502/ProductPackageItemService?wsdl +api.versions.v201502.services.ProductPackageService.wsdl=${api.server}/apis/ads/publisher/v201502/ProductPackageService?wsdl +api.versions.v201502.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201502/ProductService?wsdl +api.versions.v201502.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201502/ProductTemplateService?wsdl +api.versions.v201502.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201502/ProposalService?wsdl +api.versions.v201502.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201502/ProposalLineItemService?wsdl +api.versions.v201502.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201502/PublisherQueryLanguageService?wsdl +api.versions.v201502.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201502/RateCardService?wsdl +api.versions.v201502.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201502/ReconciliationOrderReportService?wsdl +api.versions.v201502.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201502/ReconciliationReportService?wsdl +api.versions.v201502.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201502/ReconciliationReportRowService?wsdl +api.versions.v201502.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201502/ReportService?wsdl +api.versions.v201502.services.SharedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201502/SharedAdUnitService?wsdl +api.versions.v201502.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201502/SuggestedAdUnitService?wsdl +api.versions.v201502.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201502/TeamService?wsdl +api.versions.v201502.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201502/UserService?wsdl +api.versions.v201502.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201502/UserTeamAssociationService?wsdl +api.versions.v201502.services.WorkflowRequestService.wsdl=${api.server}/apis/ads/publisher/v201502/WorkflowRequestService?wsdl + diff --git a/src/Google/Api/Ads/Dfp/auth.ini b/src/Google/Api/Ads/Dfp/auth.ini index 2991c18d3..9012cea39 100755 --- a/src/Google/Api/Ads/Dfp/auth.ini +++ b/src/Google/Api/Ads/Dfp/auth.ini @@ -21,12 +21,3 @@ client_secret = "INSERT_OAUTH2_CLIENT_SECRET_HERE" ; GetRefreshToken.php. refresh_token = "INSERT_OAUTH2_REFRESH_TOKEN_HERE" -; (DEPRECATED) Uncomment the following to use ClientLogin. -; For more information, see: -; https://developers.google.com/accounts/docs/AuthForInstalledApps - -; email = "INSERT_EMAIL_ADDRESS_HERE" -; password = "INSERT_PASSWORD_HERE" -; Uncomment the following to use an existing ClientLogin AuthToken (optional). -; authToken = "INSERT_AUTH_TOKEN_HERE" - diff --git a/src/Google/Api/Ads/Dfp/settings.ini b/src/Google/Api/Ads/Dfp/settings.ini index c2375f4a4..f998a9e1c 100755 --- a/src/Google/Api/Ads/Dfp/settings.ini +++ b/src/Google/Api/Ads/Dfp/settings.ini @@ -5,7 +5,7 @@ ; LIB_LOG_DIR_PATH = "path/to/logs" [SERVER] -DEFAULT_VERSION = "v201411" +DEFAULT_VERSION = "v201502" DEFAULT_SERVER = "https://ads.google.com" [SOAP] @@ -52,7 +52,7 @@ WSDL_CACHE = 0 ; PASSWORD = "" [AUTH] -; The server to use when making ClientLogin or OAuth2 requests. +; The server to use when making OAuth2 requests. ; This normally doesn't need to be changed from the default value ; "https://accounts.google.com". ; AUTH_SERVER = "" diff --git a/src/Google/Api/Ads/Dfp/v201306/ActivityService.php b/src/Google/Api/Ads/Dfp/v201306/ActivityService.php deleted file mode 100755 index 721379f9e..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ActivityService.php +++ /dev/null @@ -1,3268 +0,0 @@ -An activity is a specific user action that an advertiser wants to track, such as the - * completion of a purchase or a visit to a webpage. You create and manage activities in DFP. When - * a user performs the action after seeing an advertiser's ad, that's a conversion.

- * - *

For example, you set up an activity in DFP to track how many users visit an advertiser's - * promotional website after viewing or clicking on an ad. When a user views an ad, then visits the - * page, that's one conversion.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Activity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Activity"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $activityGroupId; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $expectedURL; - - /** - * @access public - * @var tnsActivityStatus - */ - public $status; - - /** - * @access public - * @var tnsActivityType - */ - public $type; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $activityGroupId = null, $name = null, $expectedURL = null, $status = null, $type = null) { - $this->id = $id; - $this->activityGroupId = $activityGroupId; - $this->name = $name; - $this->expectedURL = $expectedURL; - $this->status = $status; - $this->type = $type; - } - - } -} - -if (!class_exists("ActivityPage", false)) { - /** - * Captures a page of {@link Activity} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivityPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivityPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Activity[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ActivityStatus", false)) { - /** - * The activity status. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivityStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Activity.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ActivityType", false)) { - /** - * The activity type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivityType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Activity.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ActivityErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivityErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivityError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateActivities", false)) { - /** - * Creates a new {@link Activity} objects. - * - * @param activities to be created. - * @return the created activities with its IDs filled in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateActivities { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity[] - */ - public $activities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activities = null) { - $this->activities = $activities; - } - - } -} - -if (!class_exists("CreateActivitiesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateActivitiesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateActivity", false)) { - /** - * Creates a new {@link Activity}. - * - * @param activity to be created - * @return the created activity with its ID filled in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateActivity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $activity; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activity = null) { - $this->activity = $activity; - } - - } -} - -if (!class_exists("CreateActivityResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateActivityResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetActivitiesByStatement", false)) { - /** - * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Activity#id}
{@code name}{@link Activity#name}
{@code expectedURL}{@link Activity#expectedURL}
{@code status}{@link Activity#status}
{@code activityGroupId}{@link Activity#activityGroupId}
- * - * @param filterStatement a statement used to filter a set of activities. - * @return the activities that match the given filter. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetActivitiesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetActivitiesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetActivitiesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetActivity", false)) { - /** - * Returns the {@link Activity} uniquely identified by the given ID. - * - * @param activityId the ID of the activity, which must already exist - * @return the {@code Activity} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetActivity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $activityId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityId = null) { - $this->activityId = $activityId; - } - - } -} - -if (!class_exists("GetActivityResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetActivityResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateActivities", false)) { - /** - * Updates the specified {@link Activity} objects. - * - * @param activities to be updated. - * @return the updated activities. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateActivities { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity[] - */ - public $activities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activities = null) { - $this->activities = $activities; - } - - } -} - -if (!class_exists("UpdateActivitiesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateActivitiesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateActivity", false)) { - /** - * Updates the specified {@link Activity}. - * - * @param activity to be updated. - * @return the updated activity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateActivity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $activity; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activity = null) { - $this->activity = $activity; - } - - } -} - -if (!class_exists("UpdateActivityResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateActivityResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivityError", false)) { - /** - * Errors relating to Activity and Activity Group services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivityError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivityError"; - - /** - * @access public - * @var tnsActivityErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ActivityService", false)) { - /** - * ActivityService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivityService extends DfpSoapClient { - - const SERVICE_NAME = "ActivityService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ActivityService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ActivityService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "Activity" => "Activity", - "ActivityError" => "ActivityError", - "ActivityPage" => "ActivityPage", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "Value" => "Value", - "Activity.Status" => "ActivityStatus", - "Activity.Type" => "ActivityType", - "ActivityError.Reason" => "ActivityErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createActivities" => "CreateActivities", - "createActivitiesResponse" => "CreateActivitiesResponse", - "createActivity" => "CreateActivity", - "createActivityResponse" => "CreateActivityResponse", - "getActivitiesByStatement" => "GetActivitiesByStatement", - "getActivitiesByStatementResponse" => "GetActivitiesByStatementResponse", - "getActivity" => "GetActivity", - "getActivityResponse" => "GetActivityResponse", - "updateActivities" => "UpdateActivities", - "updateActivitiesResponse" => "UpdateActivitiesResponse", - "updateActivity" => "UpdateActivity", - "updateActivityResponse" => "UpdateActivityResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Activity} objects. - * - * @param activities to be created. - * @return the created activities with its IDs filled in. - */ - public function createActivities($activities) { - $args = new CreateActivities($activities); - $result = $this->__soapCall("createActivities", array($args)); - return $result->rval; - } - /** - * Creates a new {@link Activity}. - * - * @param activity to be created - * @return the created activity with its ID filled in. - */ - public function createActivity($activity) { - $args = new CreateActivity($activity); - $result = $this->__soapCall("createActivity", array($args)); - return $result->rval; - } - /** - * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Activity#id}
{@code name}{@link Activity#name}
{@code expectedURL}{@link Activity#expectedURL}
{@code status}{@link Activity#status}
{@code activityGroupId}{@link Activity#activityGroupId}
- * - * @param filterStatement a statement used to filter a set of activities. - * @return the activities that match the given filter. - */ - public function getActivitiesByStatement($filterStatement) { - $args = new GetActivitiesByStatement($filterStatement); - $result = $this->__soapCall("getActivitiesByStatement", array($args)); - return $result->rval; - } - /** - * Returns the {@link Activity} uniquely identified by the given ID. - * - * @param activityId the ID of the activity, which must already exist - * @return the {@code Activity} uniquely identified by the given ID - */ - public function getActivity($activityId) { - $args = new GetActivity($activityId); - $result = $this->__soapCall("getActivity", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Activity} objects. - * - * @param activities to be updated. - * @return the updated activities. - */ - public function updateActivities($activities) { - $args = new UpdateActivities($activities); - $result = $this->__soapCall("updateActivities", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Activity}. - * - * @param activity to be updated. - * @return the updated activity. - */ - public function updateActivity($activity) { - $args = new UpdateActivity($activity); - $result = $this->__soapCall("updateActivity", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php deleted file mode 100755 index 1b0b17768..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/BaseRateService.php +++ /dev/null @@ -1,3735 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseRateAction", false)) { - /** - * Represents the action that can be performed on {@link BaseRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateAction"; - - /** - * @access public - * @var string - */ - public $BaseRateActionType; - private $_parameterMap = array( - "BaseRateAction.Type" => "BaseRateActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($BaseRateActionType = null) { - $this->BaseRateActionType = $BaseRateActionType; - } - - } -} - -if (!class_exists("BaseRateActionError", false)) { - /** - * An error having to do with {@link BaseRate} when performing actions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateActionError"; - - /** - * @access public - * @var tnsBaseRateActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseRate", false)) { - /** - * A base rate that applies to a product template or product belonging to rate - * card. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRate"; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsBaseRateStatus - */ - public $status; - - /** - * @access public - * @var string - */ - public $BaseRateType; - private $_parameterMap = array( - "BaseRate.Type" => "BaseRateType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardId = null, $id = null, $status = null, $BaseRateType = null) { - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; - } - - } -} - -if (!class_exists("BaseRateError", false)) { - /** - * An error having to do with {@link BaseRate}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateError"; - - /** - * @access public - * @var tnsBaseRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseRatePage", false)) { - /** - * Captures a page of {@link BaseRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRatePage"; - - /** - * @access public - * @var BaseRate[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateBaseRates", false)) { - /** - * The action used to deactivate {@link BaseRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivateBaseRates extends BaseRateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateBaseRates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($BaseRateActionType = null) { - parent::__construct(); - $this->BaseRateActionType = $BaseRateActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductBaseRate", false)) { - /** - * A base rate applied to a {@link Product}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductBaseRate extends BaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductBaseRate"; - - /** - * @access public - * @var integer - */ - public $productId; - - /** - * @access public - * @var Money - */ - public $rate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productId = null, $rate = null, $rateCardId = null, $id = null, $status = null, $BaseRateType = null) { - parent::__construct(); - $this->productId = $productId; - $this->rate = $rate; - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; - } - - } -} - -if (!class_exists("ProductTemplateBaseRate", false)) { - /** - * A base rate applied to a {@link ProductTemplate}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductTemplateBaseRate extends BaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductTemplateBaseRate"; - - /** - * @access public - * @var integer - */ - public $productTemplateId; - - /** - * @access public - * @var Money - */ - public $rate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplateId = null, $rate = null, $rateCardId = null, $id = null, $status = null, $BaseRateType = null) { - parent::__construct(); - $this->productTemplateId = $productTemplateId; - $this->rate = $rate; - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateStatus", false)) { - /** - * The status of {@link BaseRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateBaseRate", false)) { - /** - * Creates a new {@link BaseRate} object. - * - * @param baseRate the base rate to be created - * @return the base rate with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $baseRate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRate = null) { - $this->baseRate = $baseRate; - } - - } -} - -if (!class_exists("CreateBaseRateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateBaseRates", false)) { - /** - * Creates a list of new {@link BaseRate} objects. - * - * @param baseRates the base rates to be created - * @return the base rates with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateBaseRates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate[] - */ - public $baseRates; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRates = null) { - $this->baseRates = $baseRates; - } - - } -} - -if (!class_exists("CreateBaseRatesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateBaseRatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetBaseRate", false)) { - /** - * Returns the {@link BaseRate} object uniquely identified by the given ID. - * - * @param baseRateId the ID of the base rate, which must already exist - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $baseRateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRateId = null) { - $this->baseRateId = $baseRateId; - } - - } -} - -if (!class_exists("GetBaseRateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetBaseRatesByStatement", false)) { - /** - * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the page of base rates that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetBaseRatesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetBaseRatesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetBaseRatesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRatePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformBaseRateAction", false)) { - /** - * Performs actions on {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * @param baseRateAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformBaseRateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRateAction - */ - public $baseRateAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRateAction = null, $filterStatement = null) { - $this->baseRateAction = $baseRateAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformBaseRateActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformBaseRateActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateBaseRate", false)) { - /** - * Updates the specified {@link BaseRate} object. - * - * @param baseRate the base rate to be updated - * @return the updated base rate - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $baseRate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRate = null) { - $this->baseRate = $baseRate; - } - - } -} - -if (!class_exists("UpdateBaseRateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateBaseRates", false)) { - /** - * Updates the specified {@link BaseRate} objects. - * - * @param baseRates the base rates to be updated - * @return the updated base rates - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateBaseRates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate[] - */ - public $baseRates; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRates = null) { - $this->baseRates = $baseRates; - } - - } -} - -if (!class_exists("UpdateBaseRatesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateBaseRatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateBaseRates", false)) { - /** - * The action used to activate {@link BaseRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateBaseRates extends BaseRateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateBaseRates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($BaseRateActionType = null) { - parent::__construct(); - $this->BaseRateActionType = $BaseRateActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("BaseRateService", false)) { - /** - * BaseRateService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateService extends DfpSoapClient { - - const SERVICE_NAME = "BaseRateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/BaseRateService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/BaseRateService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateBaseRates" => "ActivateBaseRates", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseRateAction" => "BaseRateAction", - "BaseRateActionError" => "BaseRateActionError", - "BaseRate" => "BaseRate", - "BaseRateError" => "BaseRateError", - "BaseRatePage" => "BaseRatePage", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateBaseRates" => "DeactivateBaseRates", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "ProductBaseRate" => "ProductBaseRate", - "ProductTemplateBaseRate" => "ProductTemplateBaseRate", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateActionError.Reason" => "BaseRateActionErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "BaseRateStatus" => "BaseRateStatus", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createBaseRate" => "CreateBaseRate", - "createBaseRateResponse" => "CreateBaseRateResponse", - "createBaseRates" => "CreateBaseRates", - "createBaseRatesResponse" => "CreateBaseRatesResponse", - "getBaseRate" => "GetBaseRate", - "getBaseRateResponse" => "GetBaseRateResponse", - "getBaseRatesByStatement" => "GetBaseRatesByStatement", - "getBaseRatesByStatementResponse" => "GetBaseRatesByStatementResponse", - "performBaseRateAction" => "PerformBaseRateAction", - "performBaseRateActionResponse" => "PerformBaseRateActionResponse", - "updateBaseRate" => "UpdateBaseRate", - "updateBaseRateResponse" => "UpdateBaseRateResponse", - "updateBaseRates" => "UpdateBaseRates", - "updateBaseRatesResponse" => "UpdateBaseRatesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link BaseRate} object. - * - * @param baseRate the base rate to be created - * @return the base rate with its ID filled in - */ - public function createBaseRate($baseRate) { - $args = new CreateBaseRate($baseRate); - $result = $this->__soapCall("createBaseRate", array($args)); - return $result->rval; - } - /** - * Creates a list of new {@link BaseRate} objects. - * - * @param baseRates the base rates to be created - * @return the base rates with their IDs filled in - */ - public function createBaseRates($baseRates) { - $args = new CreateBaseRates($baseRates); - $result = $this->__soapCall("createBaseRates", array($args)); - return $result->rval; - } - /** - * Returns the {@link BaseRate} object uniquely identified by the given ID. - * - * @param baseRateId the ID of the base rate, which must already exist - */ - public function getBaseRate($baseRateId) { - $args = new GetBaseRate($baseRateId); - $result = $this->__soapCall("getBaseRate", array($args)); - return $result->rval; - } - /** - * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * The following fields are supported for filtering: - * - *
PQL PropertyObject Property
{@code rateCardId}{@link BaseRate#rateCardId}
{@code id}{@link BaseRate#id}
{@code productTemplateId}{@link ProductTemplateBaseRate#id}
Note: Cannot be - * combined with {@code productId}. - *
{@code productId}{@link ProductBaseRate#id}
Note: Cannot be combined with - * {@code productTemplateId}. - *
- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the page of base rates that match the given filter - */ - public function getBaseRatesByStatement($filterStatement) { - $args = new GetBaseRatesByStatement($filterStatement); - $result = $this->__soapCall("getBaseRatesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * @param baseRateAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the result of the action performed - */ - public function performBaseRateAction($baseRateAction, $filterStatement) { - $args = new PerformBaseRateAction($baseRateAction, $filterStatement); - $result = $this->__soapCall("performBaseRateAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link BaseRate} object. - * - * @param baseRate the base rate to be updated - * @return the updated base rate - */ - public function updateBaseRate($baseRate) { - $args = new UpdateBaseRate($baseRate); - $result = $this->__soapCall("updateBaseRate", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link BaseRate} objects. - * - * @param baseRates the base rates to be updated - * @return the updated base rates - */ - public function updateBaseRates($baseRates) { - $args = new UpdateBaseRates($baseRates); - $result = $this->__soapCall("updateBaseRates", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/CompanyService.php b/src/Google/Api/Ads/Dfp/v201306/CompanyService.php deleted file mode 100755 index ffaeec957..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/CompanyService.php +++ /dev/null @@ -1,3841 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Company", false)) { - /** - * A {@code Company} represents an agency, a single advertiser or an entire - * advertising network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Company { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Company"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsCompanyType - */ - public $type; - - /** - * @access public - * @var string - */ - public $address; - - /** - * @access public - * @var string - */ - public $email; - - /** - * @access public - * @var string - */ - public $faxPhone; - - /** - * @access public - * @var string - */ - public $primaryPhone; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $comment; - - /** - * @access public - * @var tnsCompanyCreditStatus - */ - public $creditStatus; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var boolean - */ - public $enableSameAdvertiserCompetitiveExclusion; - - /** - * @access public - * @var integer - */ - public $primaryContactId; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var integer - */ - public $thirdPartyCompanyId; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $type = null, $address = null, $email = null, $faxPhone = null, $primaryPhone = null, $externalId = null, $comment = null, $creditStatus = null, $appliedLabels = null, $enableSameAdvertiserCompetitiveExclusion = null, $primaryContactId = null, $appliedTeamIds = null, $thirdPartyCompanyId = null, $lastModifiedDateTime = null) { - $this->id = $id; - $this->name = $name; - $this->type = $type; - $this->address = $address; - $this->email = $email; - $this->faxPhone = $faxPhone; - $this->primaryPhone = $primaryPhone; - $this->externalId = $externalId; - $this->comment = $comment; - $this->creditStatus = $creditStatus; - $this->appliedLabels = $appliedLabels; - $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; - $this->primaryContactId = $primaryContactId; - $this->appliedTeamIds = $appliedTeamIds; - $this->thirdPartyCompanyId = $thirdPartyCompanyId; - $this->lastModifiedDateTime = $lastModifiedDateTime; - } - - } -} - -if (!class_exists("CompanyError", false)) { - /** - * A list of all errors associated with companies. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyError"; - - /** - * @access public - * @var tnsCompanyErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyPage", false)) { - /** - * Captures a page of {@link Company} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Company[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatus", false)) { - /** - * Specifies the credit-worthiness of the company for which the publisher runs - * an order. By doing so, the publisher can control the running of campaigns - * for the company. A publisher can choose between Basic and Advanced Credit - * Status settings. This feature needs to be enabled in the DoubleClick For - * Publishers web site. Also the kind of setting you need - Basic or Advanced - * must be configured. If Basic is enabled then, the values allowed are - * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values - * are allowed. Choosing an Advanced setting when only the Basic feature has - * been enabled, or using the Basic setting without turning the feature on - * will result in an error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Company.CreditStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyType", false)) { - /** - * The type of the company. Once a company is created, it is not possible to - * change its type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Company.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyErrorReason", false)) { - /** - * Enumerates all possible company specific errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCompanies", false)) { - /** - * Creates new {@link Company} objects. - * - * @param companies the companies to create - * @return the created companies with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCompanies { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $companies; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companies = null) { - $this->companies = $companies; - } - - } -} - -if (!class_exists("CreateCompaniesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCompaniesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCompany", false)) { - /** - * Creates a new {@link Company}. - * - * The following fields are required: - *
    - *
  • {@link Company#name}
  • - *
  • {@link Company#type}
  • - *
- * - * @param company the company to create - * @return the new company with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $company; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($company = null) { - $this->company = $company; - } - - } -} - -if (!class_exists("CreateCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCompaniesByStatement", false)) { - /** - * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - *
PQL PropertyObject Property
{@code rateCardId}{@link BaseRate#rateCardId}
{@code id}{@link BaseRate#id}
{@code productTemplateId}{@link ProductTemplateBaseRate#id}
Note: Cannot be - * combined with {@code productId}. - *
{@code productId}{@link ProductBaseRate#id}
Note: Cannot be combined with - * {@code productTemplateId}. - *
- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Company#id}
{@code name}{@link Company#name}
{@code type}{@link Company#type}
{@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of companies - * @return the companies that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCompaniesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCompaniesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCompaniesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CompanyPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCompany", false)) { - /** - * Returns the {@link Company} uniquely identified by the given ID. - * - * @param companyId ID of the company, which must already exist - * @return the {@code Company} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $companyId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companyId = null) { - $this->companyId = $companyId; - } - - } -} - -if (!class_exists("GetCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCompanies", false)) { - /** - * Updates the specified {@link Company} objects. - * - * @param companies the companies to update - * @return the updated companies - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCompanies { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $companies; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companies = null) { - $this->companies = $companies; - } - - } -} - -if (!class_exists("UpdateCompaniesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCompaniesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCompany", false)) { - /** - * Updates the specified {@link Company}. - * - * @param company the company to update - * @return the updated company - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $company; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($company = null) { - $this->company = $company; - } - - } -} - -if (!class_exists("UpdateCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CompanyService", false)) { - /** - * CompanyService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyService extends DfpSoapClient { - - const SERVICE_NAME = "CompanyService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/CompanyService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/CompanyService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "Company" => "Company", - "CompanyError" => "CompanyError", - "CompanyPage" => "CompanyPage", - "CrossSellError" => "CrossSellError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "Company.CreditStatus" => "CompanyCreditStatus", - "Company.Type" => "CompanyType", - "CompanyError.Reason" => "CompanyErrorReason", - "CrossSellError.Reason" => "CrossSellErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "createCompanies" => "CreateCompanies", - "createCompaniesResponse" => "CreateCompaniesResponse", - "createCompany" => "CreateCompany", - "createCompanyResponse" => "CreateCompanyResponse", - "getCompaniesByStatement" => "GetCompaniesByStatement", - "getCompaniesByStatementResponse" => "GetCompaniesByStatementResponse", - "getCompany" => "GetCompany", - "getCompanyResponse" => "GetCompanyResponse", - "updateCompanies" => "UpdateCompanies", - "updateCompaniesResponse" => "UpdateCompaniesResponse", - "updateCompany" => "UpdateCompany", - "updateCompanyResponse" => "UpdateCompanyResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates new {@link Company} objects. - * - * @param companies the companies to create - * @return the created companies with their IDs filled in - */ - public function createCompanies($companies) { - $args = new CreateCompanies($companies); - $result = $this->__soapCall("createCompanies", array($args)); - return $result->rval; - } - /** - * Creates a new {@link Company}. - * - * The following fields are required: - *
    - *
  • {@link Company#name}
  • - *
  • {@link Company#type}
  • - *
- * - * @param company the company to create - * @return the new company with its ID filled in - */ - public function createCompany($company) { - $args = new CreateCompany($company); - $result = $this->__soapCall("createCompany", array($args)); - return $result->rval; - } - /** - * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Company#id}
{@code name}{@link Company#name}
{@code type}{@link Company#type}
{@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of companies - * @return the companies that match the given filter - */ - public function getCompaniesByStatement($filterStatement) { - $args = new GetCompaniesByStatement($filterStatement); - $result = $this->__soapCall("getCompaniesByStatement", array($args)); - return $result->rval; - } - /** - * Returns the {@link Company} uniquely identified by the given ID. - * - * @param companyId ID of the company, which must already exist - * @return the {@code Company} uniquely identified by the given ID - */ - public function getCompany($companyId) { - $args = new GetCompany($companyId); - $result = $this->__soapCall("getCompany", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Company} objects. - * - * @param companies the companies to update - * @return the updated companies - */ - public function updateCompanies($companies) { - $args = new UpdateCompanies($companies); - $result = $this->__soapCall("updateCompanies", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Company}. - * - * @param company the company to update - * @return the updated company - */ - public function updateCompany($company) { - $args = new UpdateCompany($company); - $result = $this->__soapCall("updateCompany", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ContactService.php b/src/Google/Api/Ads/Dfp/v201306/ContactService.php deleted file mode 100755 index 3f89511d8..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ContactService.php +++ /dev/null @@ -1,3396 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContactError", false)) { - /** - * Errors associated with {@code Contact}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContactError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContactError"; - - /** - * @access public - * @var tnsContactErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContactPage", false)) { - /** - * Captures a page of {@link Contact} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContactPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContactPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Contact[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("BaseContact", false)) { - /** - * Base class for a {@link Contact}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseContact"; - - /** - * @access public - * @var string - */ - public $BaseContactType; - private $_parameterMap = array( - "BaseContact.Type" => "BaseContactType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($BaseContactType = null) { - $this->BaseContactType = $BaseContactType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContactStatus", false)) { - /** - * Describes the contact statuses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContactStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Contact.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContactErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContactErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContactError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateContact", false)) { - /** - * Creates a new {@link Contact}. - * - * The following fields are required: - *
    - *
  • {@link Contact#companyId}
  • - *
  • {@link Contact#name}
  • - *
- * - * @param contact the contact to create - * @return the contact with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $contact; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contact = null) { - $this->contact = $contact; - } - - } -} - -if (!class_exists("CreateContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateContacts", false)) { - /** - * Creates new {@link Contact} objects. - * - * @param contacts the contacts to create - * @return the created contacts with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContacts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $contacts; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contacts = null) { - $this->contacts = $contacts; - } - - } -} - -if (!class_exists("CreateContactsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContactsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContact", false)) { - /** - * Returns the {@link Contact} uniquely identified by the given ID. - * - * @param contactId the ID of the contact, which must already exist - * @return the {@code Contact} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $contactId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contactId = null) { - $this->contactId = $contactId; - } - - } -} - -if (!class_exists("GetContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContactsByStatement", false)) { - /** - * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code name}{@link Contact#name}
{@code email}{@link Contact#email}
{@code id}{@link Contact#id}
{@code comment}{@link Contact#comment}
{@code companyId}{@link Contact#companyId}
{@code title}{@link Contact#title}
{@code cellPhone}{@link Contact#cellPhone}
{@code workPhone}{@link Contact#workPhone}
{@code faxPhone}{@link Contact#faxPhone}
{@code status}{@link Contact#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of contacts - * @return the contacts that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContactsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetContactsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContactsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContactPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContact", false)) { - /** - * Updates the specified {@link Contact}. - * - * @param contact the contact to update - * @return the updated contact - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $contact; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contact = null) { - $this->contact = $contact; - } - - } -} - -if (!class_exists("UpdateContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContacts", false)) { - /** - * Updates the specified {@link Contact} objects. - * - * @param contacts the contacts to update - * @return the updated contacts - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContacts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $contacts; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contacts = null) { - $this->contacts = $contacts; - } - - } -} - -if (!class_exists("UpdateContactsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContactsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Contact", false)) { - /** - * A {@code Contact} represents a person who is affiliated with a single - * {@link Company}. A contact can have a variety of contact information - * associated to it, and can be invited to view their company's orders, line - * items, creatives, and reports. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Contact extends BaseContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Contact"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var integer - */ - public $companyId; - - /** - * @access public - * @var tnsContactStatus - */ - public $status; - - /** - * @access public - * @var string - */ - public $address; - - /** - * @access public - * @var string - */ - public $cellPhone; - - /** - * @access public - * @var string - */ - public $comment; - - /** - * @access public - * @var string - */ - public $email; - - /** - * @access public - * @var string - */ - public $faxPhone; - - /** - * @access public - * @var string - */ - public $title; - - /** - * @access public - * @var string - */ - public $workPhone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $companyId = null, $status = null, $address = null, $cellPhone = null, $comment = null, $email = null, $faxPhone = null, $title = null, $workPhone = null, $BaseContactType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->companyId = $companyId; - $this->status = $status; - $this->address = $address; - $this->cellPhone = $cellPhone; - $this->comment = $comment; - $this->email = $email; - $this->faxPhone = $faxPhone; - $this->title = $title; - $this->workPhone = $workPhone; - $this->BaseContactType = $BaseContactType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ContactService", false)) { - /** - * ContactService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContactService extends DfpSoapClient { - - const SERVICE_NAME = "ContactService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ContactService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ContactService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Contact" => "Contact", - "ContactError" => "ContactError", - "ContactPage" => "ContactPage", - "BaseContact" => "BaseContact", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "Contact.Status" => "ContactStatus", - "ContactError.Reason" => "ContactErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createContact" => "CreateContact", - "createContactResponse" => "CreateContactResponse", - "createContacts" => "CreateContacts", - "createContactsResponse" => "CreateContactsResponse", - "getContact" => "GetContact", - "getContactResponse" => "GetContactResponse", - "getContactsByStatement" => "GetContactsByStatement", - "getContactsByStatementResponse" => "GetContactsByStatementResponse", - "updateContact" => "UpdateContact", - "updateContactResponse" => "UpdateContactResponse", - "updateContacts" => "UpdateContacts", - "updateContactsResponse" => "UpdateContactsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Contact}. - * - * The following fields are required: - *
    - *
  • {@link Contact#companyId}
  • - *
  • {@link Contact#name}
  • - *
- * - * @param contact the contact to create - * @return the contact with its ID filled in - */ - public function createContact($contact) { - $args = new CreateContact($contact); - $result = $this->__soapCall("createContact", array($args)); - return $result->rval; - } - /** - * Creates new {@link Contact} objects. - * - * @param contacts the contacts to create - * @return the created contacts with their IDs filled in - */ - public function createContacts($contacts) { - $args = new CreateContacts($contacts); - $result = $this->__soapCall("createContacts", array($args)); - return $result->rval; - } - /** - * Returns the {@link Contact} uniquely identified by the given ID. - * - * @param contactId the ID of the contact, which must already exist - * @return the {@code Contact} uniquely identified by the given ID - */ - public function getContact($contactId) { - $args = new GetContact($contactId); - $result = $this->__soapCall("getContact", array($args)); - return $result->rval; - } - /** - * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code name}{@link Contact#name}
{@code email}{@link Contact#email}
{@code id}{@link Contact#id}
{@code comment}{@link Contact#comment}
{@code companyId}{@link Contact#companyId}
{@code title}{@link Contact#title}
{@code cellPhone}{@link Contact#cellPhone}
{@code workPhone}{@link Contact#workPhone}
{@code faxPhone}{@link Contact#faxPhone}
{@code status}{@link Contact#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of contacts - * @return the contacts that match the given filter - */ - public function getContactsByStatement($statement) { - $args = new GetContactsByStatement($statement); - $result = $this->__soapCall("getContactsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Contact}. - * - * @param contact the contact to update - * @return the updated contact - */ - public function updateContact($contact) { - $args = new UpdateContact($contact); - $result = $this->__soapCall("updateContact", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Contact} objects. - * - * @param contacts the contacts to update - * @return the updated contacts - */ - public function updateContacts($contacts) { - $args = new UpdateContacts($contacts); - $result = $this->__soapCall("updateContacts", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php deleted file mode 100755 index c669dc072..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ContentBundleService.php +++ /dev/null @@ -1,3437 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentBundleAction", false)) { - /** - * Represents the actions that can be performed on {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentBundleAction"; - - /** - * @access public - * @var string - */ - public $ContentBundleActionType; - private $_parameterMap = array( - "ContentBundleAction.Type" => "ContentBundleActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ContentBundleActionType = null) { - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("ContentBundle", false)) { - /** - * A {@code ContentBundle} is a grouping of individual {@link Content}. A {@code ContentBundle} is - * defined as including the {@code Content} that match certain filter rules, along with the - * option to explicitly include or exclude certain {@code Content} IDs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentBundle"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var tnsContentBundleStatus - */ - public $status; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $status = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->status = $status; - } - - } -} - -if (!class_exists("ContentBundlePage", false)) { - /** - * Captures a page of {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentBundlePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentBundlePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ContentBundle[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateContentBundles", false)) { - /** - * The action used for deactivating {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivateContentBundles extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateContentBundles"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ContentBundleActionType = null) { - parent::__construct(); - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("ExcludeContentFromContentBundle", false)) { - /** - * The action used for explicitly excluding specific content from a {@link ContentBundle} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ExcludeContentFromContentBundle extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ExcludeContentFromContentBundle"; - - /** - * @access public - * @var Statement - */ - public $contentStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentStatement = null, $ContentBundleActionType = null) { - parent::__construct(); - $this->contentStatement = $contentStatement; - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("IncludeContentInContentBundle", false)) { - /** - * The action used for explicitly including specific content in a {@link ContentBundle} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class IncludeContentInContentBundle extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "IncludeContentInContentBundle"; - - /** - * @access public - * @var Statement - */ - public $contentStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentStatement = null, $ContentBundleActionType = null) { - parent::__construct(); - $this->contentStatement = $contentStatement; - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementError", false)) { - /** - * Class defining all validation errors for a placement. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PlacementError"; - - /** - * @access public - * @var tnsPlacementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentBundleStatus", false)) { - /** - * Status for {@code ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentBundleStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentBundleStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PlacementErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PlacementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateContentBundle", false)) { - /** - * Creates a new {@link ContentBundle}. - * - * These fields are required: - *
    - *
  • {@link ContentBundle#name}
  • - *
  • {@link ContentBundle#description}
  • - *
- * - * @param contentBundle the content bundle to create - * @return the content bundle with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $contentBundle; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundle = null) { - $this->contentBundle = $contentBundle; - } - - } -} - -if (!class_exists("CreateContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateContentBundles", false)) { - /** - * Creates new {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to create - * @return the created content bundles with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContentBundles { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $contentBundles; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundles = null) { - $this->contentBundles = $contentBundles; - } - - } -} - -if (!class_exists("CreateContentBundlesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateContentBundlesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContentBundle", false)) { - /** - * Returns the {@link ContentBundle} uniquely identified by the given ID. - * - * @param contentBundleId the ID of the content bundle, which must already exist - * @return the {@code ContentBundle} uniquely identified by the given ID - * @throws ApiException if there were errors, such as invalid ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $contentBundleId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundleId = null) { - $this->contentBundleId = $contentBundleId; - } - - } -} - -if (!class_exists("GetContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContentBundlesByStatement", false)) { - /** - * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ContentBundle#id}
{@code name}{@link ContentBundle#name}
{@code status}{@link ContentBundle#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the content bundles that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentBundlesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetContentBundlesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentBundlesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundlePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformContentBundleAction", false)) { - /** - * Performs actions on {@link ContentBundle} objects that match the given - * {@link Statement#query}. - * - * @param contentBundleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundleAction - */ - public $contentBundleAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundleAction = null, $filterStatement = null) { - $this->contentBundleAction = $contentBundleAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformContentBundleActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformContentBundleActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContentBundle", false)) { - /** - * Updates the specified {@link ContentBundle}. - * - * @param contentBundle the content bundle to update - * @return the updated content bundle - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $contentBundle; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundle = null) { - $this->contentBundle = $contentBundle; - } - - } -} - -if (!class_exists("UpdateContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContentBundles", false)) { - /** - * Updates the specified {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to update - * @return the updated content bundles - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContentBundles { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $contentBundles; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundles = null) { - $this->contentBundles = $contentBundles; - } - - } -} - -if (!class_exists("UpdateContentBundlesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateContentBundlesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateContentBundles", false)) { - /** - * The action used for activating {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateContentBundles extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateContentBundles"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ContentBundleActionType = null) { - parent::__construct(); - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ContentBundleService", false)) { - /** - * ContentBundleService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentBundleService extends DfpSoapClient { - - const SERVICE_NAME = "ContentBundleService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ContentBundleService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ContentBundleService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateContentBundles" => "ActivateContentBundles", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ContentBundleAction" => "ContentBundleAction", - "ContentBundle" => "ContentBundle", - "ContentBundlePage" => "ContentBundlePage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateContentBundles" => "DeactivateContentBundles", - "ExcludeContentFromContentBundle" => "ExcludeContentFromContentBundle", - "FeatureError" => "FeatureError", - "IncludeContentInContentBundle" => "IncludeContentInContentBundle", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PlacementError" => "PlacementError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "ContentBundleStatus" => "ContentBundleStatus", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PlacementError.Reason" => "PlacementErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createContentBundle" => "CreateContentBundle", - "createContentBundleResponse" => "CreateContentBundleResponse", - "createContentBundles" => "CreateContentBundles", - "createContentBundlesResponse" => "CreateContentBundlesResponse", - "getContentBundle" => "GetContentBundle", - "getContentBundleResponse" => "GetContentBundleResponse", - "getContentBundlesByStatement" => "GetContentBundlesByStatement", - "getContentBundlesByStatementResponse" => "GetContentBundlesByStatementResponse", - "performContentBundleAction" => "PerformContentBundleAction", - "performContentBundleActionResponse" => "PerformContentBundleActionResponse", - "updateContentBundle" => "UpdateContentBundle", - "updateContentBundleResponse" => "UpdateContentBundleResponse", - "updateContentBundles" => "UpdateContentBundles", - "updateContentBundlesResponse" => "UpdateContentBundlesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ContentBundle}. - * - * These fields are required: - *
    - *
  • {@link ContentBundle#name}
  • - *
  • {@link ContentBundle#description}
  • - *
- * - * @param contentBundle the content bundle to create - * @return the content bundle with its ID filled in - */ - public function createContentBundle($contentBundle) { - $args = new CreateContentBundle($contentBundle); - $result = $this->__soapCall("createContentBundle", array($args)); - return $result->rval; - } - /** - * Creates new {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to create - * @return the created content bundles with their IDs filled in - */ - public function createContentBundles($contentBundles) { - $args = new CreateContentBundles($contentBundles); - $result = $this->__soapCall("createContentBundles", array($args)); - return $result->rval; - } - /** - * Returns the {@link ContentBundle} uniquely identified by the given ID. - * - * @param contentBundleId the ID of the content bundle, which must already exist - * @return the {@code ContentBundle} uniquely identified by the given ID - * @throws ApiException if there were errors, such as invalid ID - */ - public function getContentBundle($contentBundleId) { - $args = new GetContentBundle($contentBundleId); - $result = $this->__soapCall("getContentBundle", array($args)); - return $result->rval; - } - /** - * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ContentBundle#id}
{@code name}{@link ContentBundle#name}
{@code status}{@link ContentBundle#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the content bundles that match the given filter - */ - public function getContentBundlesByStatement($filterStatement) { - $args = new GetContentBundlesByStatement($filterStatement); - $result = $this->__soapCall("getContentBundlesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link ContentBundle} objects that match the given - * {@link Statement#query}. - * - * @param contentBundleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the result of the action performed - */ - public function performContentBundleAction($contentBundleAction, $filterStatement) { - $args = new PerformContentBundleAction($contentBundleAction, $filterStatement); - $result = $this->__soapCall("performContentBundleAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ContentBundle}. - * - * @param contentBundle the content bundle to update - * @return the updated content bundle - */ - public function updateContentBundle($contentBundle) { - $args = new UpdateContentBundle($contentBundle); - $result = $this->__soapCall("updateContentBundle", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to update - * @return the updated content bundles - */ - public function updateContentBundles($contentBundles) { - $args = new UpdateContentBundles($contentBundles); - $result = $this->__soapCall("updateContentBundles", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ContentService.php b/src/Google/Api/Ads/Dfp/v201306/ContentService.php deleted file mode 100755 index 31d71b54a..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ContentService.php +++ /dev/null @@ -1,3082 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CmsContent", false)) { - /** - * Contains information about {@link Content} from the CMS it was ingested from. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CmsContent { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CmsContent"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var string - */ - public $cmsContentId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $displayName = null, $cmsContentId = null) { - $this->id = $id; - $this->displayName = $displayName; - $this->cmsContentId = $cmsContentId; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Content", false)) { - /** - * A {@code Content} represents video metadata from a publisher's - * Content Management System (CMS) that has been synced to DFP. - *

- * Video line items can be targeted to {@code Content} - * to indicate what ads should match when the {@code Content} is being played. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Content { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Content"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsContentStatus - */ - public $status; - - /** - * @access public - * @var tnsContentStatusDefinedBy - */ - public $statusDefinedBy; - - /** - * @access public - * @var integer[] - */ - public $userDefinedCustomTargetingValueIds; - - /** - * @access public - * @var integer[] - */ - public $mappingRuleDefinedCustomTargetingValueIds; - - /** - * @access public - * @var CmsContent[] - */ - public $cmsSources; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $status = null, $statusDefinedBy = null, $userDefinedCustomTargetingValueIds = null, $mappingRuleDefinedCustomTargetingValueIds = null, $cmsSources = null) { - $this->id = $id; - $this->name = $name; - $this->status = $status; - $this->statusDefinedBy = $statusDefinedBy; - $this->userDefinedCustomTargetingValueIds = $userDefinedCustomTargetingValueIds; - $this->mappingRuleDefinedCustomTargetingValueIds = $mappingRuleDefinedCustomTargetingValueIds; - $this->cmsSources = $cmsSources; - } - - } -} - -if (!class_exists("ContentPage", false)) { - /** - * Captures a page of {@code Content} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Content[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ContentPartnerError", false)) { - /** - * The content partner related validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentPartnerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentPartnerError"; - - /** - * @access public - * @var tnsContentPartnerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentPartnerErrorReason", false)) { - /** - * Describes reason for {@code ContentPartnerError}s. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentPartnerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentPartnerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentStatus", false)) { - /** - * Describes the status of a {@link Content} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentStatusDefinedBy", false)) { - /** - * Describes who defined the effective status of the {@code Content}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentStatusDefinedBy { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentStatusDefinedBy"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetContentByStatement", false)) { - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @return the content that matches the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetContentByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContentByStatementAndCustomTargetingValue", false)) { - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. Additionally, filters on the given value ID - * and key ID that the value belongs to. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @param customTargetingValueId the id of the value to match - * @return the content that matches the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentByStatementAndCustomTargetingValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * @access public - * @var integer - */ - public $customTargetingValueId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null, $customTargetingValueId = null) { - $this->filterStatement = $filterStatement; - $this->customTargetingValueId = $customTargetingValueId; - } - - } -} - -if (!class_exists("GetContentByStatementAndCustomTargetingValueResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetContentByStatementAndCustomTargetingValueResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ContentService", false)) { - /** - * ContentService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentService extends DfpSoapClient { - - const SERVICE_NAME = "ContentService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ContentService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ContentService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CmsContent" => "CmsContent", - "CommonError" => "CommonError", - "Content" => "Content", - "ContentPage" => "ContentPage", - "ContentPartnerError" => "ContentPartnerError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "ContentPartnerError.Reason" => "ContentPartnerErrorReason", - "ContentStatus" => "ContentStatus", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "ContentStatusDefinedBy" => "ContentStatusDefinedBy", - "StringLengthError.Reason" => "StringLengthErrorReason", - "getContentByStatement" => "GetContentByStatement", - "getContentByStatementResponse" => "GetContentByStatementResponse", - "getContentByStatementAndCustomTargetingValue" => "GetContentByStatementAndCustomTargetingValue", - "getContentByStatementAndCustomTargetingValueResponse" => "GetContentByStatementAndCustomTargetingValueResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @return the content that matches the given filter - */ - public function getContentByStatement($statement) { - $args = new GetContentByStatement($statement); - $result = $this->__soapCall("getContentByStatement", array($args)); - return $result->rval; - } - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. Additionally, filters on the given value ID - * and key ID that the value belongs to. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @param customTargetingValueId the id of the value to match - * @return the content that matches the given filter - */ - public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { - $args = new GetContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); - $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeService.php deleted file mode 100755 index 9d727f4bb..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/CreativeService.php +++ /dev/null @@ -1,8425 +0,0 @@ - "BaseCreativeTemplateVariableValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AssetCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AssetCreativeTemplateVariableValue"; - - /** - * @access public - * @var integer - */ - public $assetId; - - /** - * @access public - * @var base64Binary - */ - public $assetByteArray; - - /** - * @access public - * @var string - */ - public $fileName; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetId = null, $assetByteArray = null, $fileName = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->assetId = $assetId; - $this->assetByteArray = $assetByteArray; - $this->fileName = $fileName; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("Asset", false)) { - /** - * Base asset properties. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Asset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Asset"; - - /** - * @access public - * @var string - */ - public $AssetType; - private $_parameterMap = array( - "Asset.Type" => "AssetType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AssetType = null) { - $this->AssetType = $AssetType; - } - - } -} - -if (!class_exists("AssetError", false)) { - /** - * Lists all errors associated with assets. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AssetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AssetError"; - - /** - * @access public - * @var tnsAssetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ConversionEvent_TrackingUrlsMapEntry", false)) { - /** - * This represents an entry in a map with a key of type ConversionEvent - * and value of type TrackingUrls. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ConversionEvent_TrackingUrlsMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ConversionEvent_TrackingUrlsMapEntry"; - - /** - * @access public - * @var tnsConversionEvent - */ - public $key; - - /** - * @access public - * @var TrackingUrls - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("CreativeAsset", false)) { - /** - * A {@code CreativeAsset} is an asset that can be used in creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeAsset"; - - /** - * @access public - * @var integer - */ - public $assetId; - - /** - * @access public - * @var base64Binary - */ - public $assetByteArray; - - /** - * @access public - * @var string - */ - public $fileName; - - /** - * @access public - * @var integer - */ - public $fileSize; - - /** - * @access public - * @var string - */ - public $assetUrl; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var tnsImageDensity - */ - public $imageDensity; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetId = null, $assetByteArray = null, $fileName = null, $fileSize = null, $assetUrl = null, $size = null, $imageDensity = null) { - $this->assetId = $assetId; - $this->assetByteArray = $assetByteArray; - $this->fileName = $fileName; - $this->fileSize = $fileSize; - $this->assetUrl = $assetUrl; - $this->size = $size; - $this->imageDensity = $imageDensity; - } - - } -} - -if (!class_exists("CustomCreativeAsset", false)) { - /** - * A {@code CustomCreativeAsset} is an association between a - * {@link CustomCreative} and an asset. Any assets that are associated with a - * creative can be inserted into its HTML snippet. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCreativeAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCreativeAsset"; - - /** - * @access public - * @var string - */ - public $macroName; - - /** - * @access public - * @var integer - */ - public $assetId; - - /** - * @access public - * @var base64Binary - */ - public $assetByteArray; - - /** - * @access public - * @var string - */ - public $fileName; - - /** - * @access public - * @var integer - */ - public $fileSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($macroName = null, $assetId = null, $assetByteArray = null, $fileName = null, $fileSize = null) { - $this->macroName = $macroName; - $this->assetId = $assetId; - $this->assetByteArray = $assetByteArray; - $this->fileName = $fileName; - $this->fileSize = $fileSize; - } - - } -} - -if (!class_exists("CreativeAssetMacroError", false)) { - /** - * Lists all errors associated with creative asset macros. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeAssetMacroError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeAssetMacroError"; - - /** - * @access public - * @var tnsCreativeAssetMacroErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Creative", false)) { - /** - * A {@code Creative} represents the media for the ad being served. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Creative"; - - /** - * @access public - * @var integer - */ - public $advertiserId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var string - */ - public $previewUrl; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var string - */ - public $CreativeType; - private $_parameterMap = array( - "Creative.Type" => "CreativeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePage", false)) { - /** - * Captures a page of {@link Creative} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Creative[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CreativeSetError", false)) { - /** - * Errors relating to creative sets & subclasses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeSetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeSetError"; - - /** - * @access public - * @var tnsCreativeSetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCreativeError", false)) { - /** - * Lists all errors associated with custom creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCreativeError"; - - /** - * @access public - * @var tnsCustomCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("HasDestinationUrlCreative", false)) { - /** - * A {@code Creative} that has a destination url - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class HasDestinationUrlCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "HasDestinationUrlCreative"; - - /** - * @access public - * @var string - */ - public $destinationUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($destinationUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->destinationUrl = $destinationUrl; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("ImageError", false)) { - /** - * Lists all errors associated with images. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ImageError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ImageError"; - - /** - * @access public - * @var tnsImageErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalRedirectCreative", false)) { - /** - * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART - * for Publishers. - *

- * Similar to third-party creatives, a DoubleClick tag is used to retrieve a - * creative asset. However, DoubleClick tags are not sent to the user's browser. - * Instead, they are processed internally within the DoubleClick system.. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalRedirectCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalRedirectCreative"; - - /** - * @access public - * @var Size - */ - public $assetSize; - - /** - * @access public - * @var string - */ - public $internalRedirectUrl; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetSize = null, $internalRedirectUrl = null, $overrideSize = null, $isInterstitial = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->assetSize = $assetSize; - $this->internalRedirectUrl = $internalRedirectUrl; - $this->overrideSize = $overrideSize; - $this->isInterstitial = $isInterstitial; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("InvalidPhoneNumberError", false)) { - /** - * Lists all errors associated with phone numbers. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidPhoneNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidPhoneNumberError"; - - /** - * @access public - * @var tnsInvalidPhoneNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LegacyDfpCreative", false)) { - /** - * A {@code Creative} that isn't supported by Google DFP, but was migrated - * from DART. Creatives of this type cannot be created or modified. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LegacyDfpCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LegacyDfpCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LongCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LongCreativeTemplateVariableValue"; - - /** - * @access public - * @var integer - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->value = $value; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RedirectAsset", false)) { - /** - * An externally hosted asset. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RedirectAsset extends Asset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RedirectAsset"; - - /** - * @access public - * @var string - */ - public $redirectUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($redirectUrl = null, $AssetType = null) { - parent::__construct(); - $this->redirectUrl = $redirectUrl; - $this->AssetType = $AssetType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RichMediaStudioChildAssetProperty", false)) { - /** - * Represents a child asset in {@code RichMediaStudioCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioChildAssetProperty { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioChildAssetProperty"; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsRichMediaStudioChildAssetPropertyType - */ - public $type; - - /** - * @access public - * @var integer - */ - public $totalFileSize; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var string - */ - public $url; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($name = null, $type = null, $totalFileSize = null, $width = null, $height = null, $url = null) { - $this->name = $name; - $this->type = $type; - $this->totalFileSize = $totalFileSize; - $this->width = $width; - $this->height = $height; - $this->url = $url; - } - - } -} - -if (!class_exists("RichMediaStudioCreativeError", false)) { - /** - * Lists all errors associated with Rich Media Studio creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioCreativeError"; - - /** - * @access public - * @var tnsRichMediaStudioCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of - * {@link VariableType#STRING} and {@link VariableType#LIST}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringCreativeTemplateVariableValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->value = $value; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SwiffyConversionError", false)) { - /** - * Error for converting flash to swiffy asset. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SwiffyConversionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SwiffyConversionError"; - - /** - * @access public - * @var tnsSwiffyConversionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SwiffyFallbackAsset", false)) { - /** - * A fallback swiffy asset used for flash creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SwiffyFallbackAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SwiffyFallbackAsset"; - - /** - * @access public - * @var CreativeAsset - */ - public $asset; - - /** - * @access public - * @var tnsHtml5Feature[] - */ - public $html5Features; - - /** - * @access public - * @var string[] - */ - public $localizedInfoMessages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($asset = null, $html5Features = null, $localizedInfoMessages = null) { - $this->asset = $asset; - $this->html5Features = $html5Features; - $this->localizedInfoMessages = $localizedInfoMessages; - } - - } -} - -if (!class_exists("TemplateCreative", false)) { - /** - * A {@code Creative} that is created by the specified creative template. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TemplateCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TemplateCreative"; - - /** - * @access public - * @var integer - */ - public $creativeTemplateId; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * @access public - * @var string - */ - public $destinationUrl; - - /** - * @access public - * @var BaseCreativeTemplateVariableValue[] - */ - public $creativeTemplateVariableValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeTemplateId = null, $isInterstitial = null, $destinationUrl = null, $creativeTemplateVariableValues = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->creativeTemplateId = $creativeTemplateId; - $this->isInterstitial = $isInterstitial; - $this->destinationUrl = $destinationUrl; - $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeError", false)) { - /** - * Lists all errors associated with template instantiated creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TemplateInstantiatedCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; - - /** - * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ThirdPartyCreative", false)) { - /** - * A {@code Creative} that is served by a 3rd-party vendor. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ThirdPartyCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ThirdPartyCreative"; - - /** - * @access public - * @var string - */ - public $snippet; - - /** - * @access public - * @var string - */ - public $expandedSnippet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($snippet = null, $expandedSnippet = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->snippet = $snippet; - $this->expandedSnippet = $expandedSnippet; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("TrackingUrls", false)) { - /** - * A list of URLs that should be pinged for a conversion event. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TrackingUrls { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TrackingUrls"; - - /** - * @access public - * @var string[] - */ - public $urls; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($urls = null) { - $this->urls = $urls; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnsupportedCreative", false)) { - /** - * A {@code Creative} that isn't supported by this version of the API. - * This object is readonly and when encountered should be reported - * on the DFP API forum. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnsupportedCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnsupportedCreative"; - - /** - * @access public - * @var string - */ - public $unsupportedCreativeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($unsupportedCreativeType = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->unsupportedCreativeType = $unsupportedCreativeType; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("UrlCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UrlCreativeTemplateVariableValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->value = $value; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VastRedirectCreative", false)) { - /** - * A {@code Creative} that points to an externally hosted VAST ad and is - * served via VAST XML as a VAST Wrapper. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VastRedirectCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VastRedirectCreative"; - - /** - * @access public - * @var string - */ - public $vastXmlUrl; - - /** - * @access public - * @var tnsVastRedirectType - */ - public $vastRedirectType; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($vastXmlUrl = null, $vastRedirectType = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $vastPreviewUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->vastXmlUrl = $vastXmlUrl; - $this->vastRedirectType = $vastRedirectType; - $this->duration = $duration; - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("VideoRedirectAsset", false)) { - /** - * An externally-hosted video asset. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoRedirectAsset extends RedirectAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoRedirectAsset"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($redirectUrl = null) { - parent::__construct(); - $this->redirectUrl = $redirectUrl; - } - - } -} - -if (!class_exists("VpaidLinearCreative", false)) { - /** - * A {@code Creative} that displays a DFP-hosted Flash-based ad - * and is served via VAST 2.0 XML. It is displayed in a linear fashion - * with a video (before, after, interrupting). This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VpaidLinearCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VpaidLinearCreative"; - - /** - * @access public - * @var string - */ - public $flashName; - - /** - * @access public - * @var base64Binary - */ - public $flashByteArray; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashName = null, $flashByteArray = null, $overrideSize = null, $flashAssetSize = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->overrideSize = $overrideSize; - $this->flashAssetSize = $flashAssetSize; - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->duration = $duration; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("VpaidLinearRedirectCreative", false)) { - /** - * A {@code Creative} that displays an externally hosted Flash-based ad - * and is served via VAST 2.0 XML. It is displayed in a linear fashion - * with a video (before, after, interrupting). This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VpaidLinearRedirectCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $flashUrl; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $flashUrl = null, $flashAssetSize = null, $destinationUrl = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->duration = $duration; - $this->flashUrl = $flashUrl; - $this->flashAssetSize = $flashAssetSize; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("ApiFramework", false)) { - /** - * The various ApiFramework types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiFramework { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiFramework"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AssetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AssetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AssetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ConversionEvent", false)) { - /** - * All possible tracking event types. Not all events are supported by every - * kind of creative. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ConversionEvent { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ConversionEvent"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeAssetMacroErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeAssetMacroErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeAssetMacroError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeSetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeSetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Html5Feature", false)) { - /** - * An HTML5 features required by HTML5 assets. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Html5Feature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Html5Feature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ImageDensity", false)) { - /** - * Image densities. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ImageDensity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ImageDensity"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ImageErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ImageErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ImageError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidPhoneNumberErrorReason", false)) { - /** - * The phone number is invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidPhoneNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidPhoneNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioChildAssetPropertyType", false)) { - /** - * Type of {@code RichMediaStudioChildAssetProperty} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioChildAssetPropertyType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioChildAssetProperty.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeArtworkType", false)) { - /** - * Rich Media Studio creative artwork types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioCreativeArtworkType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioCreativeArtworkType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeBillingAttribute", false)) { - /** - * Rich Media Studio creative supported billing attributes. - *

- * This is determined by Rich Media Studio based on the content - * of the creative and is not updateable. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioCreativeBillingAttribute { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioCreativeBillingAttribute"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeFormat", false)) { - /** - * Different creative format supported by Rich Media Studio creative. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioCreativeFormat { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioCreativeFormat"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("SwiffyConversionErrorReason", false)) { - /** - * Error reason for {@link SwiffyConversionError}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SwiffyConversionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SwiffyConversionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { - /** - * The reason for the error - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TemplateInstantiatedCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VastRedirectType", false)) { - /** - * The types of VAST ads that a {@link VastRedirectCreative} can point to. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VastRedirectType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VastRedirectType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCreative", false)) { - /** - * Creates a new {@link Creative}. - * - * The following fields are required along with the required fields of the - * sub-class: - *

    - *
  • {@link Creative#advertiserId}
  • - *
  • {@link Creative#name}
  • - *
  • {@link Creative#size}
  • - *
- * - * @param creative the creative to create - * @return the new creative with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $creative; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creative = null) { - $this->creative = $creative; - } - - } -} - -if (!class_exists("CreateCreativeResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreativeResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCreatives", false)) { - /** - * Creates new {@link Creative} objects. - * - * @param creatives the creatives to create - * @return the created creatives with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreatives { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $creatives; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creatives = null) { - $this->creatives = $creatives; - } - - } -} - -if (!class_exists("CreateCreativesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreativesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreative", false)) { - /** - * Returns the {@link Creative} uniquely identified by the given ID. - * - * @param creativeId the ID of the creative, which must already exist - * @return the {@code Creative} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeId = null) { - $this->creativeId = $creativeId; - } - - } -} - -if (!class_exists("GetCreativeResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativesByStatement", false)) { - /** - * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Creative#id}
{@code name}{@link Creative#name}
{@code advertiserId}{@link Creative#advertiserId}
{@code width}{@link Creative#size}
{@code height}{@link Creative#size}
{@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creatives - * @return the creatives that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCreativesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreative", false)) { - /** - * Updates the specified {@link Creative}. - * - * @param creative the creative to update - * @return the updated creative - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $creative; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creative = null) { - $this->creative = $creative; - } - - } -} - -if (!class_exists("UpdateCreativeResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreativeResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreatives", false)) { - /** - * Updates the specified {@link Creative} objects. - * - * @param creatives the creatives to update - * @return the updated creatives - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreatives { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $creatives; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creatives = null) { - $this->creatives = $creatives; - } - - } -} - -if (!class_exists("UpdateCreativesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreativesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("BaseDynamicAllocationCreative", false)) { - /** - * A base class for dynamic allocation creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseDynamicAllocationCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseDynamicAllocationCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AspectRatioImageCreative", false)) { - /** - * A {@code Creative} intended for mobile platforms that displays an image, - * whose {@link LineItem#creativePlaceholders size} is defined as an - * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. - * {@link Size#isAspectRatio}. It can have multiple images whose dimensions - * conform to that aspect ratio. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AspectRatioImageCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AspectRatioImageCreative"; - - /** - * @access public - * @var CreativeAsset[] - */ - public $imageAssets; - - /** - * @access public - * @var string - */ - public $altText; - - /** - * @access public - * @var string - */ - public $thirdPartyImpressionUrl; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($imageAssets = null, $altText = null, $thirdPartyImpressionUrl = null, $overrideSize = null, $destinationUrl = null) { - parent::__construct(); - $this->imageAssets = $imageAssets; - $this->altText = $altText; - $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; - $this->overrideSize = $overrideSize; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseFlashCreative", false)) { - /** - * A base type for creatives that display a Flash-based ad. If the Flash ad - * cannot load, a fallback image is displayed instead. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseFlashCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseFlashCreative"; - - /** - * @access public - * @var string - */ - public $flashName; - - /** - * @access public - * @var base64Binary - */ - public $flashByteArray; - - /** - * @access public - * @var string - */ - public $fallbackImageName; - - /** - * @access public - * @var base64Binary - */ - public $fallbackImageByteArray; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var boolean - */ - public $clickTagRequired; - - /** - * @access public - * @var string - */ - public $fallbackPreviewUrl; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * @access public - * @var Size - */ - public $fallbackAssetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $destinationUrl = null) { - parent::__construct(); - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->fallbackImageName = $fallbackImageName; - $this->fallbackImageByteArray = $fallbackImageByteArray; - $this->overrideSize = $overrideSize; - $this->clickTagRequired = $clickTagRequired; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->flashAssetSize = $flashAssetSize; - $this->fallbackAssetSize = $fallbackAssetSize; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseFlashRedirectCreative", false)) { - /** - * The base type for creatives that load a Flash asset from a specified URL. - * If the remote flash asset cannot be served, a fallback image is used at an - * alternate URL. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseFlashRedirectCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseFlashRedirectCreative"; - - /** - * @access public - * @var string - */ - public $flashUrl; - - /** - * @access public - * @var string - */ - public $fallbackUrl; - - /** - * @access public - * @var string - */ - public $fallbackPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->flashUrl = $flashUrl; - $this->fallbackUrl = $fallbackUrl; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseImageCreative", false)) { - /** - * The base type for creatives that display an image. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseImageCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseImageCreative"; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var CreativeAsset - */ - public $primaryImageAsset; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($overrideSize = null, $primaryImageAsset = null, $destinationUrl = null) { - parent::__construct(); - $this->overrideSize = $overrideSize; - $this->primaryImageAsset = $primaryImageAsset; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseImageRedirectCreative", false)) { - /** - * The base type for creatives that load an image asset from a specified URL. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseImageRedirectCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseImageRedirectCreative"; - - /** - * @access public - * @var string - */ - public $imageUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($imageUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->imageUrl = $imageUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseRichMediaStudioCreative", false)) { - /** - * A {@code Creative} that is created by a Rich Media Studio. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRichMediaStudioCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRichMediaStudioCreative"; - - /** - * @access public - * @var integer - */ - public $studioCreativeId; - - /** - * @access public - * @var tnsRichMediaStudioCreativeFormat - */ - public $creativeFormat; - - /** - * @access public - * @var tnsRichMediaStudioCreativeArtworkType - */ - public $artworkType; - - /** - * @access public - * @var integer - */ - public $totalFileSize; - - /** - * @access public - * @var string[] - */ - public $adTagKeys; - - /** - * @access public - * @var string[] - */ - public $customKeyValues; - - /** - * @access public - * @var string - */ - public $surveyUrl; - - /** - * @access public - * @var string - */ - public $allImpressionsUrl; - - /** - * @access public - * @var string - */ - public $richMediaImpressionsUrl; - - /** - * @access public - * @var string - */ - public $backupImageImpressionsUrl; - - /** - * @access public - * @var string - */ - public $overrideCss; - - /** - * @access public - * @var string - */ - public $requiredFlashPluginVersion; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var tnsRichMediaStudioCreativeBillingAttribute - */ - public $billingAttribute; - - /** - * @access public - * @var RichMediaStudioChildAssetProperty[] - */ - public $richMediaStudioChildAssetProperties; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->studioCreativeId = $studioCreativeId; - $this->creativeFormat = $creativeFormat; - $this->artworkType = $artworkType; - $this->totalFileSize = $totalFileSize; - $this->adTagKeys = $adTagKeys; - $this->customKeyValues = $customKeyValues; - $this->surveyUrl = $surveyUrl; - $this->allImpressionsUrl = $allImpressionsUrl; - $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; - $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; - $this->overrideCss = $overrideCss; - $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; - $this->duration = $duration; - $this->billingAttribute = $billingAttribute; - $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("BaseVideoCreative", false)) { - /** - * A base type for video creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseVideoCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseVideoCreative"; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var boolean - */ - public $allowDurationOverride; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->duration = $duration; - $this->allowDurationOverride = $allowDurationOverride; - $this->trackingUrls = $trackingUrls; - $this->companionCreativeIds = $companionCreativeIds; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ClickTrackingCreative", false)) { - /** - * A creative that is used for tracking clicks on ads that are served directly - * from the customers' web servers or media servers. - * NOTE: The size attribute is not used for click tracking creative and it will - * not be persisted upon save. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingCreative"; - - /** - * @access public - * @var string - */ - public $clickTrackingUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($clickTrackingUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->clickTrackingUrl = $clickTrackingUrl; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("CustomCreative", false)) { - /** - * A {@code Creative} that contains an arbitrary HTML snippet and file assets. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCreative"; - - /** - * @access public - * @var string - */ - public $htmlSnippet; - - /** - * @access public - * @var CustomCreativeAsset[] - */ - public $customCreativeAssets; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($htmlSnippet = null, $customCreativeAssets = null, $isInterstitial = null, $destinationUrl = null) { - parent::__construct(); - $this->htmlSnippet = $htmlSnippet; - $this->customCreativeAssets = $customCreativeAssets; - $this->isInterstitial = $isInterstitial; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("LegacyDfpMobileCreative", false)) { - /** - * A mobile {@code Creative} that isn't supported by Google DFP, but was - * migrated from DART. Creatives of this type cannot be created or modified. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LegacyDfpMobileCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LegacyDfpMobileCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($destinationUrl = null) { - parent::__construct(); - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("FlashCreative", false)) { - /** - * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot - * load, a fallback image is displayed instead. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FlashCreative extends BaseFlashCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FlashCreative"; - - /** - * @access public - * @var SwiffyFallbackAsset - */ - public $swiffyAsset; - - /** - * @access public - * @var boolean - */ - public $createSwiffyAsset; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($swiffyAsset = null, $createSwiffyAsset = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null) { - parent::__construct(); - $this->swiffyAsset = $swiffyAsset; - $this->createSwiffyAsset = $createSwiffyAsset; - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->fallbackImageName = $fallbackImageName; - $this->fallbackImageByteArray = $fallbackImageByteArray; - $this->overrideSize = $overrideSize; - $this->clickTagRequired = $clickTagRequired; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->flashAssetSize = $flashAssetSize; - $this->fallbackAssetSize = $fallbackAssetSize; - } - - } -} - -if (!class_exists("FlashOverlayCreative", false)) { - /** - * An overlay {@code Creative} that displays a Flash-based ad and is - * served via VAST 2.0 XML. Overlays cover part of the video content - * they are displayed on top of. This creative is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FlashOverlayCreative extends BaseFlashCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FlashOverlayCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var tnsApiFramework - */ - public $apiFramework; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $vastPreviewUrl = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->apiFramework = $apiFramework; - $this->duration = $duration; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->fallbackImageName = $fallbackImageName; - $this->fallbackImageByteArray = $fallbackImageByteArray; - $this->overrideSize = $overrideSize; - $this->clickTagRequired = $clickTagRequired; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->flashAssetSize = $flashAssetSize; - $this->fallbackAssetSize = $fallbackAssetSize; - } - - } -} - -if (!class_exists("FlashRedirectCreative", false)) { - /** - * A {@code Creative} that loads a Flash asset from a specified URL. If the - * remote flash asset cannot be served, a fallback image is used at an - * alternate URL. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FlashRedirectCreative extends BaseFlashRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FlashRedirectCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null) { - parent::__construct(); - $this->flashUrl = $flashUrl; - $this->fallbackUrl = $fallbackUrl; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - } - - } -} - -if (!class_exists("FlashRedirectOverlayCreative", false)) { - /** - * An overlay {@code Creative} that loads a Flash asset from a specified URL - * and is served via VAST 2.0 XML. Overlays cover part of the video content - * they are displayed on top of. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FlashRedirectOverlayCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var tnsApiFramework - */ - public $apiFramework; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $flashAssetSize = null, $vastPreviewUrl = null, $flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->apiFramework = $apiFramework; - $this->duration = $duration; - $this->flashAssetSize = $flashAssetSize; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->flashUrl = $flashUrl; - $this->fallbackUrl = $fallbackUrl; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - } - - } -} - -if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", false)) { - /** - * Dynamic allocation creative with a backfill code snippet. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "HasHtmlSnippetDynamicAllocationCreative"; - - /** - * @access public - * @var string - */ - public $codeSnippet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($codeSnippet = null) { - parent::__construct(); - $this->codeSnippet = $codeSnippet; - } - - } -} - -if (!class_exists("ImageCreative", false)) { - /** - * A {@code Creative} that displays an image. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ImageCreative extends BaseImageCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ImageCreative"; - - /** - * @access public - * @var string - */ - public $altText; - - /** - * @access public - * @var string - */ - public $thirdPartyImpressionUrl; - - /** - * @access public - * @var CreativeAsset[] - */ - public $secondaryImageAssets; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($altText = null, $thirdPartyImpressionUrl = null, $secondaryImageAssets = null, $overrideSize = null, $primaryImageAsset = null) { - parent::__construct(); - $this->altText = $altText; - $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; - $this->secondaryImageAssets = $secondaryImageAssets; - $this->overrideSize = $overrideSize; - $this->primaryImageAsset = $primaryImageAsset; - } - - } -} - -if (!class_exists("ImageOverlayCreative", false)) { - /** - * An overlay {@code Creative} that displays an image and is served via VAST - * 2.0 XML. Overlays cover part of the video content they are displayed on - * top of. This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ImageOverlayCreative extends BaseImageCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ImageOverlayCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $overrideSize = null, $primaryImageAsset = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->duration = $duration; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->overrideSize = $overrideSize; - $this->primaryImageAsset = $primaryImageAsset; - } - - } -} - -if (!class_exists("ImageRedirectCreative", false)) { - /** - * A {@code Creative} that loads an image asset from a specified URL. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ImageRedirectCreative extends BaseImageRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ImageRedirectCreative"; - - /** - * @access public - * @var string - */ - public $altText; - - /** - * @access public - * @var string - */ - public $thirdPartyImpressionUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($altText = null, $thirdPartyImpressionUrl = null, $imageUrl = null) { - parent::__construct(); - $this->altText = $altText; - $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; - $this->imageUrl = $imageUrl; - } - - } -} - -if (!class_exists("ImageRedirectOverlayCreative", false)) { - /** - * An overlay {@code Creative} that loads an image asset from a specified URL - * and is served via VAST 2.0 XML. Overlays cover part of the video content - * they are displayed on top of. This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ImageRedirectOverlayCreative"; - - /** - * @access public - * @var Size - */ - public $assetSize; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetSize = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $vastPreviewUrl = null, $imageUrl = null) { - parent::__construct(); - $this->assetSize = $assetSize; - $this->duration = $duration; - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->imageUrl = $imageUrl; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RichMediaStudioCreative", false)) { - /** - * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, - * but you can update some fields of this creative. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RichMediaStudioCreative extends BaseRichMediaStudioCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RichMediaStudioCreative"; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isInterstitial = null, $studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null) { - parent::__construct(); - $this->isInterstitial = $isInterstitial; - $this->studioCreativeId = $studioCreativeId; - $this->creativeFormat = $creativeFormat; - $this->artworkType = $artworkType; - $this->totalFileSize = $totalFileSize; - $this->adTagKeys = $adTagKeys; - $this->customKeyValues = $customKeyValues; - $this->surveyUrl = $surveyUrl; - $this->allImpressionsUrl = $allImpressionsUrl; - $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; - $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; - $this->overrideCss = $overrideCss; - $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; - $this->duration = $duration; - $this->billingAttribute = $billingAttribute; - $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoCreative", false)) { - /** - * A {@code Creative} that contains DFP-hosted video ads and is served - * via VAST 2.0 XML. This creative is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoCreative extends BaseVideoCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null) { - parent::__construct(); - $this->duration = $duration; - $this->allowDurationOverride = $allowDurationOverride; - $this->trackingUrls = $trackingUrls; - $this->companionCreativeIds = $companionCreativeIds; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - } - - } -} - -if (!class_exists("VideoRedirectCreative", false)) { - /** - * A {@code Creative} that contains externally hosted video ads and - * is served via VAST 2.0 XML. This creative is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoRedirectCreative extends BaseVideoCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoRedirectCreative"; - - /** - * @access public - * @var VideoRedirectAsset[] - */ - public $videoAssets; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoAssets = null, $duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null) { - parent::__construct(); - $this->videoAssets = $videoAssets; - $this->duration = $duration; - $this->allowDurationOverride = $allowDurationOverride; - $this->trackingUrls = $trackingUrls; - $this->companionCreativeIds = $companionCreativeIds; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - } - - } -} - -if (!class_exists("AdExchangeCreative", false)) { - /** - * An Ad Exchange dynamic allocation creative. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdExchangeCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($codeSnippet = null) { - parent::__construct(); - $this->codeSnippet = $codeSnippet; - } - - } -} - -if (!class_exists("AdSenseCreative", false)) { - /** - * An AdSense dynamic allocation creative. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdSenseCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($codeSnippet = null) { - parent::__construct(); - $this->codeSnippet = $codeSnippet; - } - - } -} - -if (!class_exists("CreativeService", false)) { - /** - * CreativeService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeService extends DfpSoapClient { - - const SERVICE_NAME = "CreativeService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/CreativeService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/CreativeService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", - "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", - "AdExchangeCreative" => "AdExchangeCreative", - "AdSenseCreative" => "AdSenseCreative", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "AspectRatioImageCreative" => "AspectRatioImageCreative", - "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", - "Asset" => "Asset", - "AssetError" => "AssetError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BaseFlashCreative" => "BaseFlashCreative", - "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", - "BaseImageCreative" => "BaseImageCreative", - "BaseImageRedirectCreative" => "BaseImageRedirectCreative", - "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", - "BaseVideoCreative" => "BaseVideoCreative", - "BooleanValue" => "BooleanValue", - "ClickTrackingCreative" => "ClickTrackingCreative", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", - "CreativeAsset" => "CreativeAsset", - "CustomCreativeAsset" => "CustomCreativeAsset", - "CreativeAssetMacroError" => "CreativeAssetMacroError", - "Creative" => "Creative", - "CreativeError" => "CreativeError", - "CreativePage" => "CreativePage", - "CreativeSetError" => "CreativeSetError", - "CustomCreative" => "CustomCreative", - "CustomCreativeError" => "CustomCreativeError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "FlashCreative" => "FlashCreative", - "FlashOverlayCreative" => "FlashOverlayCreative", - "FlashRedirectCreative" => "FlashRedirectCreative", - "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", - "HasDestinationUrlCreative" => "HasDestinationUrlCreative", - "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", - "ImageCreative" => "ImageCreative", - "ImageError" => "ImageError", - "ImageOverlayCreative" => "ImageOverlayCreative", - "ImageRedirectCreative" => "ImageRedirectCreative", - "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", - "InternalApiError" => "InternalApiError", - "InternalRedirectCreative" => "InternalRedirectCreative", - "InvalidPhoneNumberError" => "InvalidPhoneNumberError", - "InvalidUrlError" => "InvalidUrlError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LegacyDfpCreative" => "LegacyDfpCreative", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RedirectAsset" => "RedirectAsset", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", - "RichMediaStudioCreative" => "RichMediaStudioCreative", - "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SwiffyConversionError" => "SwiffyConversionError", - "SwiffyFallbackAsset" => "SwiffyFallbackAsset", - "TemplateCreative" => "TemplateCreative", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", - "TextValue" => "TextValue", - "ThirdPartyCreative" => "ThirdPartyCreative", - "TrackingUrls" => "TrackingUrls", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UnsupportedCreative" => "UnsupportedCreative", - "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", - "Value" => "Value", - "VastRedirectCreative" => "VastRedirectCreative", - "VideoCreative" => "VideoCreative", - "VideoRedirectAsset" => "VideoRedirectAsset", - "VideoRedirectCreative" => "VideoRedirectCreative", - "VpaidLinearCreative" => "VpaidLinearCreative", - "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", - "ApiFramework" => "ApiFramework", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AssetError.Reason" => "AssetErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "ConversionEvent" => "ConversionEvent", - "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeSetError.Reason" => "CreativeSetErrorReason", - "CustomCreativeError.Reason" => "CustomCreativeErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "Html5Feature" => "Html5Feature", - "ImageDensity" => "ImageDensity", - "ImageError.Reason" => "ImageErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", - "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", - "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", - "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", - "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "VastRedirectType" => "VastRedirectType", - "createCreative" => "CreateCreative", - "createCreativeResponse" => "CreateCreativeResponse", - "createCreatives" => "CreateCreatives", - "createCreativesResponse" => "CreateCreativesResponse", - "getCreative" => "GetCreative", - "getCreativeResponse" => "GetCreativeResponse", - "getCreativesByStatement" => "GetCreativesByStatement", - "getCreativesByStatementResponse" => "GetCreativesByStatementResponse", - "updateCreative" => "UpdateCreative", - "updateCreativeResponse" => "UpdateCreativeResponse", - "updateCreatives" => "UpdateCreatives", - "updateCreativesResponse" => "UpdateCreativesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Creative}. - * - * The following fields are required along with the required fields of the - * sub-class: - *
    - *
  • {@link Creative#advertiserId}
  • - *
  • {@link Creative#name}
  • - *
  • {@link Creative#size}
  • - *
- * - * @param creative the creative to create - * @return the new creative with its ID set - */ - public function createCreative($creative) { - $args = new CreateCreative($creative); - $result = $this->__soapCall("createCreative", array($args)); - return $result->rval; - } - /** - * Creates new {@link Creative} objects. - * - * @param creatives the creatives to create - * @return the created creatives with their IDs filled in - */ - public function createCreatives($creatives) { - $args = new CreateCreatives($creatives); - $result = $this->__soapCall("createCreatives", array($args)); - return $result->rval; - } - /** - * Returns the {@link Creative} uniquely identified by the given ID. - * - * @param creativeId the ID of the creative, which must already exist - * @return the {@code Creative} uniquely identified by the given ID - */ - public function getCreative($creativeId) { - $args = new GetCreative($creativeId); - $result = $this->__soapCall("getCreative", array($args)); - return $result->rval; - } - /** - * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Creative#id}
{@code name}{@link Creative#name}
{@code advertiserId}{@link Creative#advertiserId}
{@code width}{@link Creative#size}
{@code height}{@link Creative#size}
{@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creatives - * @return the creatives that match the given filter - */ - public function getCreativesByStatement($filterStatement) { - $args = new GetCreativesByStatement($filterStatement); - $result = $this->__soapCall("getCreativesByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Creative}. - * - * @param creative the creative to update - * @return the updated creative - */ - public function updateCreative($creative) { - $args = new UpdateCreative($creative); - $result = $this->__soapCall("updateCreative", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Creative} objects. - * - * @param creatives the creatives to update - * @return the updated creatives - */ - public function updateCreatives($creatives) { - $args = new UpdateCreatives($creatives); - $result = $this->__soapCall("updateCreatives", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php deleted file mode 100755 index add56e123..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/CreativeWrapperService.php +++ /dev/null @@ -1,3849 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperAction", false)) { - /** - * Represents the actions that can be performed on {@link CreativeWrapper} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperAction"; - - /** - * @access public - * @var string - */ - public $CreativeWrapperActionType; - private $_parameterMap = array( - "CreativeWrapperAction.Type" => "CreativeWrapperActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CreativeWrapperActionType = null) { - $this->CreativeWrapperActionType = $CreativeWrapperActionType; - } - - } -} - -if (!class_exists("CreativeWrapper", false)) { - /** - * A {@code CreativeWrapper} allows the wrapping of HTML snippets to be - * served along with {@code Creative} objects. - *

- * Creative wrappers must be associated with a - * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by - * {@link AdUnit#appliedLabels}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapper"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var CreativeWrapperHtmlSnippet - */ - public $header; - - /** - * @access public - * @var CreativeWrapperHtmlSnippet - */ - public $footer; - - /** - * @access public - * @var tnsCreativeWrapperOrdering - */ - public $ordering; - - /** - * @access public - * @var tnsCreativeWrapperStatus - */ - public $status; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $labelId = null, $header = null, $footer = null, $ordering = null, $status = null) { - $this->id = $id; - $this->labelId = $labelId; - $this->header = $header; - $this->footer = $footer; - $this->ordering = $ordering; - $this->status = $status; - } - - } -} - -if (!class_exists("CreativeWrapperError", false)) { - /** - * Errors specific to creative wrappers. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperError"; - - /** - * @access public - * @var tnsCreativeWrapperErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperPage", false)) { - /** - * Captures a page of {@link CreativeWrapper} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateCreativeWrappers", false)) { - /** - * The action used for deactivating {@link CreativeWrapper} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivateCreativeWrappers extends CreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateCreativeWrappers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CreativeWrapperActionType = null) { - parent::__construct(); - $this->CreativeWrapperActionType = $CreativeWrapperActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperHtmlSnippet", false)) { - /** - * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is - * delivered as the header or footer. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperHtmlSnippet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperHtmlSnippet"; - - /** - * @access public - * @var string - */ - public $htmlSnippet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($htmlSnippet = null) { - $this->htmlSnippet = $htmlSnippet; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelError", false)) { - /** - * Errors specific to labels. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelError"; - - /** - * @access public - * @var tnsLabelErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperErrorReason", false)) { - /** - * The reasons for the creative wrapper error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperOrdering", false)) { - /** - * Defines the order in which the header and footer HTML snippets will be - * wrapped around the served creative. {@code INNER} snippets will be wrapped - * first, followed by {@code NO_PREFERENCE} and finally {@code OUTER}. If the - * creative needs to be wrapped with more than one snippet with the same - * {@link CreativeWrapperOrdering}, then the order is unspecified. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperOrdering { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperOrdering"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperStatus", false)) { - /** - * Indicates whether the {@code CreativeWrapper} is active. HTML snippets - * are served to creatives only when the creative wrapper is active. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCreativeWrapper", false)) { - /** - * Creates a new {@code CreativeWrapper}. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrapper the creative wrapper to create - * @return the creative wrapper with its ID filled in - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $creativeWrapper; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapper = null) { - $this->creativeWrapper = $creativeWrapper; - } - - } -} - -if (!class_exists("CreateCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCreativeWrappers", false)) { - /** - * Creates a new {@code CreativeWrapper} objects. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrappers the creative wrappers to create - * @return the creative wrappers with their IDs filled in - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreativeWrappers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $creativeWrappers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrappers = null) { - $this->creativeWrappers = $creativeWrappers; - } - - } -} - -if (!class_exists("CreateCreativeWrappersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCreativeWrappersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeWrapper", false)) { - /** - * Returns the {@link CreativeWrapper} uniquely identified by the given - * ID. - * - * @param creativeWrapperId the ID of the creative wrapper, which - * must already exist - * @return the {@code CreativeWrapper} uniquely identified by the given - * ID - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeWrapperId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapperId = null) { - $this->creativeWrapperId = $creativeWrapperId; - } - - } -} - -if (!class_exists("GetCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeWrappersByStatement", false)) { - /** - * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeWrapper#id}
{@code labelId}{@link CreativeWrapper#labelId}
{@code status}{@link CreativeWrapper#status}
{@code ordering}{@link CreativeWrapper#ordering}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative wrappers. - * @return the creative wrappers that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeWrappersByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCreativeWrappersByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeWrappersByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapperPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCreativeWrapperAction", false)) { - /** - * Performs actions on {@link CreativeWrapper} objects that match the - * given {@link Statement#query}. - * - * @param creativeWrapperAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformCreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapperAction - */ - public $creativeWrapperAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapperAction = null, $filterStatement = null) { - $this->creativeWrapperAction = $creativeWrapperAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCreativeWrapperActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformCreativeWrapperActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreativeWrapper", false)) { - /** - * Updates the specified {@code CreativeWrapper}. - * - * @param creativeWrapper the creative wrapper to update - * @return the updated creative wrapper - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $creativeWrapper; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapper = null) { - $this->creativeWrapper = $creativeWrapper; - } - - } -} - -if (!class_exists("UpdateCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreativeWrappers", false)) { - /** - * Updates the specified {@code CreativeWrapper} objects. - * - * @param creativeWrappers the creative wrappers to update - * @return the updated creative wrapper objects - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreativeWrappers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $creativeWrappers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrappers = null) { - $this->creativeWrappers = $creativeWrappers; - } - - } -} - -if (!class_exists("UpdateCreativeWrappersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCreativeWrappersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateCreativeWrappers", false)) { - /** - * The action used for activating {@link CreativeWrapper} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateCreativeWrappers extends CreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateCreativeWrappers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CreativeWrapperActionType = null) { - parent::__construct(); - $this->CreativeWrapperActionType = $CreativeWrapperActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CreativeWrapperService", false)) { - /** - * CreativeWrapperService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeWrapperService extends DfpSoapClient { - - const SERVICE_NAME = "CreativeWrapperService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/CreativeWrapperService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/CreativeWrapperService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateCreativeWrappers" => "ActivateCreativeWrappers", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativeWrapperAction" => "CreativeWrapperAction", - "CreativeWrapper" => "CreativeWrapper", - "CreativeWrapperError" => "CreativeWrapperError", - "CreativeWrapperPage" => "CreativeWrapperPage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateCreativeWrappers" => "DeactivateCreativeWrappers", - "FeatureError" => "FeatureError", - "CreativeWrapperHtmlSnippet" => "CreativeWrapperHtmlSnippet", - "InternalApiError" => "InternalApiError", - "LabelError" => "LabelError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "CreativeWrapperOrdering" => "CreativeWrapperOrdering", - "CreativeWrapperStatus" => "CreativeWrapperStatus", - "LabelError.Reason" => "LabelErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createCreativeWrapper" => "CreateCreativeWrapper", - "createCreativeWrapperResponse" => "CreateCreativeWrapperResponse", - "createCreativeWrappers" => "CreateCreativeWrappers", - "createCreativeWrappersResponse" => "CreateCreativeWrappersResponse", - "getCreativeWrapper" => "GetCreativeWrapper", - "getCreativeWrapperResponse" => "GetCreativeWrapperResponse", - "getCreativeWrappersByStatement" => "GetCreativeWrappersByStatement", - "getCreativeWrappersByStatementResponse" => "GetCreativeWrappersByStatementResponse", - "performCreativeWrapperAction" => "PerformCreativeWrapperAction", - "performCreativeWrapperActionResponse" => "PerformCreativeWrapperActionResponse", - "updateCreativeWrapper" => "UpdateCreativeWrapper", - "updateCreativeWrapperResponse" => "UpdateCreativeWrapperResponse", - "updateCreativeWrappers" => "UpdateCreativeWrappers", - "updateCreativeWrappersResponse" => "UpdateCreativeWrappersResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@code CreativeWrapper}. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrapper the creative wrapper to create - * @return the creative wrapper with its ID filled in - * @throws ApiException - */ - public function createCreativeWrapper($creativeWrapper) { - $args = new CreateCreativeWrapper($creativeWrapper); - $result = $this->__soapCall("createCreativeWrapper", array($args)); - return $result->rval; - } - /** - * Creates a new {@code CreativeWrapper} objects. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrappers the creative wrappers to create - * @return the creative wrappers with their IDs filled in - * @throws ApiException - */ - public function createCreativeWrappers($creativeWrappers) { - $args = new CreateCreativeWrappers($creativeWrappers); - $result = $this->__soapCall("createCreativeWrappers", array($args)); - return $result->rval; - } - /** - * Returns the {@link CreativeWrapper} uniquely identified by the given - * ID. - * - * @param creativeWrapperId the ID of the creative wrapper, which - * must already exist - * @return the {@code CreativeWrapper} uniquely identified by the given - * ID - * @throws ApiException - */ - public function getCreativeWrapper($creativeWrapperId) { - $args = new GetCreativeWrapper($creativeWrapperId); - $result = $this->__soapCall("getCreativeWrapper", array($args)); - return $result->rval; - } - /** - * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeWrapper#id}
{@code labelId}{@link CreativeWrapper#labelId}
{@code status}{@link CreativeWrapper#status}
{@code ordering}{@link CreativeWrapper#ordering}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative wrappers. - * @return the creative wrappers that match the given filter - */ - public function getCreativeWrappersByStatement($filterStatement) { - $args = new GetCreativeWrappersByStatement($filterStatement); - $result = $this->__soapCall("getCreativeWrappersByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CreativeWrapper} objects that match the - * given {@link Statement#query}. - * - * @param creativeWrapperAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels - * @return the result of the action performed - */ - public function performCreativeWrapperAction($creativeWrapperAction, $filterStatement) { - $args = new PerformCreativeWrapperAction($creativeWrapperAction, $filterStatement); - $result = $this->__soapCall("performCreativeWrapperAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@code CreativeWrapper}. - * - * @param creativeWrapper the creative wrapper to update - * @return the updated creative wrapper - * @throws ApiException - */ - public function updateCreativeWrapper($creativeWrapper) { - $args = new UpdateCreativeWrapper($creativeWrapper); - $result = $this->__soapCall("updateCreativeWrapper", array($args)); - return $result->rval; - } - /** - * Updates the specified {@code CreativeWrapper} objects. - * - * @param creativeWrappers the creative wrappers to update - * @return the updated creative wrapper objects - * @throws ApiException - */ - public function updateCreativeWrappers($creativeWrappers) { - $args = new UpdateCreativeWrappers($creativeWrappers); - $result = $this->__soapCall("updateCreativeWrappers", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php deleted file mode 100755 index 4544d10a9..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/CustomTargetingService.php +++ /dev/null @@ -1,4099 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CollectionSizeError", false)) { - /** - * Errors associated with the size of the given collection being - * out of bounds. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CollectionSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CollectionSizeError"; - - /** - * @access public - * @var tnsCollectionSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingKeyAction", false)) { - /** - * Represents the actions that can be performed on {@link CustomTargetingKey} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingKeyAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingKeyAction"; - - /** - * @access public - * @var string - */ - public $CustomTargetingKeyActionType; - private $_parameterMap = array( - "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingKeyActionType = null) { - $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; - } - - } -} - -if (!class_exists("CustomTargetingKey", false)) { - /** - * {@code CustomTargetingKey} represents a key used for custom targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingKey { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingKey"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var tnsCustomTargetingKeyType - */ - public $type; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $displayName = null, $type = null) { - $this->id = $id; - $this->name = $name; - $this->displayName = $displayName; - $this->type = $type; - } - - } -} - -if (!class_exists("CustomTargetingKeyPage", false)) { - /** - * Captures a page of {@link CustomTargetingKey} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingKeyPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingKeyPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CustomTargetingValueAction", false)) { - /** - * Represents the actions that can be performed on {@link CustomTargetingValue} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingValueAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingValueAction"; - - /** - * @access public - * @var string - */ - public $CustomTargetingValueActionType; - private $_parameterMap = array( - "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingValueActionType = null) { - $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; - } - - } -} - -if (!class_exists("CustomTargetingValue", false)) { - /** - * {@code CustomTargetingValue} represents a value used for custom targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingValue"; - - /** - * @access public - * @var integer - */ - public $customTargetingKeyId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var tnsCustomTargetingValueMatchType - */ - public $matchType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingKeyId = null, $id = null, $name = null, $displayName = null, $matchType = null) { - $this->customTargetingKeyId = $customTargetingKeyId; - $this->id = $id; - $this->name = $name; - $this->displayName = $displayName; - $this->matchType = $matchType; - } - - } -} - -if (!class_exists("CustomTargetingValuePage", false)) { - /** - * Captures a page of {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingValuePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingValuePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeleteCustomTargetingKeys", false)) { - /** - * Represents the delete action that can be performed on - * {@link CustomTargetingKey} objects. Deleting a key will not delete the - * {@link CustomTargetingValue} objects associated with it. Also, if a custom - * targeting key that has been deleted is recreated, any previous custom - * targeting values associated with it that were not deleted will continue to - * exist. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeleteCustomTargetingKeys"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingKeyActionType = null) { - parent::__construct(); - $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; - } - - } -} - -if (!class_exists("DeleteCustomTargetingValues", false)) { - /** - * Represents the delete action that can be performed on - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeleteCustomTargetingValues extends CustomTargetingValueAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeleteCustomTargetingValues"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingValueActionType = null) { - parent::__construct(); - $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CollectionSizeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CollectionSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CollectionSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingKeyType", false)) { - /** - * Specifies the types for {@code CustomTargetingKey} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingKeyType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingKey.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingValueMatchType", false)) { - /** - * Represents the ways in which {@link CustomTargetingValue#name} strings will - * be matched with ad requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingValueMatchType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingValue.MatchType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCustomTargetingKeys", false)) { - /** - * Creates new {@link CustomTargetingKey} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingKey#name}
  • - *
  • {@link CustomTargetingKey#type}
  • - *
- * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomTargetingKeys { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $keys; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keys = null) { - $this->keys = $keys; - } - - } -} - -if (!class_exists("CreateCustomTargetingKeysResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomTargetingKeysResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomTargetingValues", false)) { - /** - * Creates new {@link CustomTargetingValue} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingValue#customTargetingKeyId}
  • - *
  • {@link CustomTargetingValue#name}
  • - *
- * - * @param values the custom targeting values to update - * @return the updated custom targeting keys - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomTargetingValues { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null) { - $this->values = $values; - } - - } -} - -if (!class_exists("CreateCustomTargetingValuesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomTargetingValuesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomTargetingKeysByStatement", false)) { - /** - * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomTargetingKey#id}
{@code name}{@link CustomTargetingKey#name}
{@code displayName}{@link CustomTargetingKey#displayName}
{@code type}{@link CustomTargetingKey#type}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the custom targeting keys that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCustomTargetingKeysByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCustomTargetingKeysByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCustomTargetingKeysByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKeyPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomTargetingValuesByStatement", false)) { - /** - * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} - * objects that satisfy the given {@link Statement#query}. - *

- * The {@code WHERE} clause in the {@link Statement#query} must always contain - * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in - * a way that it is AND'ed with the rest of the query. So, if you want to - * retrieve values for a known set of key ids, valid {@link Statement#query} - * would look like: - *

- *
    - *
  1. - * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that - * are associated with keys having ids 17, 18, 19. - *
  2. - *
  3. - * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that - * are associated with keys having id 17 and value name is 'red'. - *
  4. - *
- *

- *

- * The following fields are supported for filtering: - *

- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link CustomTargetingValue#id}
{@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
{@code name}{@link CustomTargetingValue#name}
{@code displayName}{@link CustomTargetingValue#displayName}
{@code matchType}{@link CustomTargetingValue#matchType}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting values - * @return the custom targeting values that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCustomTargetingValuesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCustomTargetingValuesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCustomTargetingValuesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValuePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCustomTargetingKeyAction", false)) { - /** - * Performs actions on {@link CustomTargetingKey} objects that match the given - * {@link Statement#query}. - * - * @param customTargetingKeyAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformCustomTargetingKeyAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKeyAction - */ - public $customTargetingKeyAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingKeyAction = null, $filterStatement = null) { - $this->customTargetingKeyAction = $customTargetingKeyAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCustomTargetingKeyActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformCustomTargetingKeyActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCustomTargetingValueAction", false)) { - /** - * Performs actions on {@link CustomTargetingValue} objects that match the - * given {@link Statement#query}. - * - * @param customTargetingValueAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformCustomTargetingValueAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValueAction - */ - public $customTargetingValueAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingValueAction = null, $filterStatement = null) { - $this->customTargetingValueAction = $customTargetingValueAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCustomTargetingValueActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformCustomTargetingValueActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomTargetingKeys", false)) { - /** - * Updates the specified {@link CustomTargetingKey} objects. - * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCustomTargetingKeys { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $keys; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keys = null) { - $this->keys = $keys; - } - - } -} - -if (!class_exists("UpdateCustomTargetingKeysResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCustomTargetingKeysResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomTargetingValues", false)) { - /** - * Updates the specified {@link CustomTargetingValue} objects. - * - * @param values the custom targeting values to update - * @return the updated custom targeting values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCustomTargetingValues { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null) { - $this->values = $values; - } - - } -} - -if (!class_exists("UpdateCustomTargetingValuesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCustomTargetingValuesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomTargetingService", false)) { - /** - * CustomTargetingService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingService extends DfpSoapClient { - - const SERVICE_NAME = "CustomTargetingService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/CustomTargetingService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/CustomTargetingService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CollectionSizeError" => "CollectionSizeError", - "CommonError" => "CommonError", - "CustomTargetingError" => "CustomTargetingError", - "CustomTargetingKeyAction" => "CustomTargetingKeyAction", - "CustomTargetingKey" => "CustomTargetingKey", - "CustomTargetingKeyPage" => "CustomTargetingKeyPage", - "CustomTargetingValueAction" => "CustomTargetingValueAction", - "CustomTargetingValue" => "CustomTargetingValue", - "CustomTargetingValuePage" => "CustomTargetingValuePage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", - "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CollectionSizeError.Reason" => "CollectionSizeErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "CustomTargetingKey.Type" => "CustomTargetingKeyType", - "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createCustomTargetingKeys" => "CreateCustomTargetingKeys", - "createCustomTargetingKeysResponse" => "CreateCustomTargetingKeysResponse", - "createCustomTargetingValues" => "CreateCustomTargetingValues", - "createCustomTargetingValuesResponse" => "CreateCustomTargetingValuesResponse", - "getCustomTargetingKeysByStatement" => "GetCustomTargetingKeysByStatement", - "getCustomTargetingKeysByStatementResponse" => "GetCustomTargetingKeysByStatementResponse", - "getCustomTargetingValuesByStatement" => "GetCustomTargetingValuesByStatement", - "getCustomTargetingValuesByStatementResponse" => "GetCustomTargetingValuesByStatementResponse", - "performCustomTargetingKeyAction" => "PerformCustomTargetingKeyAction", - "performCustomTargetingKeyActionResponse" => "PerformCustomTargetingKeyActionResponse", - "performCustomTargetingValueAction" => "PerformCustomTargetingValueAction", - "performCustomTargetingValueActionResponse" => "PerformCustomTargetingValueActionResponse", - "updateCustomTargetingKeys" => "UpdateCustomTargetingKeys", - "updateCustomTargetingKeysResponse" => "UpdateCustomTargetingKeysResponse", - "updateCustomTargetingValues" => "UpdateCustomTargetingValues", - "updateCustomTargetingValuesResponse" => "UpdateCustomTargetingValuesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates new {@link CustomTargetingKey} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingKey#name}
  • - *
  • {@link CustomTargetingKey#type}
  • - *
- * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - */ - public function createCustomTargetingKeys($keys) { - $args = new CreateCustomTargetingKeys($keys); - $result = $this->__soapCall("createCustomTargetingKeys", array($args)); - return $result->rval; - } - /** - * Creates new {@link CustomTargetingValue} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingValue#customTargetingKeyId}
  • - *
  • {@link CustomTargetingValue#name}
  • - *
- * - * @param values the custom targeting values to update - * @return the updated custom targeting keys - */ - public function createCustomTargetingValues($values) { - $args = new CreateCustomTargetingValues($values); - $result = $this->__soapCall("createCustomTargetingValues", array($args)); - return $result->rval; - } - /** - * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomTargetingKey#id}
{@code name}{@link CustomTargetingKey#name}
{@code displayName}{@link CustomTargetingKey#displayName}
{@code type}{@link CustomTargetingKey#type}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the custom targeting keys that match the given filter - */ - public function getCustomTargetingKeysByStatement($filterStatement) { - $args = new GetCustomTargetingKeysByStatement($filterStatement); - $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($args)); - return $result->rval; - } - /** - * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} - * objects that satisfy the given {@link Statement#query}. - *

- * The {@code WHERE} clause in the {@link Statement#query} must always contain - * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in - * a way that it is AND'ed with the rest of the query. So, if you want to - * retrieve values for a known set of key ids, valid {@link Statement#query} - * would look like: - *

- *
    - *
  1. - * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that - * are associated with keys having ids 17, 18, 19. - *
  2. - *
  3. - * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that - * are associated with keys having id 17 and value name is 'red'. - *
  4. - *
- *

- *

- * The following fields are supported for filtering: - *

- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link CustomTargetingValue#id}
{@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
{@code name}{@link CustomTargetingValue#name}
{@code displayName}{@link CustomTargetingValue#displayName}
{@code matchType}{@link CustomTargetingValue#matchType}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting values - * @return the custom targeting values that match the given filter - */ - public function getCustomTargetingValuesByStatement($filterStatement) { - $args = new GetCustomTargetingValuesByStatement($filterStatement); - $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CustomTargetingKey} objects that match the given - * {@link Statement#query}. - * - * @param customTargetingKeyAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the result of the action performed - */ - public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { - $args = new PerformCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); - $result = $this->__soapCall("performCustomTargetingKeyAction", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CustomTargetingValue} objects that match the - * given {@link Statement#query}. - * - * @param customTargetingValueAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - */ - public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { - $args = new PerformCustomTargetingValueAction($customTargetingValueAction, $filterStatement); - $result = $this->__soapCall("performCustomTargetingValueAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomTargetingKey} objects. - * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - */ - public function updateCustomTargetingKeys($keys) { - $args = new UpdateCustomTargetingKeys($keys); - $result = $this->__soapCall("updateCustomTargetingKeys", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomTargetingValue} objects. - * - * @param values the custom targeting values to update - * @return the updated custom targeting values - */ - public function updateCustomTargetingValues($values) { - $args = new UpdateCustomTargetingValues($values); - $result = $this->__soapCall("updateCustomTargetingValues", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ForecastService.php b/src/Google/Api/Ads/Dfp/v201306/ForecastService.php deleted file mode 100755 index 6a04a94a9..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ForecastService.php +++ /dev/null @@ -1,9919 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargeting", false)) { - /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargeting"; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var DeviceCapabilityTargeting - */ - public $deviceCapabilityTargeting; - - /** - * @access public - * @var DeviceCategoryTargeting - */ - public $deviceCategoryTargeting; - - /** - * @access public - * @var DeviceManufacturerTargeting - */ - public $deviceManufacturerTargeting; - - /** - * @access public - * @var MobileCarrierTargeting - */ - public $mobileCarrierTargeting; - - /** - * @access public - * @var MobileDeviceTargeting - */ - public $mobileDeviceTargeting; - - /** - * @access public - * @var MobileDeviceSubmodelTargeting - */ - public $mobileDeviceSubmodelTargeting; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var OperatingSystemVersionTargeting - */ - public $operatingSystemVersionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentTargeting", false)) { - /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; - - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; - - /** - * @access public - * @var integer[] - */ - public $excludedVideoCategoryIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPart", false)) { - /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; - - /** - * @access public - * @var TimeOfDay - */ - public $startTime; - - /** - * @access public - * @var TimeOfDay - */ - public $endTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; - } - - } -} - -if (!class_exists("DayPartTargeting", false)) { - /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargeting"; - - /** - * @access public - * @var DayPart[] - */ - public $dayParts; - - /** - * @access public - * @var tnsDeliveryTimeZone - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DeliveryData", false)) { - /** - * Holds the number of clicks or impressions, determined by - * {@link LineItem#costType}, delivered for a single line item for the - * last 7 days - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryData { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryData"; - - /** - * @access public - * @var integer[] - */ - public $units; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($units = null) { - $this->units = $units; - } - - } -} - -if (!class_exists("DeliveryIndicator", false)) { - /** - * Indicates the delivery performance of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryIndicator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryIndicator"; - - /** - * @access public - * @var double - */ - public $expectedDeliveryPercentage; - - /** - * @access public - * @var double - */ - public $actualDeliveryPercentage; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { - $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; - $this->actualDeliveryPercentage = $actualDeliveryPercentage; - } - - } -} - -if (!class_exists("DeviceCapabilityTargeting", false)) { - /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapabilityTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCapabilities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; - } - - } -} - -if (!class_exists("DeviceCategoryTargeting", false)) { - /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCategoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCategories; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; - } - - } -} - -if (!class_exists("DeviceManufacturerTargeting", false)) { - /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceManufacturerTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturerTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $deviceManufacturers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Forecast", false)) { - /** - * Describes predicted inventory availability for a line item with the specified - * properties. - * - *

Inventory has three threshold values along a line of possible inventory. - * From least to most, these are: - * - *

- *
Available units - *
How many units can be booked without affecting any other line items. Booking more than this - * number can cause lower- and same-priority line items to underdeliver. - *
Possible units - *
How many units can be booked without affecting any higher priority line items. Booking more - * than this number can cause the line item to underdeliver. - *
Matched (forecast) units - *
How many units satisfy all specified criteria. - *
- * - *

Underdelivery is caused by overbooking. However, if more impressions are served than are - * predicted, the extra available inventory might enable all inventory guarantees to be met without - * overbooking. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Forecast { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Forecast"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var integer - */ - public $availableUnits; - - /** - * @access public - * @var integer - */ - public $deliveredUnits; - - /** - * @access public - * @var integer - */ - public $matchedUnits; - - /** - * @access public - * @var integer - */ - public $possibleUnits; - - /** - * @access public - * @var integer - */ - public $reservedUnits; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null) { - $this->id = $id; - $this->orderId = $orderId; - $this->unitType = $unitType; - $this->availableUnits = $availableUnits; - $this->deliveredUnits = $deliveredUnits; - $this->matchedUnits = $matchedUnits; - $this->possibleUnits = $possibleUnits; - $this->reservedUnits = $reservedUnits; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryUnitError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryUnitError"; - - /** - * @access public - * @var tnsInventoryUnitErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemSummary", false)) { - /** - * The {@code LineItemSummary} represents the base class from which a {@code - * LineItem} is derived. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemSummary"; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $orderName; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var tnsStartDateTimeType - */ - public $startDateTimeType; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var integer - */ - public $autoExtensionDays; - - /** - * @access public - * @var boolean - */ - public $unlimitedEndDateTime; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var tnsLineItemSummaryDuration - */ - public $duration; - - /** - * @access public - * @var integer - */ - public $unitsBought; - - /** - * @access public - * @var Money - */ - public $costPerUnit; - - /** - * @access public - * @var Money - */ - public $valueCostPerUnit; - - /** - * @access public - * @var tnsCostType - */ - public $costType; - - /** - * @access public - * @var tnsLineItemDiscountType - */ - public $discountType; - - /** - * @access public - * @var double - */ - public $discount; - - /** - * @access public - * @var integer - */ - public $contractedUnitsBought; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var tnsCompanionDeliveryOption - */ - public $companionDeliveryOption; - - /** - * @access public - * @var tnsCreativePersistenceType - */ - public $creativePersistenceType; - - /** - * @access public - * @var boolean - */ - public $allowOverbook; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * @access public - * @var boolean - */ - public $reserveAtCreation; - - /** - * @access public - * @var Stats - */ - public $stats; - - /** - * @access public - * @var DeliveryIndicator - */ - public $deliveryIndicator; - - /** - * @access public - * @var DeliveryData - */ - public $deliveryData; - - /** - * @access public - * @var Money - */ - public $budget; - - /** - * @access public - * @var tnsComputedStatus - */ - public $status; - - /** - * @access public - * @var tnsLineItemSummaryReservationStatus - */ - public $reservationStatus; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var string - */ - public $webPropertyCode; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var boolean - */ - public $disableSameAdvertiserCompetitiveExclusion; - - /** - * @access public - * @var string - */ - public $lastModifiedByApp; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var DateTime - */ - public $creationDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var boolean - */ - public $isMissingCreatives; - - /** - * @access public - * @var string - */ - public $LineItemSummaryType; - private $_parameterMap = array( - "LineItemSummary.Type" => "LineItemSummaryType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MobileCarrierTargeting", false)) { - /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrierTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $mobileCarriers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; - } - - } -} - -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDeviceSubmodels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; - } - - } -} - -if (!class_exists("MobileDeviceTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDevices; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; - - /** - * @access public - * @var Technology[] - */ - public $excludedOperatingSystemVersions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Stats", false)) { - /** - * {@code Stats} contains trafficking statistics for {@link LineItem} and - * {@link LineItemCreativeAssociation} objects - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Stats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Stats"; - - /** - * @access public - * @var integer - */ - public $impressionsDelivered; - - /** - * @access public - * @var integer - */ - public $clicksDelivered; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($impressionsDelivered = null, $clicksDelivered = null) { - $this->impressionsDelivered = $impressionsDelivered; - $this->clicksDelivered = $clicksDelivered; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Targeting", false)) { - /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; - - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; - - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TimeOfDay", false)) { - /** - * Represents a specific time in a day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoPosition", false)) { - /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; - - /** - * @access public - * @var integer - */ - public $midrollIndex; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; - } - - } -} - -if (!class_exists("VideoPositionTargeting", false)) { - /** - * Represents positions within and around a video where ads can be targeted to. - *

- * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionTargeting"; - - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; - } - - } -} - -if (!class_exists("VideoPositionWithinPod", false)) { - /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionWithinPod"; - - /** - * @access public - * @var integer - */ - public $index; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($index = null) { - $this->index = $index; - } - - } -} - -if (!class_exists("VideoPositionTarget", false)) { - /** - * Represents the options for targetable positions within a video. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; - - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; - } - - } -} - -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { - /** - * The supplied Afc size is not valid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitAfcSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitCodeErrorReason", false)) { - /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitCodeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitCodeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanionDeliveryOption", false)) { - /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanionDeliveryOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanionDeliveryOption"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ComputedStatus", false)) { - /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ComputedStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ComputedStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryTimeZone { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryTimeZone"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryUnitErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryUnitError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemDiscountType", false)) { - /** - * Describes the possible discount types on the cost of booking a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemDiscountType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemDiscountType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryDuration", false)) { - /** - * Specifies the time period used for limiting the number of ads served for a - * {@link LineItem}. For valid and default values of duration for each line - * item type, see {@link LineItem#duration}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemSummaryDuration { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemSummary.Duration"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryReservationStatus", false)) { - /** - * Specifies the reservation status of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemSummaryReservationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemSummary.ReservationStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MinuteOfHour", false)) { - /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MinuteOfHour { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MinuteOfHour"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativePersistenceType", false)) { - /** - * Specifies options to prevent ads from replacing or appearing with this - * line item. If persistence is set, this line item's ads will not be - * replaced over time, whether through AJAX or other means, such as - * companions of video ads. - * Additionally, if set to exclude none, other ads can be shown in any - * slots not being used by this line item. If set to exclude display ads, - * video ads can be shown, but no other display ads can be shown, even - * in slots that aren't used by this line item. If set to exclude video ads, - * video ads cannot be shown, but other display ads can be shown in unused - * slots. If set to exclude all ads, no other ads can be shown until the - * page is changed. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativePersistenceType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativePersistenceType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StartDateTimeType", false)) { - /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StartDateTimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StartDateTimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UnitType", false)) { - /** - * Indicates the type of unit used for defining a reservation. The - * {@link CostType} can differ from the {@link UnitType} - an - * ad can have an impression goal, but be billed by its click. Usually - * {@link CostType} and {@link UnitType} will refer to the - * same unit. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnitType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnitType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoBumperType", false)) { - /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoBumperType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoBumperType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoPositionType", false)) { - /** - * Represents a targetable position within a video. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPosition.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetForecast", false)) { - /** - * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid - * values for {@link LineItem#lineItemType} are - * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other - * values will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItem the target of the forecast. If {@link LineItem#id} is null - * or no line item exists with that ID, a forecast is computed for the - * the subject, predicting what would happen if it were added to the - * system. If a line item already exists with {@link LineItem#id}, the - * forecast is computed for the subject, predicting what would happen - * if the existing line item's settings were modified to match the - * subject. - * @return the forecasted traffic estimates - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetForecast { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $lineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; - } - - } -} - -if (!class_exists("GetForecastResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetForecastResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Forecast - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetForecastById", false)) { - /** - * Gets a {@link Forecast} for an existing {@link LineItem} object. Only - * line items having type {@link LineItemType#SPONSORSHIP} or - * {@link LineItemType#STANDARD} are valid. Other types will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItemId the ID of a {@link LineItem} to run the forecast on. - * @return the forecasted traffic estimates - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetForecastById { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null) { - $this->lineItemId = $lineItemId; - } - - } -} - -if (!class_exists("GetForecastByIdResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetForecastByIdResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Forecast - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("AdUnitAfcSizeError", false)) { - /** - * Caused by supplying sizes that are not compatible with the Afc sizes. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitAfcSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitAfcSizeError"; - - /** - * @access public - * @var tnsAdUnitAfcSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitCodeError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit#adUnitCode}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitCodeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitCodeError"; - - /** - * @access public - * @var tnsAdUnitCodeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("LineItem", false)) { - /** - * {@code LineItem} is an advertiser's commitment to purchase a specific number - * of ad impressions, clicks, or time. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItem extends LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItem"; - - /** - * @access public - * @var Targeting - */ - public $targeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - parent::__construct(); - $this->targeting = $targeting; - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("ForecastService", false)) { - /** - * ForecastService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastService extends DfpSoapClient { - - const SERVICE_NAME = "ForecastService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ForecastService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ForecastService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitAfcSizeError" => "AdUnitAfcSizeError", - "AdUnitCodeError" => "AdUnitCodeError", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "TechnologyTargeting" => "TechnologyTargeting", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", - "CreativeError" => "CreativeError", - "CreativePlaceholder" => "CreativePlaceholder", - "CrossSellError" => "CrossSellError", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPart" => "DayPart", - "DayPartTargeting" => "DayPartTargeting", - "DayPartTargetingError" => "DayPartTargetingError", - "DeliveryData" => "DeliveryData", - "DeliveryIndicator" => "DeliveryIndicator", - "DeviceCapability" => "DeviceCapability", - "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", - "DeviceCategory" => "DeviceCategory", - "DeviceCategoryTargeting" => "DeviceCategoryTargeting", - "DeviceManufacturer" => "DeviceManufacturer", - "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "Forecast" => "Forecast", - "ForecastError" => "ForecastError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "InventoryUnitError" => "InventoryUnitError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItem" => "LineItem", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "LineItemSummary" => "LineItemSummary", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileCarrierTargeting" => "MobileCarrierTargeting", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", - "MobileDeviceTargeting" => "MobileDeviceTargeting", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegExError" => "RegExError", - "RegionLocation" => "RegionLocation", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "StatementError" => "StatementError", - "Stats" => "Stats", - "StringLengthError" => "StringLengthError", - "Targeting" => "Targeting", - "TeamError" => "TeamError", - "Technology" => "Technology", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TimeOfDay" => "TimeOfDay", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "VideoPosition" => "VideoPosition", - "VideoPositionTargeting" => "VideoPositionTargeting", - "VideoPositionWithinPod" => "VideoPositionWithinPod", - "VideoPositionTarget" => "VideoPositionTarget", - "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", - "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanionDeliveryOption" => "CompanionDeliveryOption", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "ComputedStatus" => "ComputedStatus", - "CostType" => "CostType", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeRotationType" => "CreativeRotationType", - "CreativeSizeType" => "CreativeSizeType", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayOfWeek" => "DayOfWeek", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryTimeZone" => "DeliveryTimeZone", - "DeliveryRateType" => "DeliveryRateType", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "InventoryUnitError.Reason" => "InventoryUnitErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemDiscountType" => "LineItemDiscountType", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemSummary.Duration" => "LineItemSummaryDuration", - "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", - "LineItemType" => "LineItemType", - "MinuteOfHour" => "MinuteOfHour", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "CreativePersistenceType" => "CreativePersistenceType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TimeUnit" => "TimeUnit", - "UnitType" => "UnitType", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "VideoBumperType" => "VideoBumperType", - "VideoPosition.Type" => "VideoPositionType", - "getForecast" => "GetForecast", - "getForecastResponse" => "GetForecastResponse", - "getForecastById" => "GetForecastById", - "getForecastByIdResponse" => "GetForecastByIdResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid - * values for {@link LineItem#lineItemType} are - * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other - * values will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItem the target of the forecast. If {@link LineItem#id} is null - * or no line item exists with that ID, a forecast is computed for the - * the subject, predicting what would happen if it were added to the - * system. If a line item already exists with {@link LineItem#id}, the - * forecast is computed for the subject, predicting what would happen - * if the existing line item's settings were modified to match the - * subject. - * @return the forecasted traffic estimates - */ - public function getForecast($lineItem) { - $args = new GetForecast($lineItem); - $result = $this->__soapCall("getForecast", array($args)); - return $result->rval; - } - /** - * Gets a {@link Forecast} for an existing {@link LineItem} object. Only - * line items having type {@link LineItemType#SPONSORSHIP} or - * {@link LineItemType#STANDARD} are valid. Other types will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItemId the ID of a {@link LineItem} to run the forecast on. - * @return the forecasted traffic estimates - */ - public function getForecastById($lineItemId) { - $args = new GetForecastById($lineItemId); - $result = $this->__soapCall("getForecastById", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemService.php deleted file mode 100755 index cd5a47cf5..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/LineItemService.php +++ /dev/null @@ -1,10690 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargeting", false)) { - /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargeting"; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var DeviceCapabilityTargeting - */ - public $deviceCapabilityTargeting; - - /** - * @access public - * @var DeviceCategoryTargeting - */ - public $deviceCategoryTargeting; - - /** - * @access public - * @var DeviceManufacturerTargeting - */ - public $deviceManufacturerTargeting; - - /** - * @access public - * @var MobileCarrierTargeting - */ - public $mobileCarrierTargeting; - - /** - * @access public - * @var MobileDeviceTargeting - */ - public $mobileDeviceTargeting; - - /** - * @access public - * @var MobileDeviceSubmodelTargeting - */ - public $mobileDeviceSubmodelTargeting; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var OperatingSystemVersionTargeting - */ - public $operatingSystemVersionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentTargeting", false)) { - /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; - - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; - - /** - * @access public - * @var integer[] - */ - public $excludedVideoCategoryIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPart", false)) { - /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; - - /** - * @access public - * @var TimeOfDay - */ - public $startTime; - - /** - * @access public - * @var TimeOfDay - */ - public $endTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; - } - - } -} - -if (!class_exists("DayPartTargeting", false)) { - /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargeting"; - - /** - * @access public - * @var DayPart[] - */ - public $dayParts; - - /** - * @access public - * @var tnsDeliveryTimeZone - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DeliveryData", false)) { - /** - * Holds the number of clicks or impressions, determined by - * {@link LineItem#costType}, delivered for a single line item for the - * last 7 days - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryData { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryData"; - - /** - * @access public - * @var integer[] - */ - public $units; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($units = null) { - $this->units = $units; - } - - } -} - -if (!class_exists("DeliveryIndicator", false)) { - /** - * Indicates the delivery performance of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryIndicator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryIndicator"; - - /** - * @access public - * @var double - */ - public $expectedDeliveryPercentage; - - /** - * @access public - * @var double - */ - public $actualDeliveryPercentage; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { - $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; - $this->actualDeliveryPercentage = $actualDeliveryPercentage; - } - - } -} - -if (!class_exists("DeviceCapabilityTargeting", false)) { - /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapabilityTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCapabilities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; - } - - } -} - -if (!class_exists("DeviceCategoryTargeting", false)) { - /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCategoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCategories; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; - } - - } -} - -if (!class_exists("DeviceManufacturerTargeting", false)) { - /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceManufacturerTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturerTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $deviceManufacturers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemAction", false)) { - /** - * Represents the actions that can be performed on {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemAction"; - - /** - * @access public - * @var string - */ - public $LineItemActionType; - private $_parameterMap = array( - "LineItemAction.Type" => "LineItemActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemPage", false)) { - /** - * Captures a page of {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var LineItem[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("LineItemSummary", false)) { - /** - * The {@code LineItemSummary} represents the base class from which a {@code - * LineItem} is derived. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemSummary"; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $orderName; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var tnsStartDateTimeType - */ - public $startDateTimeType; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var integer - */ - public $autoExtensionDays; - - /** - * @access public - * @var boolean - */ - public $unlimitedEndDateTime; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var tnsLineItemSummaryDuration - */ - public $duration; - - /** - * @access public - * @var integer - */ - public $unitsBought; - - /** - * @access public - * @var Money - */ - public $costPerUnit; - - /** - * @access public - * @var Money - */ - public $valueCostPerUnit; - - /** - * @access public - * @var tnsCostType - */ - public $costType; - - /** - * @access public - * @var tnsLineItemDiscountType - */ - public $discountType; - - /** - * @access public - * @var double - */ - public $discount; - - /** - * @access public - * @var integer - */ - public $contractedUnitsBought; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var tnsCompanionDeliveryOption - */ - public $companionDeliveryOption; - - /** - * @access public - * @var tnsCreativePersistenceType - */ - public $creativePersistenceType; - - /** - * @access public - * @var boolean - */ - public $allowOverbook; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * @access public - * @var boolean - */ - public $reserveAtCreation; - - /** - * @access public - * @var Stats - */ - public $stats; - - /** - * @access public - * @var DeliveryIndicator - */ - public $deliveryIndicator; - - /** - * @access public - * @var DeliveryData - */ - public $deliveryData; - - /** - * @access public - * @var Money - */ - public $budget; - - /** - * @access public - * @var tnsComputedStatus - */ - public $status; - - /** - * @access public - * @var tnsLineItemSummaryReservationStatus - */ - public $reservationStatus; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var string - */ - public $webPropertyCode; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var boolean - */ - public $disableSameAdvertiserCompetitiveExclusion; - - /** - * @access public - * @var string - */ - public $lastModifiedByApp; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var DateTime - */ - public $creationDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var boolean - */ - public $isMissingCreatives; - - /** - * @access public - * @var string - */ - public $LineItemSummaryType; - private $_parameterMap = array( - "LineItemSummary.Type" => "LineItemSummaryType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MobileCarrierTargeting", false)) { - /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrierTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $mobileCarriers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; - } - - } -} - -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDeviceSubmodels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; - } - - } -} - -if (!class_exists("MobileDeviceTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDevices; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; - - /** - * @access public - * @var Technology[] - */ - public $excludedOperatingSystemVersions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PauseLineItems", false)) { - /** - * The action used for pausing {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PauseLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PauseLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("ReleaseLineItems", false)) { - /** - * The action used for releasing {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReleaseLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReleaseLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReserveLineItems", false)) { - /** - * The action used for reserving {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReserveLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReserveLineItems"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $LineItemActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("ResumeLineItems", false)) { - /** - * The action used for resuming {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ResumeLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ResumeLineItems"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $LineItemActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Stats", false)) { - /** - * {@code Stats} contains trafficking statistics for {@link LineItem} and - * {@link LineItemCreativeAssociation} objects - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Stats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Stats"; - - /** - * @access public - * @var integer - */ - public $impressionsDelivered; - - /** - * @access public - * @var integer - */ - public $clicksDelivered; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($impressionsDelivered = null, $clicksDelivered = null) { - $this->impressionsDelivered = $impressionsDelivered; - $this->clicksDelivered = $clicksDelivered; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Targeting", false)) { - /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; - - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; - - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TimeOfDay", false)) { - /** - * Represents a specific time in a day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnarchiveLineItems", false)) { - /** - * The action used for unarchiving {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnarchiveLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnarchiveLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoPosition", false)) { - /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; - - /** - * @access public - * @var integer - */ - public $midrollIndex; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; - } - - } -} - -if (!class_exists("VideoPositionTargeting", false)) { - /** - * Represents positions within and around a video where ads can be targeted to. - *

- * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionTargeting"; - - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; - } - - } -} - -if (!class_exists("VideoPositionWithinPod", false)) { - /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionWithinPod"; - - /** - * @access public - * @var integer - */ - public $index; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($index = null) { - $this->index = $index; - } - - } -} - -if (!class_exists("VideoPositionTarget", false)) { - /** - * Represents the options for targetable positions within a video. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; - - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanionDeliveryOption", false)) { - /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanionDeliveryOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanionDeliveryOption"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ComputedStatus", false)) { - /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ComputedStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ComputedStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryTimeZone { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryTimeZone"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemDiscountType", false)) { - /** - * Describes the possible discount types on the cost of booking a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemDiscountType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemDiscountType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryDuration", false)) { - /** - * Specifies the time period used for limiting the number of ads served for a - * {@link LineItem}. For valid and default values of duration for each line - * item type, see {@link LineItem#duration}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemSummaryDuration { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemSummary.Duration"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryReservationStatus", false)) { - /** - * Specifies the reservation status of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemSummaryReservationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemSummary.ReservationStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MinuteOfHour", false)) { - /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MinuteOfHour { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MinuteOfHour"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativePersistenceType", false)) { - /** - * Specifies options to prevent ads from replacing or appearing with this - * line item. If persistence is set, this line item's ads will not be - * replaced over time, whether through AJAX or other means, such as - * companions of video ads. - * Additionally, if set to exclude none, other ads can be shown in any - * slots not being used by this line item. If set to exclude display ads, - * video ads can be shown, but no other display ads can be shown, even - * in slots that aren't used by this line item. If set to exclude video ads, - * video ads cannot be shown, but other display ads can be shown in unused - * slots. If set to exclude all ads, no other ads can be shown until the - * page is changed. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativePersistenceType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativePersistenceType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StartDateTimeType", false)) { - /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StartDateTimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StartDateTimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UnitType", false)) { - /** - * Indicates the type of unit used for defining a reservation. The - * {@link CostType} can differ from the {@link UnitType} - an - * ad can have an impression goal, but be billed by its click. Usually - * {@link CostType} and {@link UnitType} will refer to the - * same unit. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnitType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnitType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoBumperType", false)) { - /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoBumperType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoBumperType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoPositionType", false)) { - /** - * Represents a targetable position within a video. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPosition.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateLineItem", false)) { - /** - * Creates a new {@link LineItem}. - * - * These fields are required: - *
    - *
  • {@link LineItem#costPerUnit}
  • - *
  • {@link LineItem#costType}
  • - *
  • {@link LineItem#endDateTime}
  • - *
  • {@link LineItem#lineItemType}
  • - *
  • {@link LineItem#name}
  • - *
  • {@link LineItem#orderId}
  • - *
  • {@link LineItem#startDateTime}
  • - *
  • {@link LineItem#unitsBought}
  • - *
  • {@link LineItem#creativePlaceholders}
  • - *
  • {@link LineItem#targeting}
  • - *
- * - * @param lineItem the line item to create - * @return the line item with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $lineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; - } - - } -} - -if (!class_exists("CreateLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateLineItems", false)) { - /** - * Creates new {@link LineItem} objects. - * - * @param lineItems the line items to create - * @return the created line items with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $lineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItems = null) { - $this->lineItems = $lineItems; - } - - } -} - -if (!class_exists("CreateLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItem", false)) { - /** - * Returns the {@link LineItem} uniquely identified by the given ID. - * - * @param lineItemId the ID of the line item, which must already exist - * @return the {@code LineItem} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null) { - $this->lineItemId = $lineItemId; - } - - } -} - -if (!class_exists("GetLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItemsByStatement", false)) { - /** - * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL propertyEntity property
CostType{@link LineItem#costType}
CreationDateTime{@link LineItem#creationDateTime}
DeliveryRateType{@link LineItem#deliveryRateType}
EndDateTime{@link LineItem#endDateTime}
ExternalId{@link LineItem#externalId}
Id{@link LineItem#id}
IsMissingCreatives{@link LineItem#isMissingCreatives}
LastModifiedDateTime{@link LineItem#lastModifiedDateTime}
LineItemType{@link LineItem#lineItemType}
Name{@link LineItem#name}
OrderId{@link LineItem#orderId}
StartDateTime{@link LineItem#startDateTime}
Status{@link LineItem#status}
UnitsBought{@link LineItem#unitsBought}
- * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items. - * @return the line items that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItemsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetLineItemsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItemsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformLineItemAction", false)) { - /** - * Performs actions on {@link LineItem} objects that match the given - * {@link Statement#query}. - * - * @param lineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemAction - */ - public $lineItemAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemAction = null, $filterStatement = null) { - $this->lineItemAction = $lineItemAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformLineItemActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformLineItemActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItem", false)) { - /** - * Updates the specified {@link LineItem}. - * - * @param lineItem the line item to update - * @return the updated line item - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $lineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; - } - - } -} - -if (!class_exists("UpdateLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItems", false)) { - /** - * Updates the specified {@link LineItem} objects. - * - * @param lineItems the line items to update - * @return the updated line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $lineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItems = null) { - $this->lineItems = $lineItems; - } - - } -} - -if (!class_exists("UpdateLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateLineItems", false)) { - /** - * The action used for activating {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveLineItems", false)) { - /** - * The action used for archiving {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ArchiveLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ArchiveLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeleteLineItems", false)) { - /** - * The action used for deleting {@link LineItem} objects. A line item can be - * deleted if it has never been eligible to serve. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeleteLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeleteLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("LineItem", false)) { - /** - * {@code LineItem} is an advertiser's commitment to purchase a specific number - * of ad impressions, clicks, or time. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItem extends LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItem"; - - /** - * @access public - * @var Targeting - */ - public $targeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - parent::__construct(); - $this->targeting = $targeting; - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("ReserveAndOverbookLineItems", false)) { - /** - * The action used for reserving and overbooking {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReserveAndOverbookLineItems extends ReserveLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReserveAndOverbookLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("ResumeAndOverbookLineItems", false)) { - /** - * The action used for resuming and overbooking {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ResumeAndOverbookLineItems extends ResumeLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ResumeAndOverbookLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("LineItemService", false)) { - /** - * LineItemService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemService extends DfpSoapClient { - - const SERVICE_NAME = "LineItemService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/LineItemService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/LineItemService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateLineItems" => "ActivateLineItems", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "TechnologyTargeting" => "TechnologyTargeting", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveLineItems" => "ArchiveLineItems", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", - "CreativeError" => "CreativeError", - "CreativePlaceholder" => "CreativePlaceholder", - "CrossSellError" => "CrossSellError", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPart" => "DayPart", - "DayPartTargeting" => "DayPartTargeting", - "DayPartTargetingError" => "DayPartTargetingError", - "DeleteLineItems" => "DeleteLineItems", - "DeliveryData" => "DeliveryData", - "DeliveryIndicator" => "DeliveryIndicator", - "DeviceCapability" => "DeviceCapability", - "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", - "DeviceCategory" => "DeviceCategory", - "DeviceCategoryTargeting" => "DeviceCategoryTargeting", - "DeviceManufacturer" => "DeviceManufacturer", - "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemAction" => "LineItemAction", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItem" => "LineItem", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "LineItemPage" => "LineItemPage", - "LineItemSummary" => "LineItemSummary", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileCarrierTargeting" => "MobileCarrierTargeting", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", - "MobileDeviceTargeting" => "MobileDeviceTargeting", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PauseLineItems" => "PauseLineItems", - "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", - "ReleaseLineItems" => "ReleaseLineItems", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", - "ReserveLineItems" => "ReserveLineItems", - "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", - "ResumeLineItems" => "ResumeLineItems", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "Stats" => "Stats", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Targeting" => "Targeting", - "TeamError" => "TeamError", - "Technology" => "Technology", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TimeOfDay" => "TimeOfDay", - "TypeError" => "TypeError", - "UnarchiveLineItems" => "UnarchiveLineItems", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "VideoPosition" => "VideoPosition", - "VideoPositionTargeting" => "VideoPositionTargeting", - "VideoPositionWithinPod" => "VideoPositionWithinPod", - "VideoPositionTarget" => "VideoPositionTarget", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanionDeliveryOption" => "CompanionDeliveryOption", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "ComputedStatus" => "ComputedStatus", - "CostType" => "CostType", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeRotationType" => "CreativeRotationType", - "CreativeSizeType" => "CreativeSizeType", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayOfWeek" => "DayOfWeek", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryTimeZone" => "DeliveryTimeZone", - "DeliveryRateType" => "DeliveryRateType", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemDiscountType" => "LineItemDiscountType", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemSummary.Duration" => "LineItemSummaryDuration", - "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", - "LineItemType" => "LineItemType", - "MinuteOfHour" => "MinuteOfHour", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "CreativePersistenceType" => "CreativePersistenceType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TimeUnit" => "TimeUnit", - "UnitType" => "UnitType", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "VideoBumperType" => "VideoBumperType", - "VideoPosition.Type" => "VideoPositionType", - "createLineItem" => "CreateLineItem", - "createLineItemResponse" => "CreateLineItemResponse", - "createLineItems" => "CreateLineItems", - "createLineItemsResponse" => "CreateLineItemsResponse", - "getLineItem" => "GetLineItem", - "getLineItemResponse" => "GetLineItemResponse", - "getLineItemsByStatement" => "GetLineItemsByStatement", - "getLineItemsByStatementResponse" => "GetLineItemsByStatementResponse", - "performLineItemAction" => "PerformLineItemAction", - "performLineItemActionResponse" => "PerformLineItemActionResponse", - "updateLineItem" => "UpdateLineItem", - "updateLineItemResponse" => "UpdateLineItemResponse", - "updateLineItems" => "UpdateLineItems", - "updateLineItemsResponse" => "UpdateLineItemsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link LineItem}. - * - * These fields are required: - *
    - *
  • {@link LineItem#costPerUnit}
  • - *
  • {@link LineItem#costType}
  • - *
  • {@link LineItem#endDateTime}
  • - *
  • {@link LineItem#lineItemType}
  • - *
  • {@link LineItem#name}
  • - *
  • {@link LineItem#orderId}
  • - *
  • {@link LineItem#startDateTime}
  • - *
  • {@link LineItem#unitsBought}
  • - *
  • {@link LineItem#creativePlaceholders}
  • - *
  • {@link LineItem#targeting}
  • - *
- * - * @param lineItem the line item to create - * @return the line item with its ID filled in - */ - public function createLineItem($lineItem) { - $args = new CreateLineItem($lineItem); - $result = $this->__soapCall("createLineItem", array($args)); - return $result->rval; - } - /** - * Creates new {@link LineItem} objects. - * - * @param lineItems the line items to create - * @return the created line items with their IDs filled in - */ - public function createLineItems($lineItems) { - $args = new CreateLineItems($lineItems); - $result = $this->__soapCall("createLineItems", array($args)); - return $result->rval; - } - /** - * Returns the {@link LineItem} uniquely identified by the given ID. - * - * @param lineItemId the ID of the line item, which must already exist - * @return the {@code LineItem} uniquely identified by the given ID - */ - public function getLineItem($lineItemId) { - $args = new GetLineItem($lineItemId); - $result = $this->__soapCall("getLineItem", array($args)); - return $result->rval; - } - /** - * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL propertyEntity property
CostType{@link LineItem#costType}
CreationDateTime{@link LineItem#creationDateTime}
DeliveryRateType{@link LineItem#deliveryRateType}
EndDateTime{@link LineItem#endDateTime}
ExternalId{@link LineItem#externalId}
Id{@link LineItem#id}
IsMissingCreatives{@link LineItem#isMissingCreatives}
LastModifiedDateTime{@link LineItem#lastModifiedDateTime}
LineItemType{@link LineItem#lineItemType}
Name{@link LineItem#name}
OrderId{@link LineItem#orderId}
StartDateTime{@link LineItem#startDateTime}
Status{@link LineItem#status}
UnitsBought{@link LineItem#unitsBought}
- * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items. - * @return the line items that match the given filter - */ - public function getLineItemsByStatement($filterStatement) { - $args = new GetLineItemsByStatement($filterStatement); - $result = $this->__soapCall("getLineItemsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link LineItem} objects that match the given - * {@link Statement#query}. - * - * @param lineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items - * @return the result of the action performed - */ - public function performLineItemAction($lineItemAction, $filterStatement) { - $args = new PerformLineItemAction($lineItemAction, $filterStatement); - $result = $this->__soapCall("performLineItemAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItem}. - * - * @param lineItem the line item to update - * @return the updated line item - */ - public function updateLineItem($lineItem) { - $args = new UpdateLineItem($lineItem); - $result = $this->__soapCall("updateLineItem", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItem} objects. - * - * @param lineItems the line items to update - * @return the updated line items - */ - public function updateLineItems($lineItems) { - $args = new UpdateLineItems($lineItems); - $result = $this->__soapCall("updateLineItems", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php deleted file mode 100755 index 5ca7173c2..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/LineItemTemplateService.php +++ /dev/null @@ -1,5317 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemTemplate", false)) { - /** - * Represents the template that populates the fields of a new line item being - * created. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemTemplate"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var boolean - */ - public $isDefault; - - /** - * @access public - * @var string - */ - public $lineItemName; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var boolean - */ - public $enabledForSameAdvertiserException; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var DateTime - */ - public $startTime; - - /** - * @access public - * @var DateTime - */ - public $endTime; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $isDefault = null, $lineItemName = null, $targetPlatform = null, $enabledForSameAdvertiserException = null, $notes = null, $lineItemType = null, $startTime = null, $endTime = null, $deliveryRateType = null, $roadblockingType = null, $creativeRotationType = null) { - $this->id = $id; - $this->name = $name; - $this->isDefault = $isDefault; - $this->lineItemName = $lineItemName; - $this->targetPlatform = $targetPlatform; - $this->enabledForSameAdvertiserException = $enabledForSameAdvertiserException; - $this->notes = $notes; - $this->lineItemType = $lineItemType; - $this->startTime = $startTime; - $this->endTime = $endTime; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->creativeRotationType = $creativeRotationType; - } - - } -} - -if (!class_exists("LineItemTemplatePage", false)) { - /** - * Captures a page of {@link LineItemTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemTemplatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemTemplatePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var LineItemTemplate[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetLineItemTemplatesByStatement", false)) { - /** - * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link LineItemTemplate#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item templates - * @return the line item templates that match the given filter - * @throws ApiException if a RuntimeException is thrown - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItemTemplatesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetLineItemTemplatesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItemTemplatesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemTemplatePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("LineItemTemplateService", false)) { - /** - * LineItemTemplateService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemTemplateService extends DfpSoapClient { - - const SERVICE_NAME = "LineItemTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/LineItemTemplateService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/LineItemTemplateService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "CreativeError" => "CreativeError", - "CrossSellError" => "CrossSellError", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPartTargetingError" => "DayPartTargetingError", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "LineItemTemplate" => "LineItemTemplate", - "LineItemTemplatePage" => "LineItemTemplatePage", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeRotationType" => "CreativeRotationType", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryRateType" => "DeliveryRateType", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemType" => "LineItemType", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "getLineItemTemplatesByStatement" => "GetLineItemTemplatesByStatement", - "getLineItemTemplatesByStatementResponse" => "GetLineItemTemplatesByStatementResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link LineItemTemplate#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item templates - * @return the line item templates that match the given filter - * @throws ApiException if a RuntimeException is thrown - */ - public function getLineItemTemplatesByStatement($filterStatement) { - $args = new GetLineItemTemplatesByStatement($filterStatement); - $result = $this->__soapCall("getLineItemTemplatesByStatement", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/OrderService.php b/src/Google/Api/Ads/Dfp/v201306/OrderService.php deleted file mode 100755 index 26313eb62..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/OrderService.php +++ /dev/null @@ -1,7193 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderAction", false)) { - /** - * Represents the actions that can be performed on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderAction"; - - /** - * @access public - * @var string - */ - public $OrderActionType; - private $_parameterMap = array( - "OrderAction.Type" => "OrderActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("OrderActionError", false)) { - /** - * Lists all errors associated with performing actions on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderActionError"; - - /** - * @access public - * @var tnsOrderActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Order", false)) { - /** - * An {@code Order} represents a grouping of individual {@link LineItem} - * objects, each of which fulfill an ad request from a particular advertiser. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Order { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Order"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var boolean - */ - public $unlimitedEndDateTime; - - /** - * @access public - * @var tnsOrderStatus - */ - public $status; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var integer - */ - public $externalOrderId; - - /** - * @access public - * @var string - */ - public $poNumber; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $advertiserId; - - /** - * @access public - * @var integer[] - */ - public $advertiserContactIds; - - /** - * @access public - * @var integer - */ - public $agencyId; - - /** - * @access public - * @var integer[] - */ - public $agencyContactIds; - - /** - * @access public - * @var integer - */ - public $creatorId; - - /** - * @access public - * @var integer - */ - public $traffickerId; - - /** - * @access public - * @var integer[] - */ - public $secondaryTraffickerIds; - - /** - * @access public - * @var integer - */ - public $salespersonId; - - /** - * @access public - * @var integer[] - */ - public $secondarySalespersonIds; - - /** - * @access public - * @var integer - */ - public $totalImpressionsDelivered; - - /** - * @access public - * @var integer - */ - public $totalClicksDelivered; - - /** - * @access public - * @var Money - */ - public $totalBudget; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var string - */ - public $lastModifiedByApp; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $startDateTime = null, $endDateTime = null, $unlimitedEndDateTime = null, $status = null, $isArchived = null, $notes = null, $externalOrderId = null, $poNumber = null, $currencyCode = null, $advertiserId = null, $advertiserContactIds = null, $agencyId = null, $agencyContactIds = null, $creatorId = null, $traffickerId = null, $secondaryTraffickerIds = null, $salespersonId = null, $secondarySalespersonIds = null, $totalImpressionsDelivered = null, $totalClicksDelivered = null, $totalBudget = null, $appliedLabels = null, $effectiveAppliedLabels = null, $lastModifiedByApp = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $customFieldValues = null) { - $this->id = $id; - $this->name = $name; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->status = $status; - $this->isArchived = $isArchived; - $this->notes = $notes; - $this->externalOrderId = $externalOrderId; - $this->poNumber = $poNumber; - $this->currencyCode = $currencyCode; - $this->advertiserId = $advertiserId; - $this->advertiserContactIds = $advertiserContactIds; - $this->agencyId = $agencyId; - $this->agencyContactIds = $agencyContactIds; - $this->creatorId = $creatorId; - $this->traffickerId = $traffickerId; - $this->secondaryTraffickerIds = $secondaryTraffickerIds; - $this->salespersonId = $salespersonId; - $this->secondarySalespersonIds = $secondarySalespersonIds; - $this->totalImpressionsDelivered = $totalImpressionsDelivered; - $this->totalClicksDelivered = $totalClicksDelivered; - $this->totalBudget = $totalBudget; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->appliedTeamIds = $appliedTeamIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("OrderPage", false)) { - /** - * Captures a page of {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Order[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PauseOrders", false)) { - /** - * The action used for pausing {@link Order} objects. All {@link LineItem} - * objects within the order will be paused as well. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PauseOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PauseOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ResumeOrders", false)) { - /** - * The action used for resuming {@link Order} objects. {@link LineItem} objects within - * the order that are eligble to resume will resume as well. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ResumeOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ResumeOrders"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("RetractOrders", false)) { - /** - * The action used for retracting {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RetractOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RetractOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("RetractOrdersWithoutReservationChanges", false)) { - /** - * The action used for retracting {@link Order} objects. This action does not - * make any changes to the {@link LineItem#reservationStatus} of the line items - * within the order. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RetractOrdersWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RetractOrdersWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SubmitOrdersForApproval", false)) { - /** - * The action used for submitting {@link Order} objects for approval. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SubmitOrdersForApproval extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SubmitOrdersForApproval"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("SubmitOrdersForApprovalAndOverbook", false)) { - /** - * The action used for submitting and overbooking {@link Order} objects for approval. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SubmitOrdersForApprovalAndOverbook"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", false)) { - /** - * The action used for submitting {@link Order} objects for approval. This - * action does not make any changes to the {@link LineItem#reservationStatus} - * of the line items within the order. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SubmitOrdersForApprovalWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeError", false)) { - /** - * Lists all errors associated with template instantiated creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TemplateInstantiatedCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; - - /** - * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnarchiveOrders", false)) { - /** - * The action used for unarchiving {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnarchiveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnarchiveOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderStatus", false)) { - /** - * Describes the order statuses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { - /** - * The reason for the error - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TemplateInstantiatedCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateOrder", false)) { - /** - * Creates a new {@link Order}. - * - * The following fields are required: - *
    - *
  • {@link Order#advertiserId}
  • - *
  • {@link Order#name}
  • - *
  • {@link Order#traffickerId}
  • - *
- * - * @param order the order to create - * @return the order with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $order; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($order = null) { - $this->order = $order; - } - - } -} - -if (!class_exists("CreateOrderResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateOrders", false)) { - /** - * Creates new {@link Order} objects. - * - * @param orders the orders to create - * @return the created orders with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $orders; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orders = null) { - $this->orders = $orders; - } - - } -} - -if (!class_exists("CreateOrdersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateOrdersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetOrder", false)) { - /** - * Returns the {@link Order} uniquely identified by the given ID. - * - * @param orderId the ID of the order, which must already exist - * @return the {@code Order} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderId = null) { - $this->orderId = $orderId; - } - - } -} - -if (!class_exists("GetOrderResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetOrdersByStatement", false)) { - /** - * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code advertiserId}{@link Order#advertiserId}
{@code endDateTime}{@link Order#endDateTime}
{@code id}{@link Order#id}
{@code name}{@link Order#name}
{@code salespersonId}{@link Order#salespersonId}
{@code startDateTime}{@link Order#startDateTime}
{@code status}{@link Order#status}
{@code traffickerId}{@link Order#traffickerId}
{@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the orders that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetOrdersByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetOrdersByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetOrdersByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var OrderPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformOrderAction", false)) { - /** - * Performs actions on {@link Order} objects that match the given - * {@link Statement#query}. - * - * @param orderAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformOrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var OrderAction - */ - public $orderAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderAction = null, $filterStatement = null) { - $this->orderAction = $orderAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformOrderActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformOrderActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateOrder", false)) { - /** - * Updates the specified {@link Order}. - * - * @param order the order to update - * @return the updated order - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $order; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($order = null) { - $this->order = $order; - } - - } -} - -if (!class_exists("UpdateOrderResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateOrders", false)) { - /** - * Updates the specified {@link Order} objects. - * - * @param orders the orders to update - * @return the updated orders - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $orders; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orders = null) { - $this->orders = $orders; - } - - } -} - -if (!class_exists("UpdateOrdersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateOrdersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ApproveOrders", false)) { - /** - * The action used for approving {@link Order} objects. All {@link LineItem} - * objects within the order will be approved as well. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApproveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApproveOrders"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("ApproveOrdersWithoutReservationChanges", false)) { - /** - * The action used for approving {@link Order} objects. All {@link LineItem} - * objects within the order will be approved as well. This action does not - * make any changes to the {@link LineItem#reservationStatus} of the line - * items within the order. If there are reservable line items that have not - * been reserved the operation will not succeed. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApproveOrdersWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApproveOrdersWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("ArchiveOrders", false)) { - /** - * The action used for archiving {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ArchiveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ArchiveOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeleteOrders", false)) { - /** - * The action used for deleting {@link Order} objects. All line items within - * that order are also deleted. Orders can only be deleted if none of its line - * items have been eligible to serve. This action can be used to delete - * proposed orders and line items if they are no longer valid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeleteOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeleteOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("DisapproveOrders", false)) { - /** - * The action used for disapproving {@link Order} objects. All {@link LineItem} - * objects within the order will be disapproved as well. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DisapproveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DisapproveOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("DisapproveOrdersWithoutReservationChanges", false)) { - /** - * The action used for disapproving {@link Order} objects. All {@link LineItem} - * objects within the order will be disapproved as well. This action does not - * make any changes to the {@link LineItem#reservationStatus} of the line items - * within the order. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DisapproveOrdersWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DisapproveOrdersWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ResumeAndOverbookOrders", false)) { - /** - * The action used for resuming and overbooking {@link Order} objects. - * All {@link LineItem} objects within the order will resume as well. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ResumeAndOverbookOrders extends ResumeOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ResumeAndOverbookOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApproveAndOverbookOrders", false)) { - /** - * The action used for approving and overbooking {@link Order} objects. - * All {@link LineItem} objects within the order will be approved as well. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApproveAndOverbookOrders extends ApproveOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApproveAndOverbookOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("OrderService", false)) { - /** - * OrderService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderService extends DfpSoapClient { - - const SERVICE_NAME = "OrderService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/OrderService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/OrderService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", - "ApproveOrders" => "ApproveOrders", - "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", - "ArchiveOrders" => "ArchiveOrders", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "CreativeError" => "CreativeError", - "CrossSellError" => "CrossSellError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPartTargetingError" => "DayPartTargetingError", - "DeleteOrders" => "DeleteOrders", - "DisapproveOrders" => "DisapproveOrders", - "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OrderAction" => "OrderAction", - "OrderActionError" => "OrderActionError", - "Order" => "Order", - "OrderError" => "OrderError", - "OrderPage" => "OrderPage", - "ParseError" => "ParseError", - "PauseOrders" => "PauseOrders", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", - "ResumeOrders" => "ResumeOrders", - "RetractOrders" => "RetractOrders", - "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SubmitOrdersForApproval" => "SubmitOrdersForApproval", - "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", - "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", - "TeamError" => "TeamError", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UnarchiveOrders" => "UnarchiveOrders", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderActionError.Reason" => "OrderActionErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "OrderStatus" => "OrderStatus", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "createOrder" => "CreateOrder", - "createOrderResponse" => "CreateOrderResponse", - "createOrders" => "CreateOrders", - "createOrdersResponse" => "CreateOrdersResponse", - "getOrder" => "GetOrder", - "getOrderResponse" => "GetOrderResponse", - "getOrdersByStatement" => "GetOrdersByStatement", - "getOrdersByStatementResponse" => "GetOrdersByStatementResponse", - "performOrderAction" => "PerformOrderAction", - "performOrderActionResponse" => "PerformOrderActionResponse", - "updateOrder" => "UpdateOrder", - "updateOrderResponse" => "UpdateOrderResponse", - "updateOrders" => "UpdateOrders", - "updateOrdersResponse" => "UpdateOrdersResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Order}. - * - * The following fields are required: - *
    - *
  • {@link Order#advertiserId}
  • - *
  • {@link Order#name}
  • - *
  • {@link Order#traffickerId}
  • - *
- * - * @param order the order to create - * @return the order with its ID filled in - */ - public function createOrder($order) { - $args = new CreateOrder($order); - $result = $this->__soapCall("createOrder", array($args)); - return $result->rval; - } - /** - * Creates new {@link Order} objects. - * - * @param orders the orders to create - * @return the created orders with their IDs filled in - */ - public function createOrders($orders) { - $args = new CreateOrders($orders); - $result = $this->__soapCall("createOrders", array($args)); - return $result->rval; - } - /** - * Returns the {@link Order} uniquely identified by the given ID. - * - * @param orderId the ID of the order, which must already exist - * @return the {@code Order} uniquely identified by the given ID - */ - public function getOrder($orderId) { - $args = new GetOrder($orderId); - $result = $this->__soapCall("getOrder", array($args)); - return $result->rval; - } - /** - * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code advertiserId}{@link Order#advertiserId}
{@code endDateTime}{@link Order#endDateTime}
{@code id}{@link Order#id}
{@code name}{@link Order#name}
{@code salespersonId}{@link Order#salespersonId}
{@code startDateTime}{@link Order#startDateTime}
{@code status}{@link Order#status}
{@code traffickerId}{@link Order#traffickerId}
{@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the orders that match the given filter - */ - public function getOrdersByStatement($filterStatement) { - $args = new GetOrdersByStatement($filterStatement); - $result = $this->__soapCall("getOrdersByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link Order} objects that match the given - * {@link Statement#query}. - * - * @param orderAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the result of the action performed - */ - public function performOrderAction($orderAction, $filterStatement) { - $args = new PerformOrderAction($orderAction, $filterStatement); - $result = $this->__soapCall("performOrderAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Order}. - * - * @param order the order to update - * @return the updated order - */ - public function updateOrder($order) { - $args = new UpdateOrder($order); - $result = $this->__soapCall("updateOrder", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Order} objects. - * - * @param orders the orders to update - * @return the updated orders - */ - public function updateOrders($orders) { - $args = new UpdateOrders($orders); - $result = $this->__soapCall("updateOrders", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/PlacementService.php b/src/Google/Api/Ads/Dfp/v201306/PlacementService.php deleted file mode 100755 index 7694d9d31..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/PlacementService.php +++ /dev/null @@ -1,4119 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementAction", false)) { - /** - * Represents the actions that can be performed on {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PlacementAction"; - - /** - * @access public - * @var string - */ - public $PlacementActionType; - private $_parameterMap = array( - "PlacementAction.Type" => "PlacementActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("PlacementError", false)) { - /** - * Class defining all validation errors for a placement. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PlacementError"; - - /** - * @access public - * @var tnsPlacementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementPage", false)) { - /** - * Captures a page of {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PlacementPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Placement[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SiteTargetingInfo", false)) { - /** - * Contains information required for AdWords advertisers to place their ads. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SiteTargetingInfo { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SiteTargetingInfo"; - - /** - * @access public - * @var string - */ - public $targetingDescription; - - /** - * @access public - * @var string - */ - public $targetingSiteName; - - /** - * @access public - * @var string - */ - public $targetingAdLocation; - - /** - * @access public - * @var string - */ - public $SiteTargetingInfoType; - private $_parameterMap = array( - "SiteTargetingInfo.Type" => "SiteTargetingInfoType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null, $SiteTargetingInfoType = null) { - $this->targetingDescription = $targetingDescription; - $this->targetingSiteName = $targetingSiteName; - $this->targetingAdLocation = $targetingAdLocation; - $this->SiteTargetingInfoType = $SiteTargetingInfoType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryStatus", false)) { - /** - * Represents the status of objects that represent inventory - ad units and - * placements. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PlacementErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PlacementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreatePlacement", false)) { - /** - * Creates a new {@link Placement}. - * - * The following fields are required: - *
    - *
  • {@link Placement#name}
  • - *
  • {@link Placement#description}
  • - *
- * - * @param placement the placement to create - * @return the new placement with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreatePlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $placement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placement = null) { - $this->placement = $placement; - } - - } -} - -if (!class_exists("CreatePlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreatePlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreatePlacements", false)) { - /** - * Creates new {@link Placement} objects. - * - * @param placements the placements to create - * @return the new placements, with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreatePlacements { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $placements; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placements = null) { - $this->placements = $placements; - } - - } -} - -if (!class_exists("CreatePlacementsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreatePlacementsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetPlacement", false)) { - /** - * Returns the {@link Placement} uniquely identified by the given ID. - * - * @param placementId ID of the placement, which must already exist - * @return the {@code Placement} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetPlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $placementId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementId = null) { - $this->placementId = $placementId; - } - - } -} - -if (!class_exists("GetPlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetPlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetPlacementsByStatement", false)) { - /** - * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code description}{@link Placement#description}
{@code id}{@link Placement#id}
{@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
{@code name}{@link Placement#name}
{@code placementCode}{@link Placement#placementCode}
{@code status}{@link Placement#status}
{@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the placements that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetPlacementsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetPlacementsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetPlacementsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var PlacementPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformPlacementAction", false)) { - /** - * Performs actions on {@link Placement} objects that match the given - * {@link Statement#query}. - * - * @param placementAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformPlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var PlacementAction - */ - public $placementAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementAction = null, $filterStatement = null) { - $this->placementAction = $placementAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformPlacementActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformPlacementActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdatePlacement", false)) { - /** - * Updates the specified {@link Placement}. - * - * @param placement the placement to update - * @return the updated placement - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdatePlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $placement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placement = null) { - $this->placement = $placement; - } - - } -} - -if (!class_exists("UpdatePlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdatePlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdatePlacements", false)) { - /** - * Updates the specified {@link Placement} objects. - * - * @param placements the placements to update - * @return the updated placements - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdatePlacements { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $placements; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placements = null) { - $this->placements = $placements; - } - - } -} - -if (!class_exists("UpdatePlacementsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdatePlacementsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivatePlacements", false)) { - /** - * The action used for activating {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivatePlacements extends PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivatePlacements"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - parent::__construct(); - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchivePlacements", false)) { - /** - * The action used for archiving {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ArchivePlacements extends PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ArchivePlacements"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - parent::__construct(); - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivatePlacements", false)) { - /** - * The action used for deactivating {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivatePlacements extends PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivatePlacements"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - parent::__construct(); - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Placement", false)) { - /** - * A {@code Placement} groups related {@code AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Placement extends SiteTargetingInfo { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Placement"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var string - */ - public $placementCode; - - /** - * @access public - * @var tnsInventoryStatus - */ - public $status; - - /** - * @access public - * @var boolean - */ - public $isAdSenseTargetingEnabled; - - /** - * @access public - * @var boolean - */ - public $isAdPlannerTargetingEnabled; - - /** - * @access public - * @var string - */ - public $adSenseTargetingLocale; - - /** - * @access public - * @var string[] - */ - public $targetedAdUnitIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $placementCode = null, $status = null, $isAdSenseTargetingEnabled = null, $isAdPlannerTargetingEnabled = null, $adSenseTargetingLocale = null, $targetedAdUnitIds = null, $lastModifiedDateTime = null, $targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null, $SiteTargetingInfoType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->placementCode = $placementCode; - $this->status = $status; - $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; - $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; - $this->adSenseTargetingLocale = $adSenseTargetingLocale; - $this->targetedAdUnitIds = $targetedAdUnitIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->targetingDescription = $targetingDescription; - $this->targetingSiteName = $targetingSiteName; - $this->targetingAdLocation = $targetingAdLocation; - $this->SiteTargetingInfoType = $SiteTargetingInfoType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("PlacementService", false)) { - /** - * PlacementService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementService extends DfpSoapClient { - - const SERVICE_NAME = "PlacementService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/PlacementService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/PlacementService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivatePlacements" => "ActivatePlacements", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "ArchivePlacements" => "ArchivePlacements", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivatePlacements" => "DeactivatePlacements", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PlacementAction" => "PlacementAction", - "Placement" => "Placement", - "PlacementError" => "PlacementError", - "PlacementPage" => "PlacementPage", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegExError" => "RegExError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SiteTargetingInfo" => "SiteTargetingInfo", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InventoryStatus" => "InventoryStatus", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PlacementError.Reason" => "PlacementErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createPlacement" => "CreatePlacement", - "createPlacementResponse" => "CreatePlacementResponse", - "createPlacements" => "CreatePlacements", - "createPlacementsResponse" => "CreatePlacementsResponse", - "getPlacement" => "GetPlacement", - "getPlacementResponse" => "GetPlacementResponse", - "getPlacementsByStatement" => "GetPlacementsByStatement", - "getPlacementsByStatementResponse" => "GetPlacementsByStatementResponse", - "performPlacementAction" => "PerformPlacementAction", - "performPlacementActionResponse" => "PerformPlacementActionResponse", - "updatePlacement" => "UpdatePlacement", - "updatePlacementResponse" => "UpdatePlacementResponse", - "updatePlacements" => "UpdatePlacements", - "updatePlacementsResponse" => "UpdatePlacementsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Placement}. - * - * The following fields are required: - *
    - *
  • {@link Placement#name}
  • - *
  • {@link Placement#description}
  • - *
- * - * @param placement the placement to create - * @return the new placement with its ID set - */ - public function createPlacement($placement) { - $args = new CreatePlacement($placement); - $result = $this->__soapCall("createPlacement", array($args)); - return $result->rval; - } - /** - * Creates new {@link Placement} objects. - * - * @param placements the placements to create - * @return the new placements, with their IDs filled in - */ - public function createPlacements($placements) { - $args = new CreatePlacements($placements); - $result = $this->__soapCall("createPlacements", array($args)); - return $result->rval; - } - /** - * Returns the {@link Placement} uniquely identified by the given ID. - * - * @param placementId ID of the placement, which must already exist - * @return the {@code Placement} uniquely identified by the given ID - */ - public function getPlacement($placementId) { - $args = new GetPlacement($placementId); - $result = $this->__soapCall("getPlacement", array($args)); - return $result->rval; - } - /** - * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code description}{@link Placement#description}
{@code id}{@link Placement#id}
{@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
{@code name}{@link Placement#name}
{@code placementCode}{@link Placement#placementCode}
{@code status}{@link Placement#status}
{@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the placements that match the given filter - */ - public function getPlacementsByStatement($filterStatement) { - $args = new GetPlacementsByStatement($filterStatement); - $result = $this->__soapCall("getPlacementsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link Placement} objects that match the given - * {@link Statement#query}. - * - * @param placementAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the result of the action performed - */ - public function performPlacementAction($placementAction, $filterStatement) { - $args = new PerformPlacementAction($placementAction, $filterStatement); - $result = $this->__soapCall("performPlacementAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Placement}. - * - * @param placement the placement to update - * @return the updated placement - */ - public function updatePlacement($placement) { - $args = new UpdatePlacement($placement); - $result = $this->__soapCall("updatePlacement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Placement} objects. - * - * @param placements the placements to update - * @return the updated placements - */ - public function updatePlacements($placements) { - $args = new UpdatePlacements($placements); - $result = $this->__soapCall("updatePlacements", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ProductService.php b/src/Google/Api/Ads/Dfp/v201306/ProductService.php deleted file mode 100755 index d5fe6403d..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ProductService.php +++ /dev/null @@ -1,6060 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BaseRateError", false)) { - /** - * An error having to do with {@link BaseRate}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateError"; - - /** - * @access public - * @var tnsBaseRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("ProductAction", false)) { - /** - * Represents the actions that can be performed on products. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductAction"; - - /** - * @access public - * @var string - */ - public $ProductActionType; - private $_parameterMap = array( - "ProductAction.Type" => "ProductActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("ProductActionError", false)) { - /** - * An error lists all error reasons associated with performing action on {@link Product} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductActionError"; - - /** - * @access public - * @var tnsProductActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Product", false)) { - /** - * {@link ProposalLineItem Proposal line items} are created from products, - * from which their properties are copied. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Product { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Product"; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsProductStatus - */ - public $status; - - /** - * @access public - * @var tnsProductType - */ - public $productType; - - /** - * @access public - * @var integer - */ - public $productTemplateId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var string - */ - public $productTemplateDescription; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var tnsRateType - */ - public $rateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var boolean - */ - public $allowFrequencyCapsCustomization; - - /** - * @access public - * @var ProductTemplateTargeting - */ - public $targeting; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($name = null, $status = null, $productType = null, $productTemplateId = null, $id = null, $notes = null, $productTemplateDescription = null, $lastModifiedDateTime = null, $rateType = null, $roadblockingType = null, $creativePlaceholders = null, $lineItemType = null, $priority = null, $frequencyCaps = null, $allowFrequencyCapsCustomization = null, $targeting = null, $customFieldValues = null) { - $this->name = $name; - $this->status = $status; - $this->productType = $productType; - $this->productTemplateId = $productTemplateId; - $this->id = $id; - $this->notes = $notes; - $this->productTemplateDescription = $productTemplateDescription; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->rateType = $rateType; - $this->roadblockingType = $roadblockingType; - $this->creativePlaceholders = $creativePlaceholders; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->frequencyCaps = $frequencyCaps; - $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; - $this->targeting = $targeting; - $this->customFieldValues = $customFieldValues; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductPage", false)) { - /** - * Captures a page of {@link ProductDto} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Product[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ProductTemplateTargeting", false)) { - /** - * Contains targeting criteria for {@link ProductTemplate} objects. - * {@link ProposalLineItem Proposal line items} created from {@link Product products} - * of this template will have this criteria added to {@link ProposalLineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductTemplateTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductTemplateTargeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var boolean - */ - public $allowGeoTargetingCustomization; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var boolean - */ - public $allowAdUnitTargetingCustomization; - - /** - * @access public - * @var boolean - */ - public $allowPlacementTargetingCustomization; - - /** - * @access public - * @var integer[] - */ - public $customizableCustomTargetingKeyIds; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var boolean - */ - public $allowUserDomainTargetingCustomization; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBandwidthGroupTargetingCustomization; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserTargetingCustomization; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserLanguageTargetingCustomization; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var boolean - */ - public $allowOperatingSystemTargetingCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customizableCustomTargetingKeyIds = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null) { - $this->geoTargeting = $geoTargeting; - $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; - $this->inventoryTargeting = $inventoryTargeting; - $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; - $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; - $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; - $this->userDomainTargeting = $userDomainTargeting; - $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; - $this->browserTargeting = $browserTargeting; - $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductStatus", false)) { - /** - * Describes the different statuses for {@link Product}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductType", false)) { - /** - * Describes the type of {@link Product}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateType", false)) { - /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetProductsByStatement", false)) { - /** - * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by - * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject PropertyFilterableSortable
{@code rateCardId}Rate card ID which the product is associated withYesNo
{@code status}{@link Product#status}YesYes
{@code lineItemType}{@link Product#lineItemType}YesYes
{@code productType}{@link Product#productType}YesYes
{@code rateType}{@link Product#rateType}YesYes
{@code productTemplateId}{@link Product#productTemplateId}YesNo
{@code name}{@link Product#name}YesYes
{@code description}{@link Product#description}YesNo
{@code id}{@link Product#id}YesYes
{@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}YesYes
- * - * @param statement a Publisher Query Language statement which specifies the filtering - * criteria over products - * @return the products that match the given statement - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProductsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetProductsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProductsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProductAction", false)) { - /** - * Performs action on {@link Product} objects that satisfy the given {@link Statement}. - * - * @param productAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of products. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductAction - */ - public $productAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productAction = null, $filterStatement = null) { - $this->productAction = $productAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProductActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformProductActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProduct", false)) { - /** - * Updates the specified {@link Product}. - * Note non-updatable fields will not be backfilled. - * - * @param product the product to update - * @return the updated product - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProduct { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product - */ - public $product; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($product = null) { - $this->product = $product; - } - - } -} - -if (!class_exists("UpdateProductResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProductResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProducts", false)) { - /** - * Updates the specified {@link Product} objects. - * Note non-updatable fields will not be backfilled. - * - * @param products the products to update - * @return the updated products - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProducts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product[] - */ - public $products; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($products = null) { - $this->products = $products; - } - - } -} - -if (!class_exists("UpdateProductsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProductsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateProducts", false)) { - /** - * The action used to activate products. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateProducts extends ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateProducts"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - parent::__construct(); - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveProducts", false)) { - /** - * The action used to archive products. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ArchiveProducts extends ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ArchiveProducts"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - parent::__construct(); - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateProducts", false)) { - /** - * The action used to deactivate products. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivateProducts extends ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateProducts"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - parent::__construct(); - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ProductService", false)) { - /** - * ProductService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductService extends DfpSoapClient { - - const SERVICE_NAME = "ProductService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ProductService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ProductService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateProducts" => "ActivateProducts", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveProducts" => "ArchiveProducts", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BaseRateError" => "BaseRateError", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CountryLocation" => "CountryLocation", - "CreativePlaceholder" => "CreativePlaceholder", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateProducts" => "DeactivateProducts", - "DeviceCapability" => "DeviceCapability", - "DeviceCategory" => "DeviceCategory", - "DeviceManufacturer" => "DeviceManufacturer", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "GeoTargeting" => "GeoTargeting", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", - "ProductAction" => "ProductAction", - "ProductActionError" => "ProductActionError", - "Product" => "Product", - "ProductError" => "ProductError", - "ProductPage" => "ProductPage", - "ProductTemplateTargeting" => "ProductTemplateTargeting", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Technology" => "Technology", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeSizeType" => "CreativeSizeType", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "LineItemType" => "LineItemType", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "ProductActionError.Reason" => "ProductActionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "ProductStatus" => "ProductStatus", - "ProductType" => "ProductType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateType" => "RateType", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TimeUnit" => "TimeUnit", - "getProductsByStatement" => "GetProductsByStatement", - "getProductsByStatementResponse" => "GetProductsByStatementResponse", - "performProductAction" => "PerformProductAction", - "performProductActionResponse" => "PerformProductActionResponse", - "updateProduct" => "UpdateProduct", - "updateProductResponse" => "UpdateProductResponse", - "updateProducts" => "UpdateProducts", - "updateProductsResponse" => "UpdateProductsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by - * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject PropertyFilterableSortable
{@code rateCardId}Rate card ID which the product is associated withYesNo
{@code status}{@link Product#status}YesYes
{@code lineItemType}{@link Product#lineItemType}YesYes
{@code productType}{@link Product#productType}YesYes
{@code rateType}{@link Product#rateType}YesYes
{@code productTemplateId}{@link Product#productTemplateId}YesNo
{@code name}{@link Product#name}YesYes
{@code description}{@link Product#description}YesNo
{@code id}{@link Product#id}YesYes
{@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}YesYes
- * - * @param statement a Publisher Query Language statement which specifies the filtering - * criteria over products - * @return the products that match the given statement - */ - public function getProductsByStatement($statement) { - $args = new GetProductsByStatement($statement); - $result = $this->__soapCall("getProductsByStatement", array($args)); - return $result->rval; - } - /** - * Performs action on {@link Product} objects that satisfy the given {@link Statement}. - * - * @param productAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of products. - * @return the result of the action performed - */ - public function performProductAction($productAction, $filterStatement) { - $args = new PerformProductAction($productAction, $filterStatement); - $result = $this->__soapCall("performProductAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Product}. - * Note non-updatable fields will not be backfilled. - * - * @param product the product to update - * @return the updated product - */ - public function updateProduct($product) { - $args = new UpdateProduct($product); - $result = $this->__soapCall("updateProduct", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Product} objects. - * Note non-updatable fields will not be backfilled. - * - * @param products the products to update - * @return the updated products - */ - public function updateProducts($products) { - $args = new UpdateProducts($products); - $result = $this->__soapCall("updateProducts", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php deleted file mode 100755 index aa3f8acfa..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ProposalLineItemService.php +++ /dev/null @@ -1,9127 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargeting", false)) { - /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargeting"; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var DeviceCapabilityTargeting - */ - public $deviceCapabilityTargeting; - - /** - * @access public - * @var DeviceCategoryTargeting - */ - public $deviceCategoryTargeting; - - /** - * @access public - * @var DeviceManufacturerTargeting - */ - public $deviceManufacturerTargeting; - - /** - * @access public - * @var MobileCarrierTargeting - */ - public $mobileCarrierTargeting; - - /** - * @access public - * @var MobileDeviceTargeting - */ - public $mobileDeviceTargeting; - - /** - * @access public - * @var MobileDeviceSubmodelTargeting - */ - public $mobileDeviceSubmodelTargeting; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var OperatingSystemVersionTargeting - */ - public $operatingSystemVersionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BillingError", false)) { - /** - * Lists all errors associated with the billing settings of a proposal or proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingError"; - - /** - * @access public - * @var tnsBillingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentTargeting", false)) { - /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; - - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; - - /** - * @access public - * @var integer[] - */ - public $excludedVideoCategoryIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DayPart", false)) { - /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; - - /** - * @access public - * @var TimeOfDay - */ - public $startTime; - - /** - * @access public - * @var TimeOfDay - */ - public $endTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; - } - - } -} - -if (!class_exists("DayPartTargeting", false)) { - /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargeting"; - - /** - * @access public - * @var DayPart[] - */ - public $dayParts; - - /** - * @access public - * @var tnsDeliveryTimeZone - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DeliveryData", false)) { - /** - * Holds the number of clicks or impressions, determined by - * {@link LineItem#costType}, delivered for a single line item for the - * last 7 days - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryData { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryData"; - - /** - * @access public - * @var integer[] - */ - public $units; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($units = null) { - $this->units = $units; - } - - } -} - -if (!class_exists("DeliveryIndicator", false)) { - /** - * Indicates the delivery performance of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryIndicator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryIndicator"; - - /** - * @access public - * @var double - */ - public $expectedDeliveryPercentage; - - /** - * @access public - * @var double - */ - public $actualDeliveryPercentage; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { - $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; - $this->actualDeliveryPercentage = $actualDeliveryPercentage; - } - - } -} - -if (!class_exists("DeviceCapabilityTargeting", false)) { - /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapabilityTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCapabilities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; - } - - } -} - -if (!class_exists("DeviceCategoryTargeting", false)) { - /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCategoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCategories; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; - } - - } -} - -if (!class_exists("DeviceManufacturerTargeting", false)) { - /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceManufacturerTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturerTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $deviceManufacturers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MobileCarrierTargeting", false)) { - /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrierTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $mobileCarriers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; - } - - } -} - -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDeviceSubmodels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; - } - - } -} - -if (!class_exists("MobileDeviceTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDevices; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; - - /** - * @access public - * @var Technology[] - */ - public $excludedOperatingSystemVersions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("PrecisionError", false)) { - /** - * List all errors associated with number precisions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PrecisionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PrecisionError"; - - /** - * @access public - * @var tnsPrecisionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalError", false)) { - /** - * Lists all errors associated with proposals. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalError"; - - /** - * @access public - * @var tnsProposalErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItemAction", false)) { - /** - * Represents the actions that can be performed on {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemAction"; - - /** - * @access public - * @var string - */ - public $ProposalLineItemActionType; - private $_parameterMap = array( - "ProposalLineItemAction.Type" => "ProposalLineItemActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalLineItemActionType = null) { - $this->ProposalLineItemActionType = $ProposalLineItemActionType; - } - - } -} - -if (!class_exists("ProposalLineItemActionError", false)) { - /** - * Lists all errors for executing operations on proposal line items. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemActionError"; - - /** - * @access public - * @var tnsProposalLineItemActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItem", false)) { - /** - * A {@code ProposalLineItem} is an instance of sales {@link Product}. It belongs to - * a {@link Proposal} and is created according to a {@link Product} and - * {@link RateCard}. When the proposal is turned into an {@link Order}, this object is - * turned into a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItem"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $proposalId; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * @access public - * @var integer - */ - public $productId; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var tnsCostAdjustment - */ - public $costAdjustment; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var integer - */ - public $unitsBought; - - /** - * @access public - * @var integer - */ - public $unitsBoughtBuffer; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var tnsCompanionDeliveryOption - */ - public $companionDeliveryOption; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $lineItemPriority; - - /** - * @access public - * @var tnsCostType - */ - public $costType; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var Targeting - */ - public $targeting; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var ProposalLineItemPremium[] - */ - public $premiums; - - /** - * @access public - * @var Money - */ - public $baseRate; - - /** - * @access public - * @var Money - */ - public $costPerUnit; - - /** - * @access public - * @var Money - */ - public $cost; - - /** - * @access public - * @var DeliveryIndicator - */ - public $deliveryIndicator; - - /** - * @access public - * @var DeliveryData - */ - public $deliveryData; - - /** - * @access public - * @var tnsComputedStatus - */ - public $computedStatus; - - /** - * @access public - * @var tnsBillingCap - */ - public $billingCap; - - /** - * @access public - * @var tnsBillingSchedule - */ - public $billingSchedule; - - /** - * @access public - * @var tnsBillingSource - */ - public $billingSource; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $proposalId = null, $rateCardId = null, $productId = null, $name = null, $startDateTime = null, $endDateTime = null, $notes = null, $costAdjustment = null, $isArchived = null, $unitsBought = null, $unitsBoughtBuffer = null, $deliveryRateType = null, $roadblockingType = null, $companionDeliveryOption = null, $creativeRotationType = null, $frequencyCaps = null, $lineItemType = null, $lineItemPriority = null, $costType = null, $creativePlaceholders = null, $targeting = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $premiums = null, $baseRate = null, $costPerUnit = null, $cost = null, $deliveryIndicator = null, $deliveryData = null, $computedStatus = null, $billingCap = null, $billingSchedule = null, $billingSource = null) { - $this->id = $id; - $this->proposalId = $proposalId; - $this->rateCardId = $rateCardId; - $this->productId = $productId; - $this->name = $name; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->notes = $notes; - $this->costAdjustment = $costAdjustment; - $this->isArchived = $isArchived; - $this->unitsBought = $unitsBought; - $this->unitsBoughtBuffer = $unitsBoughtBuffer; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativeRotationType = $creativeRotationType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->lineItemPriority = $lineItemPriority; - $this->costType = $costType; - $this->creativePlaceholders = $creativePlaceholders; - $this->targeting = $targeting; - $this->customFieldValues = $customFieldValues; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->premiums = $premiums; - $this->baseRate = $baseRate; - $this->costPerUnit = $costPerUnit; - $this->cost = $cost; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->computedStatus = $computedStatus; - $this->billingCap = $billingCap; - $this->billingSchedule = $billingSchedule; - $this->billingSource = $billingSource; - } - - } -} - -if (!class_exists("ProposalLineItemError", false)) { - /** - * Lists all errors associated with proposal line items. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemError"; - - /** - * @access public - * @var tnsProposalLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItemPage", false)) { - /** - * Captures a page of {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemPage"; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("ProposalLineItemPremium", false)) { - /** - * Represents the status of a triggered {@link PremiumRateValue} (formerly - * referred to as a {@code RateCardCustomization}). - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemPremium { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemPremium"; - - /** - * @access public - * @var integer - */ - public $rateCardCustomizationId; - - /** - * @access public - * @var tnsProposalLineItemPremiumStatus - */ - public $status; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationId = null, $status = null) { - $this->rateCardCustomizationId = $rateCardCustomizationId; - $this->status = $status; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Targeting", false)) { - /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; - - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; - - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TimeOfDay", false)) { - /** - * Represents a specific time in a day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; - } - - } -} - -if (!class_exists("UnarchiveProposalLineItems", false)) { - /** - * The action used for unarchiving {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnarchiveProposalLineItems extends ProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnarchiveProposalLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalLineItemActionType = null) { - parent::__construct(); - $this->ProposalLineItemActionType = $ProposalLineItemActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoPosition", false)) { - /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; - - /** - * @access public - * @var integer - */ - public $midrollIndex; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; - } - - } -} - -if (!class_exists("VideoPositionTargeting", false)) { - /** - * Represents positions within and around a video where ads can be targeted to. - *

- * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionTargeting"; - - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; - } - - } -} - -if (!class_exists("VideoPositionWithinPod", false)) { - /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionWithinPod"; - - /** - * @access public - * @var integer - */ - public $index; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($index = null) { - $this->index = $index; - } - - } -} - -if (!class_exists("VideoPositionTarget", false)) { - /** - * Represents the options for targetable positions within a video. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; - - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingCap", false)) { - /** - * Determines how the revenue amount will be capped for each billing month. This cannot be used when - * {@link BillingSource} is {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingCap"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSchedule", false)) { - /** - * Determines how much to bill in each billing cycle when a proposal is charged based on the - * contracted value. This can only be used when {@link BillingSource} is - * {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingSchedule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingSchedule"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSource", false)) { - /** - * Determines which billable numbers or delivery data (impressions, clicks, and so on) - * will be used for billing purposes. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingSource { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingSource"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanionDeliveryOption", false)) { - /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CompanionDeliveryOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CompanionDeliveryOption"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ComputedStatus", false)) { - /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ComputedStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ComputedStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostAdjustment", false)) { - /** - * Describes the cost adjustment of {@link ProposalLineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CostAdjustment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CostAdjustment"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryTimeZone { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryTimeZone"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MinuteOfHour", false)) { - /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MinuteOfHour { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MinuteOfHour"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PrecisionErrorReason", false)) { - /** - * Describes reasons for precision errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PrecisionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PrecisionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemPremiumStatus", false)) { - /** - * Status of the premium triggered by a proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemPremiumStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemPremiumStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoBumperType", false)) { - /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoBumperType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoBumperType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoPositionType", false)) { - /** - * Represents a targetable position within a video. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class VideoPositionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPosition.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateProposalLineItem", false)) { - /** - * Creates a new {@link ProposalLineItem}. - * - * The following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItem the proposal line item to create - * @return the created proposal line item with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $proposalLineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItem = null) { - $this->proposalLineItem = $proposalLineItem; - } - - } -} - -if (!class_exists("CreateProposalLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateProposalLineItems", false)) { - /** - * Creates new {@link ProposalLineItem} objects. - * - * For each proposal line item, the following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItems the proposal line items to create - * @return the created proposal line items with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposalLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $proposalLineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItems = null) { - $this->proposalLineItems = $proposalLineItems; - } - - } -} - -if (!class_exists("CreateProposalLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposalLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposalLineItem", false)) { - /** - * Returns the {@link ProposalLineItem} uniquely identified by the given ID. - * - * @param proposalLineItemId the ID of the proposal line item, which must already exist - * @return the proposal line item uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $proposalLineItemId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItemId = null) { - $this->proposalLineItemId = $proposalLineItemId; - } - - } -} - -if (!class_exists("GetProposalLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposalLineItemsByStatement", false)) { - /** - * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects - * that satisfy the given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProposalLineItem#id}
{@code name}{@link ProposalLineItem#name}
{@code proposalId}{@link ProposalLineItem#proposalId}
{@code isArchived}{@link ProposalLineItem#isArchived}
{@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
{@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
{@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposal line items - * @return the proposal line items that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposalLineItemsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetProposalLineItemsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposalLineItemsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItemPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProposalLineItemAction", false)) { - /** - * Performs actions on {@link ProposalLineItem} objects that match - * the given {@link Statement#query}. - * - * @param proposalLineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of - * proposal line items - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItemAction - */ - public $proposalLineItemAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItemAction = null, $filterStatement = null) { - $this->proposalLineItemAction = $proposalLineItemAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProposalLineItemActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformProposalLineItemActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposalLineItem", false)) { - /** - * Updates the specified {@link ProposalLineItem}. - * - * @param proposalLineItem the proposal line item to update - * @return the updated proposal line item - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $proposalLineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItem = null) { - $this->proposalLineItem = $proposalLineItem; - } - - } -} - -if (!class_exists("UpdateProposalLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposalLineItems", false)) { - /** - * Updates the specified {@link ProposalLineItem} objects. - * - * @param proposalLineItems the proposal line items to update - * @return the updated proposal line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposalLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $proposalLineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItems = null) { - $this->proposalLineItems = $proposalLineItems; - } - - } -} - -if (!class_exists("UpdateProposalLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposalLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveProposalLineItems", false)) { - /** - * The action used for archiving {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ArchiveProposalLineItems extends ProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ArchiveProposalLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalLineItemActionType = null) { - parent::__construct(); - $this->ProposalLineItemActionType = $ProposalLineItemActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("ProposalLineItemService", false)) { - /** - * ProposalLineItemService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemService extends DfpSoapClient { - - const SERVICE_NAME = "ProposalLineItemService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ProposalLineItemService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ProposalLineItemService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "TechnologyTargeting" => "TechnologyTargeting", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveProposalLineItems" => "ArchiveProposalLineItems", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BillingError" => "BillingError", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", - "CreativePlaceholder" => "CreativePlaceholder", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPart" => "DayPart", - "DayPartTargeting" => "DayPartTargeting", - "DayPartTargetingError" => "DayPartTargetingError", - "DeliveryData" => "DeliveryData", - "DeliveryIndicator" => "DeliveryIndicator", - "DeviceCapability" => "DeviceCapability", - "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", - "DeviceCategory" => "DeviceCategory", - "DeviceCategoryTargeting" => "DeviceCategoryTargeting", - "DeviceManufacturer" => "DeviceManufacturer", - "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileCarrierTargeting" => "MobileCarrierTargeting", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", - "MobileDeviceTargeting" => "MobileDeviceTargeting", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", - "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", - "PrecisionError" => "PrecisionError", - "ProductError" => "ProductError", - "ProposalError" => "ProposalError", - "ProposalLineItemAction" => "ProposalLineItemAction", - "ProposalLineItemActionError" => "ProposalLineItemActionError", - "ProposalLineItem" => "ProposalLineItem", - "ProposalLineItemError" => "ProposalLineItemError", - "ProposalLineItemPage" => "ProposalLineItemPage", - "ProposalLineItemPremium" => "ProposalLineItemPremium", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ReservationDetailsError" => "ReservationDetailsError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Targeting" => "Targeting", - "TeamError" => "TeamError", - "Technology" => "Technology", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TimeOfDay" => "TimeOfDay", - "UnarchiveProposalLineItems" => "UnarchiveProposalLineItems", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "VideoPosition" => "VideoPosition", - "VideoPositionTargeting" => "VideoPositionTargeting", - "VideoPositionWithinPod" => "VideoPositionWithinPod", - "VideoPositionTarget" => "VideoPositionTarget", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BillingCap" => "BillingCap", - "BillingError.Reason" => "BillingErrorReason", - "BillingSchedule" => "BillingSchedule", - "BillingSource" => "BillingSource", - "CommonError.Reason" => "CommonErrorReason", - "CompanionDeliveryOption" => "CompanionDeliveryOption", - "ComputedStatus" => "ComputedStatus", - "CostAdjustment" => "CostAdjustment", - "CostType" => "CostType", - "CreativeRotationType" => "CreativeRotationType", - "CreativeSizeType" => "CreativeSizeType", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "DayOfWeek" => "DayOfWeek", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryTimeZone" => "DeliveryTimeZone", - "DeliveryRateType" => "DeliveryRateType", - "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemType" => "LineItemType", - "MinuteOfHour" => "MinuteOfHour", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PrecisionError.Reason" => "PrecisionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "ProposalError.Reason" => "ProposalErrorReason", - "ProposalLineItemActionError.Reason" => "ProposalLineItemActionErrorReason", - "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", - "ProposalLineItemPremiumStatus" => "ProposalLineItemPremiumStatus", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TimeUnit" => "TimeUnit", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "VideoBumperType" => "VideoBumperType", - "VideoPosition.Type" => "VideoPositionType", - "createProposalLineItem" => "CreateProposalLineItem", - "createProposalLineItemResponse" => "CreateProposalLineItemResponse", - "createProposalLineItems" => "CreateProposalLineItems", - "createProposalLineItemsResponse" => "CreateProposalLineItemsResponse", - "getProposalLineItem" => "GetProposalLineItem", - "getProposalLineItemResponse" => "GetProposalLineItemResponse", - "getProposalLineItemsByStatement" => "GetProposalLineItemsByStatement", - "getProposalLineItemsByStatementResponse" => "GetProposalLineItemsByStatementResponse", - "performProposalLineItemAction" => "PerformProposalLineItemAction", - "performProposalLineItemActionResponse" => "PerformProposalLineItemActionResponse", - "updateProposalLineItem" => "UpdateProposalLineItem", - "updateProposalLineItemResponse" => "UpdateProposalLineItemResponse", - "updateProposalLineItems" => "UpdateProposalLineItems", - "updateProposalLineItemsResponse" => "UpdateProposalLineItemsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ProposalLineItem}. - * - * The following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItem the proposal line item to create - * @return the created proposal line item with its ID filled in - */ - public function createProposalLineItem($proposalLineItem) { - $args = new CreateProposalLineItem($proposalLineItem); - $result = $this->__soapCall("createProposalLineItem", array($args)); - return $result->rval; - } - /** - * Creates new {@link ProposalLineItem} objects. - * - * For each proposal line item, the following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItems the proposal line items to create - * @return the created proposal line items with their IDs filled in - */ - public function createProposalLineItems($proposalLineItems) { - $args = new CreateProposalLineItems($proposalLineItems); - $result = $this->__soapCall("createProposalLineItems", array($args)); - return $result->rval; - } - /** - * Returns the {@link ProposalLineItem} uniquely identified by the given ID. - * - * @param proposalLineItemId the ID of the proposal line item, which must already exist - * @return the proposal line item uniquely identified by the given ID - */ - public function getProposalLineItem($proposalLineItemId) { - $args = new GetProposalLineItem($proposalLineItemId); - $result = $this->__soapCall("getProposalLineItem", array($args)); - return $result->rval; - } - /** - * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects - * that satisfy the given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProposalLineItem#id}
{@code name}{@link ProposalLineItem#name}
{@code proposalId}{@link ProposalLineItem#proposalId}
{@code isArchived}{@link ProposalLineItem#isArchived}
{@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
{@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
{@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposal line items - * @return the proposal line items that match the given filter - */ - public function getProposalLineItemsByStatement($filterStatement) { - $args = new GetProposalLineItemsByStatement($filterStatement); - $result = $this->__soapCall("getProposalLineItemsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link ProposalLineItem} objects that match - * the given {@link Statement#query}. - * - * @param proposalLineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of - * proposal line items - * @return the result of the action performed - */ - public function performProposalLineItemAction($proposalLineItemAction, $filterStatement) { - $args = new PerformProposalLineItemAction($proposalLineItemAction, $filterStatement); - $result = $this->__soapCall("performProposalLineItemAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProposalLineItem}. - * - * @param proposalLineItem the proposal line item to update - * @return the updated proposal line item - */ - public function updateProposalLineItem($proposalLineItem) { - $args = new UpdateProposalLineItem($proposalLineItem); - $result = $this->__soapCall("updateProposalLineItem", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProposalLineItem} objects. - * - * @param proposalLineItems the proposal line items to update - * @return the updated proposal line items - */ - public function updateProposalLineItems($proposalLineItems) { - $args = new UpdateProposalLineItems($proposalLineItems); - $result = $this->__soapCall("updateProposalLineItems", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ProposalService.php b/src/Google/Api/Ads/Dfp/v201306/ProposalService.php deleted file mode 100755 index 01b502db8..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ProposalService.php +++ /dev/null @@ -1,5643 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BillingError", false)) { - /** - * Lists all errors associated with the billing settings of a proposal or proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingError"; - - /** - * @access public - * @var tnsBillingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PrecisionError", false)) { - /** - * List all errors associated with number precisions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PrecisionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PrecisionError"; - - /** - * @access public - * @var tnsPrecisionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalAction", false)) { - /** - * Represents the actions that can be performed on {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalAction"; - - /** - * @access public - * @var string - */ - public $ProposalActionType; - private $_parameterMap = array( - "ProposalAction.Type" => "ProposalActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("ProposalActionError", false)) { - /** - * Lists all errors associated with performing actions on {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalActionError"; - - /** - * @access public - * @var tnsProposalActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalCompanyAssociation", false)) { - /** - * A {@code ProposalCompanyAssociation} represents a {@link Company} associated with the - * {@link Proposal} and a set of {@link Contact} objects belonging to the company. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalCompanyAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalCompanyAssociation"; - - /** - * @access public - * @var integer - */ - public $companyId; - - /** - * @access public - * @var tnsProposalCompanyAssociationType - */ - public $type; - - /** - * @access public - * @var integer[] - */ - public $contactIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companyId = null, $type = null, $contactIds = null) { - $this->companyId = $companyId; - $this->type = $type; - $this->contactIds = $contactIds; - } - - } -} - -if (!class_exists("Proposal", false)) { - /** - * A {@code Proposal} represents an agreement between an interactive - * advertising seller and a buyer that specifies the details of an - * advertising campaign. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Proposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Proposal"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var tnsProposalStatus - */ - public $status; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var ProposalCompanyAssociation - */ - public $advertiser; - - /** - * @access public - * @var ProposalCompanyAssociation[] - */ - public $agencies; - - /** - * @access public - * @var integer - */ - public $probabilityToClose; - - /** - * @access public - * @var tnsBillingCap - */ - public $billingCap; - - /** - * @access public - * @var tnsBillingSchedule - */ - public $billingSchedule; - - /** - * @access public - * @var tnsBillingSource - */ - public $billingSource; - - /** - * @access public - * @var string - */ - public $poNumber; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var Money - */ - public $budget; - - /** - * @access public - * @var SalespersonSplit - */ - public $primarySalesperson; - - /** - * @access public - * @var SalespersonSplit[] - */ - public $secondarySalespeople; - - /** - * @access public - * @var integer[] - */ - public $salesPlannerIds; - - /** - * @access public - * @var integer - */ - public $primaryTraffickerId; - - /** - * @access public - * @var integer[] - */ - public $secondaryTraffickerIds; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $advertiserDiscount; - - /** - * @access public - * @var integer - */ - public $proposalDiscount; - - /** - * @access public - * @var Money - */ - public $additionalAdjustment; - - /** - * @access public - * @var integer - */ - public $exchangeRate; - - /** - * @access public - * @var boolean - */ - public $refreshExchangeRate; - - /** - * @access public - * @var integer - */ - public $agencyCommission; - - /** - * @access public - * @var integer - */ - public $valueAddedTax; - - /** - * @access public - * @var integer[] - */ - public $approvalWorkflowActionIds; - - /** - * @access public - * @var tnsProposalApprovalStatus - */ - public $approvalStatus; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $startDateTime = null, $endDateTime = null, $status = null, $isArchived = null, $advertiser = null, $agencies = null, $probabilityToClose = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $poNumber = null, $notes = null, $budget = null, $primarySalesperson = null, $secondarySalespeople = null, $salesPlannerIds = null, $primaryTraffickerId = null, $secondaryTraffickerIds = null, $appliedTeamIds = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $advertiserDiscount = null, $proposalDiscount = null, $additionalAdjustment = null, $exchangeRate = null, $refreshExchangeRate = null, $agencyCommission = null, $valueAddedTax = null, $approvalWorkflowActionIds = null, $approvalStatus = null) { - $this->id = $id; - $this->name = $name; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->status = $status; - $this->isArchived = $isArchived; - $this->advertiser = $advertiser; - $this->agencies = $agencies; - $this->probabilityToClose = $probabilityToClose; - $this->billingCap = $billingCap; - $this->billingSchedule = $billingSchedule; - $this->billingSource = $billingSource; - $this->poNumber = $poNumber; - $this->notes = $notes; - $this->budget = $budget; - $this->primarySalesperson = $primarySalesperson; - $this->secondarySalespeople = $secondarySalespeople; - $this->salesPlannerIds = $salesPlannerIds; - $this->primaryTraffickerId = $primaryTraffickerId; - $this->secondaryTraffickerIds = $secondaryTraffickerIds; - $this->appliedTeamIds = $appliedTeamIds; - $this->customFieldValues = $customFieldValues; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->advertiserDiscount = $advertiserDiscount; - $this->proposalDiscount = $proposalDiscount; - $this->additionalAdjustment = $additionalAdjustment; - $this->exchangeRate = $exchangeRate; - $this->refreshExchangeRate = $refreshExchangeRate; - $this->agencyCommission = $agencyCommission; - $this->valueAddedTax = $valueAddedTax; - $this->approvalWorkflowActionIds = $approvalWorkflowActionIds; - $this->approvalStatus = $approvalStatus; - } - - } -} - -if (!class_exists("ProposalError", false)) { - /** - * Lists all errors associated with proposals. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalError"; - - /** - * @access public - * @var tnsProposalErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItemError", false)) { - /** - * Lists all errors associated with proposal line items. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemError"; - - /** - * @access public - * @var tnsProposalLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalPage", false)) { - /** - * Captures a page of {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Proposal[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RejectProposals", false)) { - /** - * The action used for rejecting {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RejectProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RejectProposals"; - - /** - * @access public - * @var integer[] - */ - public $workflowActionIds; - - /** - * @access public - * @var string - */ - public $comment; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($workflowActionIds = null, $comment = null, $ProposalActionType = null) { - parent::__construct(); - $this->workflowActionIds = $workflowActionIds; - $this->comment = $comment; - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RetractProposals", false)) { - /** - * The action used for retracting {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RetractProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RetractProposals"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("SalespersonSplit", false)) { - /** - * A {@code SalespersonSplit} represents a salesperson and his/her split. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SalespersonSplit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SalespersonSplit"; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * @access public - * @var integer - */ - public $split; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userId = null, $split = null) { - $this->userId = $userId; - $this->split = $split; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SubmitProposalsForApproval", false)) { - /** - * The action used for submitting {@link Proposal} objects for approval. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SubmitProposalsForApproval extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SubmitProposalsForApproval"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnarchiveProposals", false)) { - /** - * The action used for unarchiving {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnarchiveProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnarchiveProposals"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("WorkflowActionError", false)) { - /** - * Lists all errors associated with performing actions within {@link WorkflowAction}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "WorkflowActionError"; - - /** - * @access public - * @var tnsWorkflowActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingCap", false)) { - /** - * Determines how the revenue amount will be capped for each billing month. This cannot be used when - * {@link BillingSource} is {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingCap"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSchedule", false)) { - /** - * Determines how much to bill in each billing cycle when a proposal is charged based on the - * contracted value. This can only be used when {@link BillingSource} is - * {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingSchedule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingSchedule"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSource", false)) { - /** - * Determines which billable numbers or delivery data (impressions, clicks, and so on) - * will be used for billing purposes. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BillingSource { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BillingSource"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalApprovalStatus", false)) { - /** - * Describes the {@link Proposal} status in terms of pending approvals of active user. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalApprovalStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalApprovalStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PrecisionErrorReason", false)) { - /** - * Describes reasons for precision errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PrecisionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PrecisionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalCompanyAssociationType", false)) { - /** - * Describes the type of a {@link Company} associated with a {@link Proposal}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalCompanyAssociationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalCompanyAssociationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalStatus", false)) { - /** - * Describes the {@link Proposal} status. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProposalStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("WorkflowActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "WorkflowActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateProposal", false)) { - /** - * Creates a new {@link Proposal}. - * - * The following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposal the proposal to create - * @return the created proposal with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $proposal; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposal = null) { - $this->proposal = $proposal; - } - - } -} - -if (!class_exists("CreateProposalResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateProposals", false)) { - /** - * Creates new {@link Proposal} objects. - * - * For each proposal, the following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposals the proposals to create - * @return the created proposals with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposals { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $proposals; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposals = null) { - $this->proposals = $proposals; - } - - } -} - -if (!class_exists("CreateProposalsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProposalsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposal", false)) { - /** - * Returns the {@link Proposal} uniquely identified by the given ID. - * - * @param proposalId the ID of the proposal, which must already exist - * @return the proposal uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $proposalId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalId = null) { - $this->proposalId = $proposalId; - } - - } -} - -if (!class_exists("GetProposalResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposalsByStatement", false)) { - /** - * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link Proposal#id}
{@code name}{@link Proposal#name}
{@code status}{@link Proposal#status}
{@code isArchived}{@link Proposal#isArchived}
{@code approvalStatus}{@link Proposal#approvalStatus}
{@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
{@code thirdPartyAdServerId}{@link Proposal#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link Proposal#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposals - * @return the proposals that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposalsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetProposalsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetProposalsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProposalAction", false)) { - /** - * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. - * - * The following fields are also required when submitting proposals for approval: - *
    - *
  • {@link Proposal#advertiser}
  • - *
  • {@link Proposal#primarySalesperson}
  • - *
  • {@link Proposal#primaryTraffickerId}
  • - *
- * - * @param proposalAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of proposals - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalAction - */ - public $proposalAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalAction = null, $filterStatement = null) { - $this->proposalAction = $proposalAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProposalActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformProposalActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposal", false)) { - /** - * Updates the specified {@link Proposal}. - * - * @param proposal the proposal to update - * @return the updated proposal - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $proposal; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposal = null) { - $this->proposal = $proposal; - } - - } -} - -if (!class_exists("UpdateProposalResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposals", false)) { - /** - * Updates the specified {@link Proposal} objects. - * - * @param proposals the proposals to update - * @return the updated proposals - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposals { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $proposals; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposals = null) { - $this->proposals = $proposals; - } - - } -} - -if (!class_exists("UpdateProposalsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProposalsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ApproveProposals", false)) { - /** - * The action used for approving {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApproveProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApproveProposals"; - - /** - * @access public - * @var integer[] - */ - public $workflowActionIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($workflowActionIds = null, $ProposalActionType = null) { - parent::__construct(); - $this->workflowActionIds = $workflowActionIds; - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("ArchiveProposals", false)) { - /** - * The action used for archiving {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ArchiveProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ArchiveProposals"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ProposalService", false)) { - /** - * ProposalService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProposalService extends DfpSoapClient { - - const SERVICE_NAME = "ProposalService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ProposalService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ProposalService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ApproveProposals" => "ApproveProposals", - "ArchiveProposals" => "ArchiveProposals", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BillingError" => "BillingError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemOperationError" => "LineItemOperationError", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PrecisionError" => "PrecisionError", - "ProductError" => "ProductError", - "ProposalAction" => "ProposalAction", - "ProposalActionError" => "ProposalActionError", - "ProposalCompanyAssociation" => "ProposalCompanyAssociation", - "Proposal" => "Proposal", - "ProposalError" => "ProposalError", - "ProposalLineItemError" => "ProposalLineItemError", - "ProposalPage" => "ProposalPage", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RejectProposals" => "RejectProposals", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RetractProposals" => "RetractProposals", - "SalespersonSplit" => "SalespersonSplit", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SubmitProposalsForApproval" => "SubmitProposalsForApproval", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UnarchiveProposals" => "UnarchiveProposals", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "WorkflowActionError" => "WorkflowActionError", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BillingCap" => "BillingCap", - "BillingError.Reason" => "BillingErrorReason", - "BillingSchedule" => "BillingSchedule", - "BillingSource" => "BillingSource", - "CommonError.Reason" => "CommonErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "ProposalApprovalStatus" => "ProposalApprovalStatus", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PrecisionError.Reason" => "PrecisionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "ProposalActionError.Reason" => "ProposalActionErrorReason", - "ProposalCompanyAssociationType" => "ProposalCompanyAssociationType", - "ProposalError.Reason" => "ProposalErrorReason", - "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", - "ProposalStatus" => "ProposalStatus", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "WorkflowActionError.Reason" => "WorkflowActionErrorReason", - "createProposal" => "CreateProposal", - "createProposalResponse" => "CreateProposalResponse", - "createProposals" => "CreateProposals", - "createProposalsResponse" => "CreateProposalsResponse", - "getProposal" => "GetProposal", - "getProposalResponse" => "GetProposalResponse", - "getProposalsByStatement" => "GetProposalsByStatement", - "getProposalsByStatementResponse" => "GetProposalsByStatementResponse", - "performProposalAction" => "PerformProposalAction", - "performProposalActionResponse" => "PerformProposalActionResponse", - "updateProposal" => "UpdateProposal", - "updateProposalResponse" => "UpdateProposalResponse", - "updateProposals" => "UpdateProposals", - "updateProposalsResponse" => "UpdateProposalsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Proposal}. - * - * The following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposal the proposal to create - * @return the created proposal with its ID filled in - */ - public function createProposal($proposal) { - $args = new CreateProposal($proposal); - $result = $this->__soapCall("createProposal", array($args)); - return $result->rval; - } - /** - * Creates new {@link Proposal} objects. - * - * For each proposal, the following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposals the proposals to create - * @return the created proposals with their IDs filled in - */ - public function createProposals($proposals) { - $args = new CreateProposals($proposals); - $result = $this->__soapCall("createProposals", array($args)); - return $result->rval; - } - /** - * Returns the {@link Proposal} uniquely identified by the given ID. - * - * @param proposalId the ID of the proposal, which must already exist - * @return the proposal uniquely identified by the given ID - */ - public function getProposal($proposalId) { - $args = new GetProposal($proposalId); - $result = $this->__soapCall("getProposal", array($args)); - return $result->rval; - } - /** - * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link Proposal#id}
{@code name}{@link Proposal#name}
{@code status}{@link Proposal#status}
{@code isArchived}{@link Proposal#isArchived}
{@code approvalStatus}{@link Proposal#approvalStatus}
{@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
{@code thirdPartyAdServerId}{@link Proposal#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link Proposal#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposals - * @return the proposals that match the given filter - */ - public function getProposalsByStatement($filterStatement) { - $args = new GetProposalsByStatement($filterStatement); - $result = $this->__soapCall("getProposalsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. - * - * The following fields are also required when submitting proposals for approval: - *
    - *
  • {@link Proposal#advertiser}
  • - *
  • {@link Proposal#primarySalesperson}
  • - *
  • {@link Proposal#primaryTraffickerId}
  • - *
- * - * @param proposalAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of proposals - * @return the result of the action performed - */ - public function performProposalAction($proposalAction, $filterStatement) { - $args = new PerformProposalAction($proposalAction, $filterStatement); - $result = $this->__soapCall("performProposalAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Proposal}. - * - * @param proposal the proposal to update - * @return the updated proposal - */ - public function updateProposal($proposal) { - $args = new UpdateProposal($proposal); - $result = $this->__soapCall("updateProposal", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Proposal} objects. - * - * @param proposals the proposals to update - * @return the updated proposals - */ - public function updateProposals($proposals) { - $args = new UpdateProposals($proposals); - $result = $this->__soapCall("updateProposals", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php deleted file mode 100755 index 7f3e35e40..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/PublisherQueryLanguageService.php +++ /dev/null @@ -1,4157 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ColumnType", false)) { - /** - * Contains information about a column in a {@link ResultSet}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ColumnType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ColumnType"; - - /** - * @access public - * @var string - */ - public $labelName; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelName = null) { - $this->labelName = $labelName; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryUnitError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryUnitError"; - - /** - * @access public - * @var tnsInventoryUnitErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Caused by supplying a non-null value for an attribute that should be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderActionError", false)) { - /** - * Lists all errors associated with performing actions on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderActionError"; - - /** - * @access public - * @var tnsOrderActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ResultSet", false)) { - /** - * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link - * Statement}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ResultSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ResultSet"; - - /** - * @access public - * @var ColumnType[] - */ - public $columnTypes; - - /** - * @access public - * @var Row[] - */ - public $rows; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($columnTypes = null, $rows = null) { - $this->columnTypes = $columnTypes; - $this->rows = $rows; - } - - } -} - -if (!class_exists("Row", false)) { - /** - * Each {@link Row} object represents data about one entity in a - * {@link ResultSet}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Row { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Row"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null) { - $this->values = $values; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { - /** - * The supplied Afc size is not valid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitAfcSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitCodeErrorReason", false)) { - /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitCodeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitCodeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitHierarchyErrorReason", false)) { - /** - * The depth of the {@link AdUnit} in the inventory hierarchy is greater - * than is allowed. The maximum allowed depth is two below the effective - * root ad unit for Premium accounts and one level below effective root ad - * unit for Small Business accounts. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitHierarchyErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitHierarchyError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InventoryUnitErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryUnitError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Select", false)) { - /** - * Retrieves rows of data that satisfy the given {@link Statement#query} from - * the system. - * - * @param selectStatement a Publisher Query Language statement used to - * specify what data needs to returned - * - * @return a result set of data that matches the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Select { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $selectStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($selectStatement = null) { - $this->selectStatement = $selectStatement; - } - - } -} - -if (!class_exists("SelectResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SelectResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ResultSet - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("AdUnitAfcSizeError", false)) { - /** - * Caused by supplying sizes that are not compatible with the Afc sizes. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitAfcSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitAfcSizeError"; - - /** - * @access public - * @var tnsAdUnitAfcSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitCodeError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit#adUnitCode}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitCodeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitCodeError"; - - /** - * @access public - * @var tnsAdUnitCodeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitHierarchyError", false)) { - /** - * Caused by creating an {@link AdUnit} object with an invalid hierarchy. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitHierarchyError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitHierarchyError"; - - /** - * @access public - * @var tnsAdUnitHierarchyErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageService", false)) { - /** - * PublisherQueryLanguageService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageService extends DfpSoapClient { - - const SERVICE_NAME = "PublisherQueryLanguageService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/PublisherQueryLanguageService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/PublisherQueryLanguageService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitAfcSizeError" => "AdUnitAfcSizeError", - "AdUnitCodeError" => "AdUnitCodeError", - "AdUnitHierarchyError" => "AdUnitHierarchyError", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "ColumnType" => "ColumnType", - "CommonError" => "CommonError", - "CreativeError" => "CreativeError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargetingError" => "InventoryTargetingError", - "InventoryUnitError" => "InventoryUnitError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OrderActionError" => "OrderActionError", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegExError" => "RegExError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ResultSet" => "ResultSet", - "Row" => "Row", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", - "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", - "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "InventoryUnitError.Reason" => "InventoryUnitErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderActionError.Reason" => "OrderActionErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "select" => "Select", - "selectResponse" => "SelectResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Retrieves rows of data that satisfy the given {@link Statement#query} from - * the system. - * - * @param selectStatement a Publisher Query Language statement used to - * specify what data needs to returned - * - * @return a result set of data that matches the given filter - */ - public function select($selectStatement) { - $args = new Select($selectStatement); - $result = $this->__soapCall("select", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php deleted file mode 100755 index 2b54e28ad..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/RateCardCustomizationService.php +++ /dev/null @@ -1,4044 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardCustomizationAction", false)) { - /** - * Represents the action that can be performed on {@link RateCardCustomization} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardCustomizationAction"; - - /** - * @access public - * @var string - */ - public $RateCardCustomizationActionType; - private $_parameterMap = array( - "RateCardCustomizationAction.Type" => "RateCardCustomizationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("RateCardCustomization", false)) { - /** - * A customization of a {@link RateCard} which could be applied to the line item - * and charges extra premiums. - * - *

Rate card customizations are referred to as premiums in the UI. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardCustomization"; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsRateCardCustomizationStatus - */ - public $status; - - /** - * @access public - * @var RateCardFeature - */ - public $rateCardFeature; - - /** - * @access public - * @var tnsRateCardCustomizationAdjustmentType - */ - public $adjustmentType; - - /** - * @access public - * @var integer - */ - public $adjustmentSize; - - /** - * @access public - * @var tnsRateType - */ - public $rateType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardId = null, $id = null, $status = null, $rateCardFeature = null, $adjustmentType = null, $adjustmentSize = null, $rateType = null) { - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->rateCardFeature = $rateCardFeature; - $this->adjustmentType = $adjustmentType; - $this->adjustmentSize = $adjustmentSize; - $this->rateType = $rateType; - } - - } -} - -if (!class_exists("RateCardCustomizationError", false)) { - /** - * An error having to do with {@link RateCardCustomization}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomizationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardCustomizationError"; - - /** - * @access public - * @var tnsRateCardCustomizationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardCustomizationPage", false)) { - /** - * Captures a page of {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomizationPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardCustomizationPage"; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("RateCardFeature", false)) { - /** - * The feature of a {@link RateCardCustomization} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardFeature"; - - /** - * @access public - * @var string - */ - public $RateCardFeatureType; - private $_parameterMap = array( - "RateCardFeature.Type" => "RateCardFeatureType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UnknownRateCardFeature", false)) { - /** - * The {@link RateCardFeature} returned if the actual feature is not exposed by - * the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UnknownRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnknownRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainRateCardFeature", false)) { - /** - * A rate customization applied to user domain targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardCustomizationAdjustmentType", false)) { - /** - * Describes how to apply the adjustment to the base rate. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomizationAdjustmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardCustomizationAdjustmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardCustomizationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomizationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardCustomizationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardCustomizationStatus", false)) { - /** - * The status of {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomizationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardCustomizationStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateType", false)) { - /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateRateCardCustomization", false)) { - /** - * Creates a new {@link RateCardCustomization} object. - * - * @param rateCardCustomization the {@link RateCardCustomization} to be - * created - * @return the {@link RateCardCustomization} with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rateCardCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomization = null) { - $this->rateCardCustomization = $rateCardCustomization; - } - - } -} - -if (!class_exists("CreateRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateRateCardCustomizations", false)) { - /** - * Creates a list of new {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be created - * @return the rate card customizations with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCardCustomizations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rateCardCustomizations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizations = null) { - $this->rateCardCustomizations = $rateCardCustomizations; - } - - } -} - -if (!class_exists("CreateRateCardCustomizationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCardCustomizationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardCustomization", false)) { - /** - * Returns the {@link RateCardCustomization} object uniquely identified by the - * given ID. - * - * @param rateCardCustomizationId the ID of the rate card customization, which - * must already exist. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $rateCardCustomizationId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationId = null) { - $this->rateCardCustomizationId = $rateCardCustomizationId; - } - - } -} - -if (!class_exists("GetRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardCustomizationsByStatement", false)) { - /** - * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} - * objects that satisfy the given {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code rateCardId}{@link RateCardCustomization#rateCardId}
{@code rateCardCustomizationGroupId}{@link RateCardCustomization#rateCardCustomizationGroupId}
{@code id}{@link RateCardCustomization#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the rate card customizations that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCardCustomizationsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetRateCardCustomizationsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCardCustomizationsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomizationPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformRateCardCustomizationAction", false)) { - /** - * Performs actions on {@link RateCardCustomization} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardCustomizationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformRateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomizationAction - */ - public $rateCardCustomizationAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationAction = null, $filterStatement = null) { - $this->rateCardCustomizationAction = $rateCardCustomizationAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformRateCardCustomizationActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformRateCardCustomizationActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCardCustomization", false)) { - /** - * Updates the specified {@link RateCardCustomization} object. - * - * @param rateCardCustomization the rate card customization to be updated - * @return the updated rate card customization - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rateCardCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomization = null) { - $this->rateCardCustomization = $rateCardCustomization; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizations", false)) { - /** - * Updates the specified {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be updated - * @return the updated rate card customizations - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCardCustomizations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rateCardCustomizations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizations = null) { - $this->rateCardCustomizations = $rateCardCustomizations; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCardCustomizationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateRateCardCustomizations", false)) { - /** - * The action used to activate {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateRateCardCustomizations extends RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateRateCardCustomizations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - parent::__construct(); - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("AdUnitRateCardFeature", false)) { - /** - * A rate customization applied to ad unit targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdUnitRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BandwidthRateCardFeature", false)) { - /** - * A rate customization applied to bandwidth targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BandwidthRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("BrowserRateCardFeature", false)) { - /** - * A rate customization applied to browser targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("BrowserLanguageRateCardFeature", false)) { - /** - * A rate customization applied to browser language targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BrowserLanguageRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguageRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("CustomTargetingRateCardFeature", false)) { - /** - * A rate customization applied to custom criteria targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingRateCardFeature"; - - /** - * @access public - * @var integer - */ - public $customTargetingKeyId; - - /** - * @access public - * @var integer - */ - public $customTargetingValueId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingKeyId = null, $customTargetingValueId = null, $RateCardFeatureType = null) { - parent::__construct(); - $this->customTargetingKeyId = $customTargetingKeyId; - $this->customTargetingValueId = $customTargetingValueId; - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateRateCardCustomizations", false)) { - /** - * The action used to deactivate {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivateRateCardCustomizations extends RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateRateCardCustomizations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - parent::__construct(); - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("FrequencyCapRateCardFeature", false)) { - /** - * A rate customization applied to frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FrequencyCapRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("GeographyRateCardFeature", false)) { - /** - * A rate customization applied to geography targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GeographyRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeographyRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystemRateCardFeature", false)) { - /** - * A rate customization applied to operating system targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class OperatingSystemRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("PlacementRateCardFeature", false)) { - /** - * A rate customization applied to placement targeting. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PlacementRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PlacementRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardCustomizationService", false)) { - /** - * RateCardCustomizationService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardCustomizationService extends DfpSoapClient { - - const SERVICE_NAME = "RateCardCustomizationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/RateCardCustomizationService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/RateCardCustomizationService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateRateCardCustomizations" => "ActivateRateCardCustomizations", - "AdUnitRateCardFeature" => "AdUnitRateCardFeature", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthRateCardFeature" => "BandwidthRateCardFeature", - "BooleanValue" => "BooleanValue", - "BrowserRateCardFeature" => "BrowserRateCardFeature", - "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateRateCardCustomizations" => "DeactivateRateCardCustomizations", - "FeatureError" => "FeatureError", - "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", - "GeographyRateCardFeature" => "GeographyRateCardFeature", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystemRateCardFeature" => "OperatingSystemRateCardFeature", - "PermissionError" => "PermissionError", - "PlacementRateCardFeature" => "PlacementRateCardFeature", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RateCardCustomizationAction" => "RateCardCustomizationAction", - "RateCardCustomization" => "RateCardCustomization", - "RateCardCustomizationError" => "RateCardCustomizationError", - "RateCardCustomizationPage" => "RateCardCustomizationPage", - "RateCardFeature" => "RateCardFeature", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UnknownRateCardFeature" => "UnknownRateCardFeature", - "UpdateResult" => "UpdateResult", - "UserDomainRateCardFeature" => "UserDomainRateCardFeature", - "Value" => "Value", - "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateCardCustomizationError.Reason" => "RateCardCustomizationErrorReason", - "RateCardCustomizationStatus" => "RateCardCustomizationStatus", - "RateType" => "RateType", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createRateCardCustomization" => "CreateRateCardCustomization", - "createRateCardCustomizationResponse" => "CreateRateCardCustomizationResponse", - "createRateCardCustomizations" => "CreateRateCardCustomizations", - "createRateCardCustomizationsResponse" => "CreateRateCardCustomizationsResponse", - "getRateCardCustomization" => "GetRateCardCustomization", - "getRateCardCustomizationResponse" => "GetRateCardCustomizationResponse", - "getRateCardCustomizationsByStatement" => "GetRateCardCustomizationsByStatement", - "getRateCardCustomizationsByStatementResponse" => "GetRateCardCustomizationsByStatementResponse", - "performRateCardCustomizationAction" => "PerformRateCardCustomizationAction", - "performRateCardCustomizationActionResponse" => "PerformRateCardCustomizationActionResponse", - "updateRateCardCustomization" => "UpdateRateCardCustomization", - "updateRateCardCustomizationResponse" => "UpdateRateCardCustomizationResponse", - "updateRateCardCustomizations" => "UpdateRateCardCustomizations", - "updateRateCardCustomizationsResponse" => "UpdateRateCardCustomizationsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link RateCardCustomization} object. - * - * @param rateCardCustomization the {@link RateCardCustomization} to be - * created - * @return the {@link RateCardCustomization} with its ID filled in - */ - public function createRateCardCustomization($rateCardCustomization) { - $args = new CreateRateCardCustomization($rateCardCustomization); - $result = $this->__soapCall("createRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Creates a list of new {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be created - * @return the rate card customizations with their IDs filled in - */ - public function createRateCardCustomizations($rateCardCustomizations) { - $args = new CreateRateCardCustomizations($rateCardCustomizations); - $result = $this->__soapCall("createRateCardCustomizations", array($args)); - return $result->rval; - } - /** - * Returns the {@link RateCardCustomization} object uniquely identified by the - * given ID. - * - * @param rateCardCustomizationId the ID of the rate card customization, which - * must already exist. - */ - public function getRateCardCustomization($rateCardCustomizationId) { - $args = new GetRateCardCustomization($rateCardCustomizationId); - $result = $this->__soapCall("getRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} - * objects that satisfy the given {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code rateCardId}{@link RateCardCustomization#rateCardId}
{@code rateCardCustomizationGroupId}{@link RateCardCustomization#rateCardCustomizationGroupId}
{@code id}{@link RateCardCustomization#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the rate card customizations that match the given filter - */ - public function getRateCardCustomizationsByStatement($filterStatement) { - $args = new GetRateCardCustomizationsByStatement($filterStatement); - $result = $this->__soapCall("getRateCardCustomizationsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link RateCardCustomization} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardCustomizationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the result of the action performed - */ - public function performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement) { - $args = new PerformRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement); - $result = $this->__soapCall("performRateCardCustomizationAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCardCustomization} object. - * - * @param rateCardCustomization the rate card customization to be updated - * @return the updated rate card customization - */ - public function updateRateCardCustomization($rateCardCustomization) { - $args = new UpdateRateCardCustomization($rateCardCustomization); - $result = $this->__soapCall("updateRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be updated - * @return the updated rate card customizations - */ - public function updateRateCardCustomizations($rateCardCustomizations) { - $args = new UpdateRateCardCustomizations($rateCardCustomizations); - $result = $this->__soapCall("updateRateCardCustomizations", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/RateCardService.php b/src/Google/Api/Ads/Dfp/v201306/RateCardService.php deleted file mode 100755 index b150edada..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/RateCardService.php +++ /dev/null @@ -1,4186 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseRateError", false)) { - /** - * An error having to do with {@link BaseRate}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateError"; - - /** - * @access public - * @var tnsBaseRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardAction", false)) { - /** - * Represents the actions that can be performed on {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardAction"; - - /** - * @access public - * @var string - */ - public $RateCardActionType; - private $_parameterMap = array( - "RateCardAction.Type" => "RateCardActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardActionType = null) { - $this->RateCardActionType = $RateCardActionType; - } - - } -} - -if (!class_exists("RateCardActionError", false)) { - /** - * An error lists all error reasons associated with performing action - * on {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardActionError"; - - /** - * @access public - * @var tnsRateCardActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCard", false)) { - /** - * Defines a collection of rules, including base rates for product templates and products, premiums, - * proposal line item level adjustments and proposal level adjustments. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCard"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsRateCardStatus - */ - public $status; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $status = null, $appliedTeamIds = null) { - $this->id = $id; - $this->name = $name; - $this->status = $status; - $this->appliedTeamIds = $appliedTeamIds; - } - - } -} - -if (!class_exists("RateCardPage", false)) { - /** - * Captures a page of {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardPage"; - - /** - * @access public - * @var RateCard[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardStatus", false)) { - /** - * Describes the status of {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RateCardStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateRateCard", false)) { - /** - * Creates a new {@link RateCard}. Rate cards must be activated before being - * associated with proposal line items and products. - * - * @param rateCard the rate card to be created - * @return the rate card with corresponding fields set by Google. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rateCard; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCard = null) { - $this->rateCard = $rateCard; - } - - } -} - -if (!class_exists("CreateRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateRateCards", false)) { - /** - * Creates a list of {@link RateCard} objects. Rate cards must be activated - * before being associated with proposal line items and products. - * - * @param rateCards the rate cards to be created - * @return the created rate cards. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCards { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rateCards; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCards = null) { - $this->rateCards = $rateCards; - } - - } -} - -if (!class_exists("CreateRateCardsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateRateCardsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCard", false)) { - /** - * Returns the {@link RateCard} uniquely identified by the given ID. - * - * @param rateCardId the ID of the rate card, which must already exist - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardId = null) { - $this->rateCardId = $rateCardId; - } - - } -} - -if (!class_exists("GetRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardsByStatement", false)) { - /** - * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link RateCard#id}
{@code name}{@link RateCard#name}
{@code status}{@link RateCard#status}
{@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. - * @return the rate cards that match the filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCardsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetRateCardsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetRateCardsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformRateCardAction", false)) { - /** - * Performs action on {@link RateCard} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate cards. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformRateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardAction - */ - public $rateCardAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardAction = null, $filterStatement = null) { - $this->rateCardAction = $rateCardAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformRateCardActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformRateCardActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCard", false)) { - /** - * Updates the specified {@link RateCard}. - * - * @param rateCard the rate card to be updated - * @return the updated rate card - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rateCard; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCard = null) { - $this->rateCard = $rateCard; - } - - } -} - -if (!class_exists("UpdateRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCards", false)) { - /** - * Updates a list of {@link RateCard} objects. - * - * @param rateCards the rate cards to be updated - * @return the updated rate cards - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCards { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rateCards; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCards = null) { - $this->rateCards = $rateCards; - } - - } -} - -if (!class_exists("UpdateRateCardsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateRateCardsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateRateCards", false)) { - /** - * The action used to activate {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateRateCards extends RateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateRateCards"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardActionType = null) { - parent::__construct(); - $this->RateCardActionType = $RateCardActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateRateCards", false)) { - /** - * The action used to deactivate {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivateRateCards extends RateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateRateCards"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardActionType = null) { - parent::__construct(); - $this->RateCardActionType = $RateCardActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardService", false)) { - /** - * RateCardService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RateCardService extends DfpSoapClient { - - const SERVICE_NAME = "RateCardService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/RateCardService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/RateCardService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateRateCards" => "ActivateRateCards", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseRateError" => "BaseRateError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateRateCards" => "DeactivateRateCards", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "ProductError" => "ProductError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RateCardAction" => "RateCardAction", - "RateCardActionError" => "RateCardActionError", - "RateCard" => "RateCard", - "RateCardPage" => "RateCardPage", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateCardActionError.Reason" => "RateCardActionErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "RateCardStatus" => "RateCardStatus", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "createRateCard" => "CreateRateCard", - "createRateCardResponse" => "CreateRateCardResponse", - "createRateCards" => "CreateRateCards", - "createRateCardsResponse" => "CreateRateCardsResponse", - "getRateCard" => "GetRateCard", - "getRateCardResponse" => "GetRateCardResponse", - "getRateCardsByStatement" => "GetRateCardsByStatement", - "getRateCardsByStatementResponse" => "GetRateCardsByStatementResponse", - "performRateCardAction" => "PerformRateCardAction", - "performRateCardActionResponse" => "PerformRateCardActionResponse", - "updateRateCard" => "UpdateRateCard", - "updateRateCardResponse" => "UpdateRateCardResponse", - "updateRateCards" => "UpdateRateCards", - "updateRateCardsResponse" => "UpdateRateCardsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link RateCard}. Rate cards must be activated before being - * associated with proposal line items and products. - * - * @param rateCard the rate card to be created - * @return the rate card with corresponding fields set by Google. - */ - public function createRateCard($rateCard) { - $args = new CreateRateCard($rateCard); - $result = $this->__soapCall("createRateCard", array($args)); - return $result->rval; - } - /** - * Creates a list of {@link RateCard} objects. Rate cards must be activated - * before being associated with proposal line items and products. - * - * @param rateCards the rate cards to be created - * @return the created rate cards. - */ - public function createRateCards($rateCards) { - $args = new CreateRateCards($rateCards); - $result = $this->__soapCall("createRateCards", array($args)); - return $result->rval; - } - /** - * Returns the {@link RateCard} uniquely identified by the given ID. - * - * @param rateCardId the ID of the rate card, which must already exist - */ - public function getRateCard($rateCardId) { - $args = new GetRateCard($rateCardId); - $result = $this->__soapCall("getRateCard", array($args)); - return $result->rval; - } - /** - * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link RateCard#id}
{@code name}{@link RateCard#name}
{@code status}{@link RateCard#status}
{@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. - * @return the rate cards that match the filter - */ - public function getRateCardsByStatement($filterStatement) { - $args = new GetRateCardsByStatement($filterStatement); - $result = $this->__soapCall("getRateCardsByStatement", array($args)); - return $result->rval; - } - /** - * Performs action on {@link RateCard} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate cards. - * @return the result of the action performed - */ - public function performRateCardAction($rateCardAction, $filterStatement) { - $args = new PerformRateCardAction($rateCardAction, $filterStatement); - $result = $this->__soapCall("performRateCardAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCard}. - * - * @param rateCard the rate card to be updated - * @return the updated rate card - */ - public function updateRateCard($rateCard) { - $args = new UpdateRateCard($rateCard); - $result = $this->__soapCall("updateRateCard", array($args)); - return $result->rval; - } - /** - * Updates a list of {@link RateCard} objects. - * - * @param rateCards the rate cards to be updated - * @return the updated rate cards - */ - public function updateRateCards($rateCards) { - $args = new UpdateRateCards($rateCards); - $result = $this->__soapCall("updateRateCards", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php deleted file mode 100755 index 6b0e022f5..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ReconciliationOrderReportService.php +++ /dev/null @@ -1,3187 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ReconciliationOrderReportAction", false)) { - /** - * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationOrderReportAction"; - - /** - * @access public - * @var string - */ - public $ReconciliationOrderReportActionType; - private $_parameterMap = array( - "ReconciliationOrderReportAction.Type" => "ReconciliationOrderReportActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ReconciliationOrderReportActionType = null) { - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; - } - - } -} - -if (!class_exists("ReconciliationOrderReport", false)) { - /** - * A {@link ReconciliationOrderReport} represents one order - * in the reconciliation report. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationOrderReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationOrderReport"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $reconciliationReportId; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var tnsReconciliationOrderReportStatus - */ - public $status; - - /** - * @access public - * @var DateTime - */ - public $submissionDateTime; - - /** - * @access public - * @var integer - */ - public $submitterId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $reconciliationReportId = null, $orderId = null, $status = null, $submissionDateTime = null, $submitterId = null) { - $this->id = $id; - $this->reconciliationReportId = $reconciliationReportId; - $this->orderId = $orderId; - $this->status = $status; - $this->submissionDateTime = $submissionDateTime; - $this->submitterId = $submitterId; - } - - } -} - -if (!class_exists("ReconciliationOrderReportPage", false)) { - /** - * Captures a page of {@link ReconciliationOrderReport} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationOrderReportPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationOrderReportPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ReconciliationOrderReport[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SubmitReconciliationOrderReports", false)) { - /** - * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SubmitReconciliationOrderReports"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ReconciliationOrderReportActionType = null) { - parent::__construct(); - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; - } - - } -} - -if (!class_exists("ReconciliationError", false)) { - /** - * Lists all errors associated with reconciliation. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationError"; - - /** - * @access public - * @var tnsReconciliationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RevertReconciliationOrderReports", false)) { - /** - * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RevertReconciliationOrderReports"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ReconciliationOrderReportActionType = null) { - parent::__construct(); - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationOrderReportStatus", false)) { - /** - * The status of the reconciliation order report. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationOrderReportStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationOrderReportStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReconciliationOrderReport", false)) { - /** - * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. - * - * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, - * which must already exist. - * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationOrderReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reconciliationOrderReportId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationOrderReportId = null) { - $this->reconciliationOrderReportId = $reconciliationOrderReportId; - } - - } -} - -if (!class_exists("GetReconciliationOrderReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationOrderReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationOrderReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReconciliationOrderReportsByStatement", false)) { - /** - * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects - * that satisfy the given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
{@code id}{@link ReconciliationOrderReport#id}
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code status}{@link ReconciliationOrderReport#status}
{@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
{@code submitterId}{@link ReconciliationOrderReport#submitterId}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of reconciliation order reports. - * @return the reconciliation order reports that match the given filter. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationOrderReportsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetReconciliationOrderReportsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationOrderReportsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationOrderReportPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformReconciliationOrderReportAction", false)) { - /** - * Performs actions on the {@link ReconciliationOrderReport} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
- * The following statement patterns are supported: - *
    - *
  • reconciliationReportId = :reconciliationReportId AND orderId = :orderId
  • - *
  • reconciliationReportId = :reconciliationReportId AND proposalId = :proposalId
  • - *
  • reconciliationReportId = :reconciliationReportId - * AND (orderId IN (...) OR proposalId IN (...))
  • - *
- * The IN clause could be expanded to multiple OR expressions like - * (orderId = :orderId OR orderId = :orderId OR ...) - * Only orders to which the API user has access will be included. - * - * @param reconciliationOrderReportAction the action to perform. - * @param filterStatement a Publisher Query Language statement used to filter a set of orders and - * one reconciliation report. - * @return the result of the action performed. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationOrderReportAction - */ - public $reconciliationOrderReportAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationOrderReportAction = null, $filterStatement = null) { - $this->reconciliationOrderReportAction = $reconciliationOrderReportAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformReconciliationOrderReportActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformReconciliationOrderReportActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReconciliationOrderReportService", false)) { - /** - * ReconciliationOrderReportService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationOrderReportService extends DfpSoapClient { - - const SERVICE_NAME = "ReconciliationOrderReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ReconciliationOrderReportService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ReconciliationOrderReportService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ReconciliationOrderReportAction" => "ReconciliationOrderReportAction", - "ReconciliationOrderReport" => "ReconciliationOrderReport", - "ReconciliationOrderReportPage" => "ReconciliationOrderReportPage", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "SubmitReconciliationOrderReports" => "SubmitReconciliationOrderReports", - "ReconciliationError" => "ReconciliationError", - "RequiredError" => "RequiredError", - "RevertReconciliationOrderReports" => "RevertReconciliationOrderReports", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "ReconciliationError.Reason" => "ReconciliationErrorReason", - "ReconciliationOrderReportStatus" => "ReconciliationOrderReportStatus", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReconciliationOrderReport" => "GetReconciliationOrderReport", - "getReconciliationOrderReportResponse" => "GetReconciliationOrderReportResponse", - "getReconciliationOrderReportsByStatement" => "GetReconciliationOrderReportsByStatement", - "getReconciliationOrderReportsByStatementResponse" => "GetReconciliationOrderReportsByStatementResponse", - "performReconciliationOrderReportAction" => "PerformReconciliationOrderReportAction", - "performReconciliationOrderReportActionResponse" => "PerformReconciliationOrderReportActionResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. - * - * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, - * which must already exist. - * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. - */ - public function getReconciliationOrderReport($reconciliationOrderReportId) { - $args = new GetReconciliationOrderReport($reconciliationOrderReportId); - $result = $this->__soapCall("getReconciliationOrderReport", array($args)); - return $result->rval; - } - /** - * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects - * that satisfy the given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
{@code id}{@link ReconciliationOrderReport#id}
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code status}{@link ReconciliationOrderReport#status}
{@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
{@code submitterId}{@link ReconciliationOrderReport#submitterId}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of reconciliation order reports. - * @return the reconciliation order reports that match the given filter. - */ - public function getReconciliationOrderReportsByStatement($filterStatement) { - $args = new GetReconciliationOrderReportsByStatement($filterStatement); - $result = $this->__soapCall("getReconciliationOrderReportsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on the {@link ReconciliationOrderReport} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
- * The following statement patterns are supported: - *
    - *
  • reconciliationReportId = :reconciliationReportId AND orderId = :orderId
  • - *
  • reconciliationReportId = :reconciliationReportId AND proposalId = :proposalId
  • - *
  • reconciliationReportId = :reconciliationReportId - * AND (orderId IN (...) OR proposalId IN (...))
  • - *
- * The IN clause could be expanded to multiple OR expressions like - * (orderId = :orderId OR orderId = :orderId OR ...) - * Only orders to which the API user has access will be included. - * - * @param reconciliationOrderReportAction the action to perform. - * @param filterStatement a Publisher Query Language statement used to filter a set of orders and - * one reconciliation report. - * @return the result of the action performed. - */ - public function performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement) { - $args = new PerformReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement); - $result = $this->__soapCall("performReconciliationOrderReportAction", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php deleted file mode 100755 index 11bedf70d..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportService.php +++ /dev/null @@ -1,3051 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationError", false)) { - /** - * Lists all errors associated with reconciliation. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationError"; - - /** - * @access public - * @var tnsReconciliationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationImportError", false)) { - /** - * The API errors for reconciliation CSV import. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationImportError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationImportError"; - - /** - * @access public - * @var tnsReconciliationImportErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationReport", false)) { - /** - * A {@code ReconciliationReport} represents a report that can be reconciled. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationReport"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsReconciliationReportStatus - */ - public $status; - - /** - * @access public - * @var Date - */ - public $startDate; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $status = null, $startDate = null, $notes = null) { - $this->id = $id; - $this->status = $status; - $this->startDate = $startDate; - $this->notes = $notes; - } - - } -} - -if (!class_exists("ReconciliationReportPage", false)) { - /** - * Captures a page of {@link ReconciliationReport} objects - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationReportPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationReportPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationImportErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationImportErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationImportError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationReportStatus", false)) { - /** - * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationReportStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReconciliationReportStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReconciliationReport", false)) { - /** - * Returns the {@link ReconciliationReport} object uniquely identified by given ID. - * - * @param reconciliationReportId the ID of the reconciliation report, which must already exist - * @return the {@code ReconciliationReport} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reconciliationReportId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReportId = null) { - $this->reconciliationReportId = $reconciliationReportId; - } - - } -} - -if (!class_exists("GetReconciliationReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReconciliationReportsByStatement", false)) { - /** - * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy - * the given {@link Statement#query}. The following fields are supported for filtering. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ReconciliationReport#id}
{@code status}{@link ReconciliationReport#status}
{@code startDate}{@link ReconciliationReport#startDate}
- * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation reports - * @return the reconciliation reports that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationReportsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetReconciliationReportsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReconciliationReportsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateReconciliationReport", false)) { - /** - * Updates the specified {@link ReconciliationReport}. - * - * @param reconciliationReport the reconciliation report to be updated - * @return the updated reconciliation report - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateReconciliationReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport - */ - public $reconciliationReport; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReport = null) { - $this->reconciliationReport = $reconciliationReport; - } - - } -} - -if (!class_exists("UpdateReconciliationReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateReconciliationReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateReconciliationReports", false)) { - /** - * Updates the specified {@link ReconciliationReport} objects. - * - * @param reconciliationReports the reconciliation reports to update - * @return the updated reconciliation reports - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateReconciliationReports { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $reconciliationReports; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReports = null) { - $this->reconciliationReports = $reconciliationReports; - } - - } -} - -if (!class_exists("UpdateReconciliationReportsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateReconciliationReportsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReconciliationReportService", false)) { - /** - * ReconciliationReportService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReconciliationReportService extends DfpSoapClient { - - const SERVICE_NAME = "ReconciliationReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ReconciliationReportService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ReconciliationReportService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "ReconciliationError" => "ReconciliationError", - "ReconciliationImportError" => "ReconciliationImportError", - "ReconciliationReport" => "ReconciliationReport", - "ReconciliationReportPage" => "ReconciliationReportPage", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "ReconciliationError.Reason" => "ReconciliationErrorReason", - "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", - "ReconciliationReportStatus" => "ReconciliationReportStatus", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReconciliationReport" => "GetReconciliationReport", - "getReconciliationReportResponse" => "GetReconciliationReportResponse", - "getReconciliationReportsByStatement" => "GetReconciliationReportsByStatement", - "getReconciliationReportsByStatementResponse" => "GetReconciliationReportsByStatementResponse", - "updateReconciliationReport" => "UpdateReconciliationReport", - "updateReconciliationReportResponse" => "UpdateReconciliationReportResponse", - "updateReconciliationReports" => "UpdateReconciliationReports", - "updateReconciliationReportsResponse" => "UpdateReconciliationReportsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link ReconciliationReport} object uniquely identified by given ID. - * - * @param reconciliationReportId the ID of the reconciliation report, which must already exist - * @return the {@code ReconciliationReport} uniquely identified by the given ID - */ - public function getReconciliationReport($reconciliationReportId) { - $args = new GetReconciliationReport($reconciliationReportId); - $result = $this->__soapCall("getReconciliationReport", array($args)); - return $result->rval; - } - /** - * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy - * the given {@link Statement#query}. The following fields are supported for filtering. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ReconciliationReport#id}
{@code status}{@link ReconciliationReport#status}
{@code startDate}{@link ReconciliationReport#startDate}
- * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation reports - * @return the reconciliation reports that match the given filter - */ - public function getReconciliationReportsByStatement($filterStatement) { - $args = new GetReconciliationReportsByStatement($filterStatement); - $result = $this->__soapCall("getReconciliationReportsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ReconciliationReport}. - * - * @param reconciliationReport the reconciliation report to be updated - * @return the updated reconciliation report - */ - public function updateReconciliationReport($reconciliationReport) { - $args = new UpdateReconciliationReport($reconciliationReport); - $result = $this->__soapCall("updateReconciliationReport", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ReconciliationReport} objects. - * - * @param reconciliationReports the reconciliation reports to update - * @return the updated reconciliation reports - * @throws ApiException - */ - public function updateReconciliationReports($reconciliationReports) { - $args = new UpdateReconciliationReports($reconciliationReports); - $result = $this->__soapCall("updateReconciliationReports", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/ReportService.php b/src/Google/Api/Ads/Dfp/v201306/ReportService.php deleted file mode 100755 index a98276a21..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/ReportService.php +++ /dev/null @@ -1,3255 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReportDownloadOptions", false)) { - /** - * Represents the options for an API report download request. - * See {@link ReportService#getReportDownloadUrlWithOptions}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportDownloadOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReportDownloadOptions"; - - /** - * @access public - * @var tnsExportFormat - */ - public $exportFormat; - - /** - * @access public - * @var boolean - */ - public $includeReportProperties; - - /** - * @access public - * @var boolean - */ - public $includeTotalsRow; - - /** - * @access public - * @var boolean - */ - public $useGzipCompression; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($exportFormat = null, $includeReportProperties = null, $includeTotalsRow = null, $useGzipCompression = null) { - $this->exportFormat = $exportFormat; - $this->includeReportProperties = $includeReportProperties; - $this->includeTotalsRow = $includeTotalsRow; - $this->useGzipCompression = $useGzipCompression; - } - - } -} - -if (!class_exists("ReportError", false)) { - /** - * An error for an exception that occurred while running the report. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReportError"; - - /** - * @access public - * @var tnsReportErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReportJob", false)) { - /** - * Represents a report job that will be run to retrieve performance and - * statistics information about ad campaigns, networks, inventory and sales. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportJob { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReportJob"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var ReportQuery - */ - public $reportQuery; - - /** - * @access public - * @var tnsReportJobStatus - */ - public $reportJobStatus; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $reportQuery = null, $reportJobStatus = null) { - $this->id = $id; - $this->reportQuery = $reportQuery; - $this->reportJobStatus = $reportJobStatus; - } - - } -} - -if (!class_exists("ReportQuery", false)) { - /** - * A {@code ReportQuery} object allows you to specify the selection criteria for - * generating a report. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportQuery { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReportQuery"; - - /** - * @access public - * @var tnsDimension[] - */ - public $dimensions; - - /** - * @access public - * @var tnsReportQueryAdUnitView - */ - public $adUnitView; - - /** - * @access public - * @var tnsColumn[] - */ - public $columns; - - /** - * @access public - * @var tnsDimensionAttribute[] - */ - public $dimensionAttributes; - - /** - * @access public - * @var integer[] - */ - public $customFieldIds; - - /** - * @access public - * @var Date - */ - public $startDate; - - /** - * @access public - * @var Date - */ - public $endDate; - - /** - * @access public - * @var tnsDateRangeType - */ - public $dateRangeType; - - /** - * @access public - * @var tnsDimensionFilter[] - */ - public $dimensionFilters; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * @access public - * @var string - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dimensions = null, $adUnitView = null, $columns = null, $dimensionAttributes = null, $customFieldIds = null, $startDate = null, $endDate = null, $dateRangeType = null, $dimensionFilters = null, $statement = null, $timeZone = null) { - $this->dimensions = $dimensions; - $this->adUnitView = $adUnitView; - $this->columns = $columns; - $this->dimensionAttributes = $dimensionAttributes; - $this->customFieldIds = $customFieldIds; - $this->startDate = $startDate; - $this->endDate = $endDate; - $this->dateRangeType = $dateRangeType; - $this->dimensionFilters = $dimensionFilters; - $this->statement = $statement; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReportQueryAdUnitView", false)) { - /** - * A view for an ad unit report. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportQueryAdUnitView { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReportQuery.AdUnitView"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Column", false)) { - /** - * {@code Column} provides all the trafficking statistics and revenue - * information available for the chosen {@link Dimension} objects. - *

- * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions - * relating to line items, orders, companies and creatives, - * such as {@link Dimension#LINE_ITEM_NAME}. - * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level - * dynamic allocation enabled on your network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Column { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Column"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateRangeType", false)) { - /** - * Represents a period of time. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateRangeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateRangeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Dimension", false)) { - /** - * {@code Dimension} provides the break-down and filterable types available for - * running a {@link ReportJob}. Aggregate and percentage columns will be - * calculated based on these groupings. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Dimension { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Dimension"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DimensionAttribute", false)) { - /** - * {@code DimensionAttribute} provides additional fields associated with a - * {@link Dimension}. It can only be selected with its corresponding - * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} - * can only be used if the {@link ReportQuery#dimensions} contains - * {@link Dimension#ORDER_NAME}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DimensionAttribute { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DimensionAttribute"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DimensionFilter", false)) { - /** - * {@code DimensionFilter} filters the data used during report creation. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DimensionFilter { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DimensionFilter"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ExportFormat", false)) { - /** - * The file formats available for creating the report. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ExportFormat { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ExportFormat"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReportErrorReason", false)) { - /** - * Default {@code ReportError} when the reason is not among any already - * defined. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReportError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReportJobStatus", false)) { - /** - * Represents the status of a {@link ReportJob} running on the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportJobStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ReportJobStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReportDownloadURL", false)) { - /** - * Returns the URL at which the report file can be downloaded. - *

- * The report will be generated as a gzip archive, containing the report file itself. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param exportFormat the {@link ExportFormat} for the report file - * @return the URL for report file download - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReportDownloadURL { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reportJobId; - - /** - * @access public - * @var tnsExportFormat - */ - public $exportFormat; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJobId = null, $exportFormat = null) { - $this->reportJobId = $reportJobId; - $this->exportFormat = $exportFormat; - } - - } -} - -if (!class_exists("GetReportDownloadURLResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReportDownloadURLResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReportDownloadUrlWithOptions", false)) { - /** - * Returns the URL at which the report file can be downloaded, and allows for customization - * of the downloaded report. - *

- * By default, the report will be generated as a gzip archive, containing the report file itself. - * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request - * @return the URL for report file download - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReportDownloadUrlWithOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reportJobId; - - /** - * @access public - * @var ReportDownloadOptions - */ - public $reportDownloadOptions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJobId = null, $reportDownloadOptions = null) { - $this->reportJobId = $reportJobId; - $this->reportDownloadOptions = $reportDownloadOptions; - } - - } -} - -if (!class_exists("GetReportDownloadUrlWithOptionsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReportDownloadUrlWithOptionsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReportJob", false)) { - /** - * Returns the {@link ReportJob} uniquely identified by the given ID. - * - * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReportJob { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reportJobId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJobId = null) { - $this->reportJobId = $reportJobId; - } - - } -} - -if (!class_exists("GetReportJobResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetReportJobResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReportJob - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("RunReportJob", false)) { - /** - * Initiates the execution of a {@link ReportQuery} on the server. - * - *

The following fields are required: - *

    - *
  • {@link ReportJob#reportQuery}
  • - *
- * - * @param reportJob the report job to run - * @return the report job with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RunReportJob { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReportJob - */ - public $reportJob; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJob = null) { - $this->reportJob = $reportJob; - } - - } -} - -if (!class_exists("RunReportJobResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RunReportJobResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReportJob - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReportService", false)) { - /** - * ReportService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ReportService extends DfpSoapClient { - - const SERVICE_NAME = "ReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ReportService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ReportService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "ReportDownloadOptions" => "ReportDownloadOptions", - "ReportError" => "ReportError", - "ReportJob" => "ReportJob", - "ReportQuery" => "ReportQuery", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "Column" => "Column", - "CommonError.Reason" => "CommonErrorReason", - "DateRangeType" => "DateRangeType", - "Dimension" => "Dimension", - "DimensionAttribute" => "DimensionAttribute", - "DimensionFilter" => "DimensionFilter", - "ExportFormat" => "ExportFormat", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "ReportError.Reason" => "ReportErrorReason", - "ReportJobStatus" => "ReportJobStatus", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReportDownloadURL" => "GetReportDownloadURL", - "getReportDownloadURLResponse" => "GetReportDownloadURLResponse", - "getReportDownloadUrlWithOptions" => "GetReportDownloadUrlWithOptions", - "getReportDownloadUrlWithOptionsResponse" => "GetReportDownloadUrlWithOptionsResponse", - "getReportJob" => "GetReportJob", - "getReportJobResponse" => "GetReportJobResponse", - "runReportJob" => "RunReportJob", - "runReportJobResponse" => "RunReportJobResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the URL at which the report file can be downloaded. - *

- * The report will be generated as a gzip archive, containing the report file itself. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param exportFormat the {@link ExportFormat} for the report file - * @return the URL for report file download - */ - public function getReportDownloadURL($reportJobId, $exportFormat) { - $args = new GetReportDownloadURL($reportJobId, $exportFormat); - $result = $this->__soapCall("getReportDownloadURL", array($args)); - return $result->rval; - } - /** - * Returns the URL at which the report file can be downloaded, and allows for customization - * of the downloaded report. - *

- * By default, the report will be generated as a gzip archive, containing the report file itself. - * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request - * @return the URL for report file download - */ - public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { - $args = new GetReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); - $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($args)); - return $result->rval; - } - /** - * Returns the {@link ReportJob} uniquely identified by the given ID. - * - * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID - */ - public function getReportJob($reportJobId) { - $args = new GetReportJob($reportJobId); - $result = $this->__soapCall("getReportJob", array($args)); - return $result->rval; - } - /** - * Initiates the execution of a {@link ReportQuery} on the server. - * - *

The following fields are required: - *

    - *
  • {@link ReportJob#reportQuery}
  • - *
- * - * @param reportJob the report job to run - * @return the report job with its ID filled in - */ - public function runReportJob($reportJob) { - $args = new RunReportJob($reportJob); - $result = $this->__soapCall("runReportJob", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/TeamService.php b/src/Google/Api/Ads/Dfp/v201306/TeamService.php deleted file mode 100755 index 757beaa45..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/TeamService.php +++ /dev/null @@ -1,3210 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Team", false)) { - /** - * A {@code Team} defines a grouping of users and what entities they have access - * to. Users are added to teams with {@link UserTeamAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Team { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Team"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var boolean - */ - public $hasAllCompanies; - - /** - * @access public - * @var boolean - */ - public $hasAllInventory; - - /** - * @access public - * @var tnsTeamAccessType - */ - public $teamAccessType; - - /** - * @access public - * @var integer[] - */ - public $companyIds; - - /** - * @access public - * @var string[] - */ - public $adUnitIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $hasAllCompanies = null, $hasAllInventory = null, $teamAccessType = null, $companyIds = null, $adUnitIds = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->hasAllCompanies = $hasAllCompanies; - $this->hasAllInventory = $hasAllInventory; - $this->teamAccessType = $teamAccessType; - $this->companyIds = $companyIds; - $this->adUnitIds = $adUnitIds; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TeamPage", false)) { - /** - * Captures a page of {@link Team} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Team[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamAccessType", false)) { - /** - * Represents the types of team access supported for orders. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamAccessType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamAccessType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateTeam", false)) { - /** - * Creates a new {@code Team}. - * - * The following fields are required: - *
    - *
  • {@link Team#name}
  • - *
- * - * @param team the team to create - * @return the team with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateTeam { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $team; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($team = null) { - $this->team = $team; - } - - } -} - -if (!class_exists("CreateTeamResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateTeamResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateTeams", false)) { - /** - * Creates new {@link Team} objects. - * - * The following fields are required: - *
    - *
  • {@link Team#name}
  • - *
- * - * @param teams the teams to create - * @return the created teams with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateTeams { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team[] - */ - public $teams; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teams = null) { - $this->teams = $teams; - } - - } -} - -if (!class_exists("CreateTeamsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateTeamsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetTeam", false)) { - /** - * Returns the {@code Team} uniquely identified by the given ID. - * - * @param teamId the ID of the team, which must already exist - * @return the {@code Team} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetTeam { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teamId = null) { - $this->teamId = $teamId; - } - - } -} - -if (!class_exists("GetTeamResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetTeamResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetTeamsByStatement", false)) { - /** - * Gets a {@code TeamPage} of {@code Team} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Team#id}
{@code name}{@link Team#name}
{@code description}{@link Team#description}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of teams. - * @return the teams that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetTeamsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetTeamsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetTeamsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var TeamPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateTeam", false)) { - /** - * Updates the specified {@code Team}. - * - * @param team the team to update - * @return the updated team - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateTeam { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $team; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($team = null) { - $this->team = $team; - } - - } -} - -if (!class_exists("UpdateTeamResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateTeamResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateTeams", false)) { - /** - * Updates the specified {@link Team} objects. - * - * @param teams the teams to update - * @return the updated teams - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateTeams { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team[] - */ - public $teams; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teams = null) { - $this->teams = $teams; - } - - } -} - -if (!class_exists("UpdateTeamsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateTeamsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TeamService", false)) { - /** - * TeamService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamService extends DfpSoapClient { - - const SERVICE_NAME = "TeamService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/TeamService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/TeamService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Team" => "Team", - "TeamError" => "TeamError", - "TeamPage" => "TeamPage", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "TeamAccessType" => "TeamAccessType", - "TeamError.Reason" => "TeamErrorReason", - "createTeam" => "CreateTeam", - "createTeamResponse" => "CreateTeamResponse", - "createTeams" => "CreateTeams", - "createTeamsResponse" => "CreateTeamsResponse", - "getTeam" => "GetTeam", - "getTeamResponse" => "GetTeamResponse", - "getTeamsByStatement" => "GetTeamsByStatement", - "getTeamsByStatementResponse" => "GetTeamsByStatementResponse", - "updateTeam" => "UpdateTeam", - "updateTeamResponse" => "UpdateTeamResponse", - "updateTeams" => "UpdateTeams", - "updateTeamsResponse" => "UpdateTeamsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@code Team}. - * - * The following fields are required: - *
    - *
  • {@link Team#name}
  • - *
- * - * @param team the team to create - * @return the team with its ID filled in - */ - public function createTeam($team) { - $args = new CreateTeam($team); - $result = $this->__soapCall("createTeam", array($args)); - return $result->rval; - } - /** - * Creates new {@link Team} objects. - * - * The following fields are required: - *
    - *
  • {@link Team#name}
  • - *
- * - * @param teams the teams to create - * @return the created teams with their IDs filled in - */ - public function createTeams($teams) { - $args = new CreateTeams($teams); - $result = $this->__soapCall("createTeams", array($args)); - return $result->rval; - } - /** - * Returns the {@code Team} uniquely identified by the given ID. - * - * @param teamId the ID of the team, which must already exist - * @return the {@code Team} uniquely identified by the given ID - */ - public function getTeam($teamId) { - $args = new GetTeam($teamId); - $result = $this->__soapCall("getTeam", array($args)); - return $result->rval; - } - /** - * Gets a {@code TeamPage} of {@code Team} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Team#id}
{@code name}{@link Team#name}
{@code description}{@link Team#description}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of teams. - * @return the teams that match the given filter - */ - public function getTeamsByStatement($filterStatement) { - $args = new GetTeamsByStatement($filterStatement); - $result = $this->__soapCall("getTeamsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@code Team}. - * - * @param team the team to update - * @return the updated team - */ - public function updateTeam($team) { - $args = new UpdateTeam($team); - $result = $this->__soapCall("updateTeam", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Team} objects. - * - * @param teams the teams to update - * @return the updated teams - */ - public function updateTeams($teams) { - $args = new UpdateTeams($teams); - $result = $this->__soapCall("updateTeams", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/UserService.php b/src/Google/Api/Ads/Dfp/v201306/UserService.php deleted file mode 100755 index f7bc6f194..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/UserService.php +++ /dev/null @@ -1,4237 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Role", false)) { - /** - * Each {@code Role} provides a user with permissions to perform specific - * operations in the system. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Role { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Role"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TokenError", false)) { - /** - * An error for an exception that occurred when using a token. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TokenError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TokenError"; - - /** - * @access public - * @var tnsTokenErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserAction", false)) { - /** - * Represents the actions that can be performed on {@link User} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserAction"; - - /** - * @access public - * @var string - */ - public $UserActionType; - private $_parameterMap = array( - "UserAction.Type" => "UserActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserActionType = null) { - $this->UserActionType = $UserActionType; - } - - } -} - -if (!class_exists("UserPage", false)) { - /** - * Captures a page of {@link User} objects - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var User[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("UserRecord", false)) { - /** - * The {@code UserRecord} represents the base class from which a {@code User} is - * derived. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserRecord { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserRecord"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $email; - - /** - * @access public - * @var integer - */ - public $roleId; - - /** - * @access public - * @var string - */ - public $roleName; - - /** - * @access public - * @var string - */ - public $preferredLocale; - - /** - * @access public - * @var string - */ - public $UserRecordType; - private $_parameterMap = array( - "UserRecord.Type" => "UserRecordType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { - $this->id = $id; - $this->name = $name; - $this->email = $email; - $this->roleId = $roleId; - $this->roleName = $roleName; - $this->preferredLocale = $preferredLocale; - $this->UserRecordType = $UserRecordType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TokenErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TokenErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TokenError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateUser", false)) { - /** - * Creates a new {@link User}. - * - * The following fields are required: - *
    - *
  • {@link User#email}
  • - *
  • {@link User#name}
  • - *
- * - * @param user the user to create - * @return the new user with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $user; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($user = null) { - $this->user = $user; - } - - } -} - -if (!class_exists("CreateUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateUsers", false)) { - /** - * Creates new {@link User} objects. - * - * @param users the users to create - * @return the created users with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUsers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $users; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($users = null) { - $this->users = $users; - } - - } -} - -if (!class_exists("CreateUsersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUsersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAllRoles", false)) { - /** - * Returns the {@link Role} objects that are defined for the users of the - * network. - * - * @return the roles defined for the user's network - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetAllRoles { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetAllRolesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetAllRolesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Role[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCurrentUser", false)) { - /** - * Returns the current {@link User}. - * - * @return the current user - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCurrentUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetCurrentUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCurrentUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUser", false)) { - /** - * Returns the {@link User} uniquely identified by the given ID. - * - * @param userId The optional ID of the user. For current user set to {@code null}. - * @return the {@code User} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userId = null) { - $this->userId = $userId; - } - - } -} - -if (!class_exists("GetUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUsersByStatement", false)) { - /** - * Gets a {@link UserPage} of {@link User} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code email}{@link User#email}
{@code id}{@link User#id}
{@code name}{@link User#name}
{@code roleId}{@link User#roleId} - *
{@code rolename}{@link User#roleName} - *
{@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} - * otherwise
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the users that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUsersByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetUsersByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUsersByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformUserAction", false)) { - /** - * Performs actions on {@link User} objects that match the given - * {@link Statement#query}. - * - * @param userAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformUserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserAction - */ - public $userAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userAction = null, $filterStatement = null) { - $this->userAction = $userAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformUserActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformUserActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUser", false)) { - /** - * Updates the specified {@link User}. - * - * @param user the user to update - * @return the updated user - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $user; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($user = null) { - $this->user = $user; - } - - } -} - -if (!class_exists("UpdateUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUsers", false)) { - /** - * Updates the specified {@link User} objects. - * - * @param users the users to update - * @return the updated users - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUsers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $users; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($users = null) { - $this->users = $users; - } - - } -} - -if (!class_exists("UpdateUsersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUsersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateUsers", false)) { - /** - * The action used for activating {@link User} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ActivateUsers extends UserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateUsers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserActionType = null) { - parent::__construct(); - $this->UserActionType = $UserActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateUsers", false)) { - /** - * The action used for deactivating {@link User} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeactivateUsers extends UserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateUsers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserActionType = null) { - parent::__construct(); - $this->UserActionType = $UserActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("User", false)) { - /** - * Represents a user of the system. - *

- * Users may be assigned at most one {@link Role} per network. Each role - * provides a user with permissions to perform specific operations. Without a - * role, they will not be able to perform any actions. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class User extends UserRecord { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "User"; - - /** - * @access public - * @var boolean - */ - public $isActive; - - /** - * @access public - * @var boolean - */ - public $isEmailNotificationAllowed; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $ordersUiLocalTimeZoneId; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isActive = null, $isEmailNotificationAllowed = null, $externalId = null, $ordersUiLocalTimeZoneId = null, $customFieldValues = null, $id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { - parent::__construct(); - $this->isActive = $isActive; - $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; - $this->externalId = $externalId; - $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; - $this->customFieldValues = $customFieldValues; - $this->id = $id; - $this->name = $name; - $this->email = $email; - $this->roleId = $roleId; - $this->roleName = $roleName; - $this->preferredLocale = $preferredLocale; - $this->UserRecordType = $UserRecordType; - } - - } -} - -if (!class_exists("UserService", false)) { - /** - * UserService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserService extends DfpSoapClient { - - const SERVICE_NAME = "UserService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/UserService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/UserService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateUsers" => "ActivateUsers", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateUsers" => "DeactivateUsers", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "Role" => "Role", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TokenError" => "TokenError", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserAction" => "UserAction", - "User" => "User", - "UserPage" => "UserPage", - "UserRecord" => "UserRecord", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "TokenError.Reason" => "TokenErrorReason", - "createUser" => "CreateUser", - "createUserResponse" => "CreateUserResponse", - "createUsers" => "CreateUsers", - "createUsersResponse" => "CreateUsersResponse", - "getAllRoles" => "GetAllRoles", - "getAllRolesResponse" => "GetAllRolesResponse", - "getCurrentUser" => "GetCurrentUser", - "getCurrentUserResponse" => "GetCurrentUserResponse", - "getUser" => "GetUser", - "getUserResponse" => "GetUserResponse", - "getUsersByStatement" => "GetUsersByStatement", - "getUsersByStatementResponse" => "GetUsersByStatementResponse", - "performUserAction" => "PerformUserAction", - "performUserActionResponse" => "PerformUserActionResponse", - "updateUser" => "UpdateUser", - "updateUserResponse" => "UpdateUserResponse", - "updateUsers" => "UpdateUsers", - "updateUsersResponse" => "UpdateUsersResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link User}. - * - * The following fields are required: - *
    - *
  • {@link User#email}
  • - *
  • {@link User#name}
  • - *
- * - * @param user the user to create - * @return the new user with its ID filled in - */ - public function createUser($user) { - $args = new CreateUser($user); - $result = $this->__soapCall("createUser", array($args)); - return $result->rval; - } - /** - * Creates new {@link User} objects. - * - * @param users the users to create - * @return the created users with their IDs filled in - */ - public function createUsers($users) { - $args = new CreateUsers($users); - $result = $this->__soapCall("createUsers", array($args)); - return $result->rval; - } - /** - * Returns the {@link Role} objects that are defined for the users of the - * network. - * - * @return the roles defined for the user's network - */ - public function getAllRoles() { - $args = new GetAllRoles(); - $result = $this->__soapCall("getAllRoles", array($args)); - return $result->rval; - } - /** - * Returns the current {@link User}. - * - * @return the current user - */ - public function getCurrentUser() { - $args = new GetCurrentUser(); - $result = $this->__soapCall("getCurrentUser", array($args)); - return $result->rval; - } - /** - * Returns the {@link User} uniquely identified by the given ID. - * - * @param userId The optional ID of the user. For current user set to {@code null}. - * @return the {@code User} uniquely identified by the given ID - */ - public function getUser($userId) { - $args = new GetUser($userId); - $result = $this->__soapCall("getUser", array($args)); - return $result->rval; - } - /** - * Gets a {@link UserPage} of {@link User} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code email}{@link User#email}
{@code id}{@link User#id}
{@code name}{@link User#name}
{@code roleId}{@link User#roleId} - *
{@code rolename}{@link User#roleName} - *
{@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} - * otherwise
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the users that match the given filter - */ - public function getUsersByStatement($filterStatement) { - $args = new GetUsersByStatement($filterStatement); - $result = $this->__soapCall("getUsersByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link User} objects that match the given - * {@link Statement#query}. - * - * @param userAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the result of the action performed - */ - public function performUserAction($userAction, $filterStatement) { - $args = new PerformUserAction($userAction, $filterStatement); - $result = $this->__soapCall("performUserAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link User}. - * - * @param user the user to update - * @return the updated user - */ - public function updateUser($user) { - $args = new UpdateUser($user); - $result = $this->__soapCall("updateUser", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link User} objects. - * - * @param users the users to update - * @return the updated users - */ - public function updateUsers($users) { - $args = new UpdateUsers($users); - $result = $this->__soapCall("updateUsers", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php deleted file mode 100755 index dac406e02..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/UserTeamAssociationService.php +++ /dev/null @@ -1,3280 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserRecordTeamAssociation", false)) { - /** - * {@code UserRecordTeamAssociation} represents the association between a - * {@link UserRecord} and a {@link Team}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserRecordTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserRecordTeamAssociation"; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * @access public - * @var tnsTeamAccessType - */ - public $overriddenTeamAccessType; - - /** - * @access public - * @var tnsTeamAccessType - */ - public $defaultTeamAccessType; - - /** - * @access public - * @var string - */ - public $UserRecordTeamAssociationType; - private $_parameterMap = array( - "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null, $UserRecordTeamAssociationType = null) { - $this->teamId = $teamId; - $this->overriddenTeamAccessType = $overriddenTeamAccessType; - $this->defaultTeamAccessType = $defaultTeamAccessType; - $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; - } - - } -} - -if (!class_exists("UserTeamAssociationAction", false)) { - /** - * Represents the actions that can be performed on {@link UserTeamAssociation} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserTeamAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserTeamAssociationAction"; - - /** - * @access public - * @var string - */ - public $UserTeamAssociationActionType; - private $_parameterMap = array( - "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserTeamAssociationActionType = null) { - $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; - } - - } -} - -if (!class_exists("UserTeamAssociation", false)) { - /** - * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} - * to provide the user access to the entities that belong to the team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserTeamAssociation extends UserRecordTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserTeamAssociation"; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userId = null, $teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null, $UserRecordTeamAssociationType = null) { - parent::__construct(); - $this->userId = $userId; - $this->teamId = $teamId; - $this->overriddenTeamAccessType = $overriddenTeamAccessType; - $this->defaultTeamAccessType = $defaultTeamAccessType; - $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; - } - - } -} - -if (!class_exists("UserTeamAssociationPage", false)) { - /** - * Captures a page of {@link UserTeamAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserTeamAssociationPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserTeamAssociationPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamAccessType", false)) { - /** - * Represents the types of team access supported for orders. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TeamAccessType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TeamAccessType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateUserTeamAssociation", false)) { - /** - * Creates a new {@code UserTeamAssociation}. - * - * The following fields are required: - *
    - *
  • {@link UserTeamAssociation#teamId}
  • - *
  • {@link UserTeamAssociation#userId}
  • - *
- * - * @param userTeamAssociation the user team association to create - * @return the user team association with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $userTeamAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociation = null) { - $this->userTeamAssociation = $userTeamAssociation; - } - - } -} - -if (!class_exists("CreateUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateUserTeamAssociations", false)) { - /** - * Creates new {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to create - * @return the created user team associations with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUserTeamAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $userTeamAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociations = null) { - $this->userTeamAssociations = $userTeamAssociations; - } - - } -} - -if (!class_exists("CreateUserTeamAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateUserTeamAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUserTeamAssociation", false)) { - /** - * Returns the {@link UserTeamAssociation} uniquely identified by the given - * user and team IDs. - * - * @param teamId the ID of the team, which must already exist - * @param userId the ID of the user, which must already exist - * @return the {@code UserTeamAssociation} uniquely identified by the - * user and team IDs - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teamId = null, $userId = null) { - $this->teamId = $teamId; - $this->userId = $userId; - } - - } -} - -if (!class_exists("GetUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUserTeamAssociationsByStatement", false)) { - /** - * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code userId}{@link UserTeamAssociation#userId}
{@code teamId}{@link UserTeamAssociation#teamId}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the user team associations that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUserTeamAssociationsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetUserTeamAssociationsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetUserTeamAssociationsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociationPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformUserTeamAssociationAction", false)) { - /** - * Performs actions on {@link UserTeamAssociation} objects that match the - * given {@link Statement#query}. - * - * @param userTeamAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformUserTeamAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociationAction - */ - public $userTeamAssociationAction; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociationAction = null, $statement = null) { - $this->userTeamAssociationAction = $userTeamAssociationAction; - $this->statement = $statement; - } - - } -} - -if (!class_exists("PerformUserTeamAssociationActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PerformUserTeamAssociationActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociation", false)) { - /** - * Updates the specified {@link UserTeamAssociation}. - * - * @param userTeamAssociation the user team association to update - * @return the updated user team association - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $userTeamAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociation = null) { - $this->userTeamAssociation = $userTeamAssociation; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociations", false)) { - /** - * Updates the specified {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to update - * @return the updated user team associations - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUserTeamAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $userTeamAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociations = null) { - $this->userTeamAssociations = $userTeamAssociations; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateUserTeamAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeleteUserTeamAssociations", false)) { - /** - * Action to delete the association between a {@link User} and a {@link Team}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DeleteUserTeamAssociations extends UserTeamAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeleteUserTeamAssociations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserTeamAssociationActionType = null) { - parent::__construct(); - $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("UserTeamAssociationService", false)) { - /** - * UserTeamAssociationService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserTeamAssociationService extends DfpSoapClient { - - const SERVICE_NAME = "UserTeamAssociationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/UserTeamAssociationService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/UserTeamAssociationService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UpdateResult" => "UpdateResult", - "UserRecordTeamAssociation" => "UserRecordTeamAssociation", - "UserTeamAssociationAction" => "UserTeamAssociationAction", - "UserTeamAssociation" => "UserTeamAssociation", - "UserTeamAssociationPage" => "UserTeamAssociationPage", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "TeamAccessType" => "TeamAccessType", - "createUserTeamAssociation" => "CreateUserTeamAssociation", - "createUserTeamAssociationResponse" => "CreateUserTeamAssociationResponse", - "createUserTeamAssociations" => "CreateUserTeamAssociations", - "createUserTeamAssociationsResponse" => "CreateUserTeamAssociationsResponse", - "getUserTeamAssociation" => "GetUserTeamAssociation", - "getUserTeamAssociationResponse" => "GetUserTeamAssociationResponse", - "getUserTeamAssociationsByStatement" => "GetUserTeamAssociationsByStatement", - "getUserTeamAssociationsByStatementResponse" => "GetUserTeamAssociationsByStatementResponse", - "performUserTeamAssociationAction" => "PerformUserTeamAssociationAction", - "performUserTeamAssociationActionResponse" => "PerformUserTeamAssociationActionResponse", - "updateUserTeamAssociation" => "UpdateUserTeamAssociation", - "updateUserTeamAssociationResponse" => "UpdateUserTeamAssociationResponse", - "updateUserTeamAssociations" => "UpdateUserTeamAssociations", - "updateUserTeamAssociationsResponse" => "UpdateUserTeamAssociationsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@code UserTeamAssociation}. - * - * The following fields are required: - *
    - *
  • {@link UserTeamAssociation#teamId}
  • - *
  • {@link UserTeamAssociation#userId}
  • - *
- * - * @param userTeamAssociation the user team association to create - * @return the user team association with its ID filled in - */ - public function createUserTeamAssociation($userTeamAssociation) { - $args = new CreateUserTeamAssociation($userTeamAssociation); - $result = $this->__soapCall("createUserTeamAssociation", array($args)); - return $result->rval; - } - /** - * Creates new {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to create - * @return the created user team associations with their IDs filled in - */ - public function createUserTeamAssociations($userTeamAssociations) { - $args = new CreateUserTeamAssociations($userTeamAssociations); - $result = $this->__soapCall("createUserTeamAssociations", array($args)); - return $result->rval; - } - /** - * Returns the {@link UserTeamAssociation} uniquely identified by the given - * user and team IDs. - * - * @param teamId the ID of the team, which must already exist - * @param userId the ID of the user, which must already exist - * @return the {@code UserTeamAssociation} uniquely identified by the - * user and team IDs - */ - public function getUserTeamAssociation($teamId, $userId) { - $args = new GetUserTeamAssociation($teamId, $userId); - $result = $this->__soapCall("getUserTeamAssociation", array($args)); - return $result->rval; - } - /** - * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code userId}{@link UserTeamAssociation#userId}
{@code teamId}{@link UserTeamAssociation#teamId}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the user team associations that match the given filter - */ - public function getUserTeamAssociationsByStatement($filterStatement) { - $args = new GetUserTeamAssociationsByStatement($filterStatement); - $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link UserTeamAssociation} objects that match the - * given {@link Statement#query}. - * - * @param userTeamAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the result of the action performed - */ - public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { - $args = new PerformUserTeamAssociationAction($userTeamAssociationAction, $statement); - $result = $this->__soapCall("performUserTeamAssociationAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link UserTeamAssociation}. - * - * @param userTeamAssociation the user team association to update - * @return the updated user team association - */ - public function updateUserTeamAssociation($userTeamAssociation) { - $args = new UpdateUserTeamAssociation($userTeamAssociation); - $result = $this->__soapCall("updateUserTeamAssociation", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to update - * @return the updated user team associations - */ - public function updateUserTeamAssociations($userTeamAssociations) { - $args = new UpdateUserTeamAssociations($userTeamAssociations); - $result = $this->__soapCall("updateUserTeamAssociations", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php b/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php deleted file mode 100755 index b0b1a3772..000000000 --- a/src/Google/Api/Ads/Dfp/v201306/WorkflowActionService.php +++ /dev/null @@ -1,2549 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("WorkflowAction", false)) { - /** - * A {@code WorkflowAction} represents an executable in a workflow, such as requesting approval or - * sending notification. When the workflow has executed to a round, all of its actions will start. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "WorkflowAction"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var WorkflowActionPerformer[] - */ - public $performers; - - /** - * @access public - * @var tnsWorkflowActionType - */ - public $type; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $performers = null, $type = null) { - $this->id = $id; - $this->name = $name; - $this->performers = $performers; - $this->type = $type; - } - - } -} - -if (!class_exists("WorkflowActionPage", false)) { - /** - * Captures a page of {@link WorkflowAction} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowActionPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "WorkflowActionPage"; - - /** - * @access public - * @var WorkflowAction[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("WorkflowActionPerformer", false)) { - /** - * A {@code WorkflowActionPerformer} represents a workflow action performer. The performer is either - * an individual user or a team. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowActionPerformer { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "WorkflowActionPerformer"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsWorkflowRoundActionPerformerType - */ - public $type; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $type = null, $userId = null, $teamId = null) { - $this->id = $id; - $this->type = $type; - $this->userId = $userId; - $this->teamId = $teamId; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("WorkflowActionType", false)) { - /** - * Represents the type of an workflow round action. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowActionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "WorkflowActionType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("WorkflowRoundActionPerformerType", false)) { - /** - * The type of WorkflowRoundActionPerformer. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowRoundActionPerformerType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "WorkflowRoundActionPerformerType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetWorkflowAction", false)) { - /** - * Returns the {@link WorkflowAction} uniquely identified by the given ID. - * - * @param workflowActionId the ID of the workflow action, which must already exist - * @return the {@code WorkflowAction} uniquely identified by the given ID. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetWorkflowAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $workflowActionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($workflowActionId = null) { - $this->workflowActionId = $workflowActionId; - } - - } -} - -if (!class_exists("GetWorkflowActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetWorkflowActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var WorkflowAction - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetWorkflowActionsByStatement", false)) { - /** - * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
id{@link WorkflowAction#id}
name{@link WorkflowAction#name}
- * - * @param filterStatement a Publisher Query Language statement used to filter a set of workflow - * actions - * @return the {@link WorkflowAction workflow actions} that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetWorkflowActionsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetWorkflowActionsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetWorkflowActionsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var WorkflowActionPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("WorkflowActionService", false)) { - /** - * WorkflowActionService - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class WorkflowActionService extends DfpSoapClient { - - const SERVICE_NAME = "WorkflowActionService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/WorkflowActionService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/WorkflowActionService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "WorkflowAction" => "WorkflowAction", - "WorkflowActionPage" => "WorkflowActionPage", - "WorkflowActionPerformer" => "WorkflowActionPerformer", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "WorkflowActionType" => "WorkflowActionType", - "WorkflowRoundActionPerformerType" => "WorkflowRoundActionPerformerType", - "getWorkflowAction" => "GetWorkflowAction", - "getWorkflowActionResponse" => "GetWorkflowActionResponse", - "getWorkflowActionsByStatement" => "GetWorkflowActionsByStatement", - "getWorkflowActionsByStatementResponse" => "GetWorkflowActionsByStatementResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link WorkflowAction} uniquely identified by the given ID. - * - * @param workflowActionId the ID of the workflow action, which must already exist - * @return the {@code WorkflowAction} uniquely identified by the given ID. - */ - public function getWorkflowAction($workflowActionId) { - $args = new GetWorkflowAction($workflowActionId); - $result = $this->__soapCall("getWorkflowAction", array($args)); - return $result->rval; - } - /** - * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
id{@link WorkflowAction#id}
name{@link WorkflowAction#name}
- * - * @param filterStatement a Publisher Query Language statement used to filter a set of workflow - * actions - * @return the {@link WorkflowAction workflow actions} that match the given filter - */ - public function getWorkflowActionsByStatement($filterStatement) { - $args = new GetWorkflowActionsByStatement($filterStatement); - $result = $this->__soapCall("getWorkflowActionsByStatement", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php deleted file mode 100755 index 93987930a..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/ActivityGroupService.php +++ /dev/null @@ -1,3229 +0,0 @@ -id = $id; - $this->name = $name; - $this->companyIds = $companyIds; - $this->impressionsLookback = $impressionsLookback; - $this->clicksLookback = $clicksLookback; - $this->status = $status; - } - - } -} - -if (!class_exists("ActivityGroupPage", false)) { - /** - * Captures a page of {@link ActivityGroup} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivityGroupPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivityGroupPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ActivityGroup[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ActivityErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivityErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivityError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ActivityGroupStatus", false)) { - /** - * The activity group status. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivityGroupStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivityGroup.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateActivityGroup", false)) { - /** - * Creates a new {@link ActivityGroup}. - * - * @param activityGroup the activity group to be created. - * @return the created activity group with its ID filled in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $activityGroup; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroup = null) { - $this->activityGroup = $activityGroup; - } - - } -} - -if (!class_exists("CreateActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateActivityGroups", false)) { - /** - * Creates a new {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to be created. - * @return the created activity groups with their IDs filled in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateActivityGroups { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $activityGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroups = null) { - $this->activityGroups = $activityGroups; - } - - } -} - -if (!class_exists("CreateActivityGroupsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateActivityGroupsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetActivityGroup", false)) { - /** - * Returns the {@link ActivityGroup} uniquely identified by the given ID. - * - * @param activityGroupId the ID of the activity group, which must already exist. - * @return the {@code ActivityGroup} uniquely identified by the given ID. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $activityGroupId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroupId = null) { - $this->activityGroupId = $activityGroupId; - } - - } -} - -if (!class_exists("GetActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetActivityGroupsByStatement", false)) { - /** - * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ActivityGroup#id}
{@code name}{@link ActivityGroup#name}
{@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
{@code clicksLookback}{@link ActivityGroup#clicksLookback}
{@code status}{@link ActivityGroup#status}
- * - * @param filterStatement a statement used to filter a set of activity groups - * @return the activity groups that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetActivityGroupsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetActivityGroupsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetActivityGroupsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroupPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateActivityGroup", false)) { - /** - * Updates the specified {@link ActivityGroup}. - * - * @param activityGroup the activity group to update. - * @return the updated activity group. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $activityGroup; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroup = null) { - $this->activityGroup = $activityGroup; - } - - } -} - -if (!class_exists("UpdateActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateActivityGroups", false)) { - /** - * Updates the specified {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to update. - * @return the updated activity groups. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateActivityGroups { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $activityGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroups = null) { - $this->activityGroups = $activityGroups; - } - - } -} - -if (!class_exists("UpdateActivityGroupsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateActivityGroupsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivityError", false)) { - /** - * Errors relating to Activity and Activity Group services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivityError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivityError"; - - /** - * @access public - * @var tnsActivityErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ActivityGroupService", false)) { - /** - * ActivityGroupService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivityGroupService extends DfpSoapClient { - - const SERVICE_NAME = "ActivityGroupService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ActivityGroupService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ActivityGroupService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivityError" => "ActivityError", - "ActivityGroup" => "ActivityGroup", - "ActivityGroupPage" => "ActivityGroupPage", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ActivityError.Reason" => "ActivityErrorReason", - "ActivityGroup.Status" => "ActivityGroupStatus", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createActivityGroup" => "CreateActivityGroup", - "createActivityGroupResponse" => "CreateActivityGroupResponse", - "createActivityGroups" => "CreateActivityGroups", - "createActivityGroupsResponse" => "CreateActivityGroupsResponse", - "getActivityGroup" => "GetActivityGroup", - "getActivityGroupResponse" => "GetActivityGroupResponse", - "getActivityGroupsByStatement" => "GetActivityGroupsByStatement", - "getActivityGroupsByStatementResponse" => "GetActivityGroupsByStatementResponse", - "updateActivityGroup" => "UpdateActivityGroup", - "updateActivityGroupResponse" => "UpdateActivityGroupResponse", - "updateActivityGroups" => "UpdateActivityGroups", - "updateActivityGroupsResponse" => "UpdateActivityGroupsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ActivityGroup}. - * - * @param activityGroup the activity group to be created. - * @return the created activity group with its ID filled in. - */ - public function createActivityGroup($activityGroup) { - $args = new CreateActivityGroup($activityGroup); - $result = $this->__soapCall("createActivityGroup", array($args)); - return $result->rval; - } - /** - * Creates a new {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to be created. - * @return the created activity groups with their IDs filled in. - */ - public function createActivityGroups($activityGroups) { - $args = new CreateActivityGroups($activityGroups); - $result = $this->__soapCall("createActivityGroups", array($args)); - return $result->rval; - } - /** - * Returns the {@link ActivityGroup} uniquely identified by the given ID. - * - * @param activityGroupId the ID of the activity group, which must already exist. - * @return the {@code ActivityGroup} uniquely identified by the given ID. - */ - public function getActivityGroup($activityGroupId) { - $args = new GetActivityGroup($activityGroupId); - $result = $this->__soapCall("getActivityGroup", array($args)); - return $result->rval; - } - /** - * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ActivityGroup#id}
{@code name}{@link ActivityGroup#name}
{@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
{@code clicksLookback}{@link ActivityGroup#clicksLookback}
{@code status}{@link ActivityGroup#status}
- * - * @param filterStatement a statement used to filter a set of activity groups - * @return the activity groups that match the given filter - */ - public function getActivityGroupsByStatement($filterStatement) { - $args = new GetActivityGroupsByStatement($filterStatement); - $result = $this->__soapCall("getActivityGroupsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ActivityGroup}. - * - * @param activityGroup the activity group to update. - * @return the updated activity group. - */ - public function updateActivityGroup($activityGroup) { - $args = new UpdateActivityGroup($activityGroup); - $result = $this->__soapCall("updateActivityGroup", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to update. - * @return the updated activity groups. - */ - public function updateActivityGroups($activityGroups) { - $args = new UpdateActivityGroups($activityGroups); - $result = $this->__soapCall("updateActivityGroups", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php deleted file mode 100755 index b81b6455c..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/AdRuleService.php +++ /dev/null @@ -1,7478 +0,0 @@ - "AdRuleActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdRuleActionType = null) { - $this->AdRuleActionType = $AdRuleActionType; - } - - } -} - -if (!class_exists("AdRule", false)) { - /** - * An {@link AdRule} contains data that the ad server will use to generate a playlist of video ads. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRule"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var Targeting - */ - public $targeting; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var tnsStartDateTimeType - */ - public $startDateTimeType; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var boolean - */ - public $unlimitedEndDateTime; - - /** - * @access public - * @var tnsAdRuleStatus - */ - public $status; - - /** - * @access public - * @var tnsFrequencyCapBehavior - */ - public $frequencyCapBehavior; - - /** - * @access public - * @var integer - */ - public $maxImpressionsPerLineItemPerStream; - - /** - * @access public - * @var integer - */ - public $maxImpressionsPerLineItemPerPod; - - /** - * @access public - * @var BaseAdRuleSlot - */ - public $preroll; - - /** - * @access public - * @var BaseAdRuleSlot - */ - public $midroll; - - /** - * @access public - * @var BaseAdRuleSlot - */ - public $postroll; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $priority = null, $targeting = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $unlimitedEndDateTime = null, $status = null, $frequencyCapBehavior = null, $maxImpressionsPerLineItemPerStream = null, $maxImpressionsPerLineItemPerPod = null, $preroll = null, $midroll = null, $postroll = null) { - $this->id = $id; - $this->name = $name; - $this->priority = $priority; - $this->targeting = $targeting; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->status = $status; - $this->frequencyCapBehavior = $frequencyCapBehavior; - $this->maxImpressionsPerLineItemPerStream = $maxImpressionsPerLineItemPerStream; - $this->maxImpressionsPerLineItemPerPod = $maxImpressionsPerLineItemPerPod; - $this->preroll = $preroll; - $this->midroll = $midroll; - $this->postroll = $postroll; - } - - } -} - -if (!class_exists("AdRulePage", false)) { - /** - * Captures a page of {@link AdRule} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRulePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRulePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var AdRule[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("BaseAdRuleSlot", false)) { - /** - * Simple object representing an ad slot within an {@link AdRule}. Ad rule slots - * contain information about the types/number of ads to display, as well - * as additional information on how the ad server will generate playlists. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseAdRuleSlot { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseAdRuleSlot"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsAdRuleSlotBehavior - */ - public $slotBehavior; - - /** - * @access public - * @var integer - */ - public $minVideoAdDuration; - - /** - * @access public - * @var integer - */ - public $maxVideoAdDuration; - - /** - * @access public - * @var tnsMidrollFrequencyType - */ - public $videoMidrollFrequencyType; - - /** - * @access public - * @var string - */ - public $videoMidrollFrequency; - - /** - * @access public - * @var tnsAdRuleSlotBumper - */ - public $bumper; - - /** - * @access public - * @var integer - */ - public $maxBumperDuration; - - /** - * @access public - * @var integer - */ - public $minPodDuration; - - /** - * @access public - * @var integer - */ - public $maxPodDuration; - - /** - * @access public - * @var integer - */ - public $maxAdsInPod; - - /** - * @access public - * @var string - */ - public $BaseAdRuleSlotType; - private $_parameterMap = array( - "BaseAdRuleSlot.Type" => "BaseAdRuleSlotType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; - } - - } -} - -if (!class_exists("StandardPoddingAdRuleSlot", false)) { - /** - * An ad rule slot with standard podding. A standard pod is a series of video ads played - * back to back. Standard pods are defined by a {@link BaseAdRuleSlot#maxAdsInPod} and a - * {@link BaseAdRuleSlot#maxVideoAdDuration}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StandardPoddingAdRuleSlot"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { - parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; - } - - } -} - -if (!class_exists("AdUnitTargeting", false)) { - /** - * Represents targeted or excluded ad units. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitTargeting"; - - /** - * @access public - * @var string - */ - public $adUnitId; - - /** - * @access public - * @var boolean - */ - public $includeDescendants; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnitId = null, $includeDescendants = null) { - $this->adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargeting", false)) { - /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargeting"; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var DeviceCapabilityTargeting - */ - public $deviceCapabilityTargeting; - - /** - * @access public - * @var DeviceCategoryTargeting - */ - public $deviceCategoryTargeting; - - /** - * @access public - * @var DeviceManufacturerTargeting - */ - public $deviceManufacturerTargeting; - - /** - * @access public - * @var MobileCarrierTargeting - */ - public $mobileCarrierTargeting; - - /** - * @access public - * @var MobileDeviceTargeting - */ - public $mobileDeviceTargeting; - - /** - * @access public - * @var MobileDeviceSubmodelTargeting - */ - public $mobileDeviceSubmodelTargeting; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var OperatingSystemVersionTargeting - */ - public $operatingSystemVersionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentTargeting", false)) { - /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; - - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; - - /** - * @access public - * @var integer[] - */ - public $excludedVideoCategoryIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DayPart", false)) { - /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; - - /** - * @access public - * @var TimeOfDay - */ - public $startTime; - - /** - * @access public - * @var TimeOfDay - */ - public $endTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; - } - - } -} - -if (!class_exists("DayPartTargeting", false)) { - /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargeting"; - - /** - * @access public - * @var DayPart[] - */ - public $dayParts; - - /** - * @access public - * @var tnsDeliveryTimeZone - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("DeactivateAdRules", false)) { - /** - * The action used for pausing {@link AdRule} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeactivateAdRules extends AdRuleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeactivateAdRules"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdRuleActionType = null) { - parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; - } - - } -} - -if (!class_exists("DeleteAdRules", false)) { - /** - * The action used for deleting {@link AdRule} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeleteAdRules extends AdRuleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeleteAdRules"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdRuleActionType = null) { - parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; - } - - } -} - -if (!class_exists("DeviceCapabilityTargeting", false)) { - /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapabilityTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCapabilities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; - } - - } -} - -if (!class_exists("DeviceCategoryTargeting", false)) { - /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCategories; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; - } - - } -} - -if (!class_exists("DeviceManufacturerTargeting", false)) { - /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturerTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturerTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $deviceManufacturers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MobileCarrierTargeting", false)) { - /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrierTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $mobileCarriers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; - } - - } -} - -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDeviceSubmodels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; - } - - } -} - -if (!class_exists("MobileDeviceTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDevices; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; - - /** - * @access public - * @var Technology[] - */ - public $excludedOperatingSystemVersions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PoddingError", false)) { - /** - * Errors related to podding fields in ad rule slots. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PoddingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PoddingError"; - - /** - * @access public - * @var tnsPoddingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Targeting", false)) { - /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; - - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; - - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TimeOfDay", false)) { - /** - * Represents a specific time in a day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnknownAdRuleSlot", false)) { - /** - * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the - * requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnknownAdRuleSlot extends BaseAdRuleSlot { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnknownAdRuleSlot"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { - parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoPosition", false)) { - /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; - - /** - * @access public - * @var integer - */ - public $midrollIndex; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; - } - - } -} - -if (!class_exists("VideoPositionTargeting", false)) { - /** - * Represents positions within and around a video where ads can be targeted to. - *

- * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTargeting"; - - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; - } - - } -} - -if (!class_exists("VideoPositionWithinPod", false)) { - /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionWithinPod"; - - /** - * @access public - * @var integer - */ - public $index; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($index = null) { - $this->index = $index; - } - - } -} - -if (!class_exists("VideoPositionTarget", false)) { - /** - * Represents the options for targetable positions within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; - - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; - } - - } -} - -if (!class_exists("AdRuleDateErrorReason", false)) { - /** - * Describes reasons for {@code AdRuleDateError}s. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleFrequencyCapErrorReason", false)) { - /** - * Describes reason for {@code AdRuleFrequencyCapError}s. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleFrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleFrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRulePriorityErrorReason", false)) { - /** - * Reasons for an {@code AdRulePriorityError}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRulePriorityErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRulePriorityError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleSlotBehavior", false)) { - /** - * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleSlotBehavior { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleSlotBehavior"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleSlotBumper", false)) { - /** - * Types of bumper ads on an ad rule slot. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleSlotBumper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleSlotBumper"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleSlotErrorReason", false)) { - /** - * Describes reason for {@code AdRuleSlotError}s. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleSlotErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleSlotError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleStatus", false)) { - /** - * Represents the status of ad rules and ad rule slots. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryTimeZone { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryTimeZone"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapBehavior", false)) { - /** - * Types of behavior for frequency caps within ad rules. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapBehavior { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapBehavior"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MidrollFrequencyType", false)) { - /** - * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MidrollFrequencyType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MidrollFrequencyType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MinuteOfHour", false)) { - /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MinuteOfHour { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MinuteOfHour"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PoddingErrorReason", false)) { - /** - * Describes reason for {@code PoddingError}s. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PoddingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PoddingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StartDateTimeType", false)) { - /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StartDateTimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StartDateTimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoBumperType", false)) { - /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoBumperType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoBumperType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoPositionType", false)) { - /** - * Represents a targetable position within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateAdRule", false)) { - /** - * Creates a new {@link AdRule}. - * - * The following fields are required: - *
    - *
  • {@link AdRule#id}
  • - *
  • {@link AdRule#name}
  • - *
  • {@link AdRule#priority}
  • - *
  • {@link AdRule#startDateTime}
  • - *
  • {@link AdRule#endDateTime}
  • - *
  • {@link AdRule#preroll}
  • - *
  • {@link AdRule#midroll}
  • - *
  • {@link AdRule#postroll}
  • - *
- * - * @param adRule the ad rule to create - * @return the ad rule with its ID filled in - * @throws ApiException if there the ad rule is invalid or there is another - * error - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $adRule; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRule = null) { - $this->adRule = $adRule; - } - - } -} - -if (!class_exists("CreateAdRuleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdRuleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateAdRules", false)) { - /** - * Creates new {@link AdRule} objects. - * - * @param adRules the ad rules to create - * @return the created ad rules with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdRules { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule[] - */ - public $adRules; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRules = null) { - $this->adRules = $adRules; - } - - } -} - -if (!class_exists("CreateAdRulesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdRulesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdRule", false)) { - /** - * Returns the {@link AdRule} uniquely identified by the given ID. - * - * @param adRuleId the ID of the ad rule, which must already exist - * @return the {@code AdRule} uniquely identified by the given ID - * @throws ApiException if there is an error retrieving the ad rule - * or the ID is invalid - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $adRuleId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRuleId = null) { - $this->adRuleId = $adRuleId; - } - - } -} - -if (!class_exists("GetAdRuleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdRuleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdRulesByStatement", false)) { - /** - * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link AdRule#id}
{@code name}{@link AdRule#name}
{@code priority}{@link AdRule#priority}
{@code status}{@link AdRule#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the ad rules that match the given filter - * @throws ApiException if the ID of the active network does not exist or - * there is a backend error - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdRulesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetAdRulesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdRulesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRulePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformAdRuleAction", false)) { - /** - * Performs actions on {@link AdRule} objects that match the given - * {@link Statement#query}. - * - * @param adRuleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformAdRuleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRuleAction - */ - public $adRuleAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRuleAction = null, $filterStatement = null) { - $this->adRuleAction = $adRuleAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformAdRuleActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformAdRuleActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateAdRule", false)) { - /** - * Updates a previously-created {@link AdRule}. - * - * @param adRule the ad rule that should be updated - * @return the updated ad rule - * @throws ApiException if there is an error updating the ad rule - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $adRule; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRule = null) { - $this->adRule = $adRule; - } - - } -} - -if (!class_exists("UpdateAdRuleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdRuleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateAdRules", false)) { - /** - * Updates the specified {@link AdRule} objects. - * - * @param adRules the ad rules to update - * @return the updated ad rules - * @throws ApiException if there is an error updating the ad rules - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdRules { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule[] - */ - public $adRules; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRules = null) { - $this->adRules = $adRules; - } - - } -} - -if (!class_exists("UpdateAdRulesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdRulesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateAdRules", false)) { - /** - * The action used for resuming {@link AdRule} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivateAdRules extends AdRuleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateAdRules"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdRuleActionType = null) { - parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; - } - - } -} - -if (!class_exists("AdRuleDateError", false)) { - /** - * Lists all errors associated with ad rule start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleDateError"; - - /** - * @access public - * @var tnsAdRuleDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdRuleFrequencyCapError", false)) { - /** - * Errors related to ad rule frequency caps - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleFrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleFrequencyCapError"; - - /** - * @access public - * @var tnsAdRuleFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NoPoddingAdRuleSlot", false)) { - /** - * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NoPoddingAdRuleSlot extends BaseAdRuleSlot { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NoPoddingAdRuleSlot"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { - parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; - } - - } -} - -if (!class_exists("OptimizedPoddingAdRuleSlot", false)) { - /** - * Ad rule slot with optimized podding. Optimized pods are defined by a - * {@link BaseAdRuleSlot#maxPodDuration} and a {@link BaseAdRuleSlot#maxAdsInPod}, and the ad - * server chooses the best ads for the alloted duration. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OptimizedPoddingAdRuleSlot"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { - parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; - } - - } -} - -if (!class_exists("AdRulePriorityError", false)) { - /** - * Errors associated with ad rule priorities. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRulePriorityError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRulePriorityError"; - - /** - * @access public - * @var tnsAdRulePriorityErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdRuleSlotError", false)) { - /** - * Errors related to ad rule slots. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleSlotError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdRuleSlotError"; - - /** - * @access public - * @var tnsAdRuleSlotErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("AdRuleService", false)) { - /** - * AdRuleService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdRuleService extends DfpSoapClient { - - const SERVICE_NAME = "AdRuleService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/AdRuleService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/AdRuleService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateAdRules" => "ActivateAdRules", - "AdRuleAction" => "AdRuleAction", - "AdRuleDateError" => "AdRuleDateError", - "AdRule" => "AdRule", - "AdRuleFrequencyCapError" => "AdRuleFrequencyCapError", - "NoPoddingAdRuleSlot" => "NoPoddingAdRuleSlot", - "OptimizedPoddingAdRuleSlot" => "OptimizedPoddingAdRuleSlot", - "AdRulePage" => "AdRulePage", - "AdRulePriorityError" => "AdRulePriorityError", - "BaseAdRuleSlot" => "BaseAdRuleSlot", - "AdRuleSlotError" => "AdRuleSlotError", - "StandardPoddingAdRuleSlot" => "StandardPoddingAdRuleSlot", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "TechnologyTargeting" => "TechnologyTargeting", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomTargetingError" => "CustomTargetingError", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPart" => "DayPart", - "DayPartTargeting" => "DayPartTargeting", - "DeactivateAdRules" => "DeactivateAdRules", - "DeleteAdRules" => "DeleteAdRules", - "DeviceCapability" => "DeviceCapability", - "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", - "DeviceCategory" => "DeviceCategory", - "DeviceCategoryTargeting" => "DeviceCategoryTargeting", - "DeviceManufacturer" => "DeviceManufacturer", - "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", - "FeatureError" => "FeatureError", - "GeoTargeting" => "GeoTargeting", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileCarrierTargeting" => "MobileCarrierTargeting", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", - "MobileDeviceTargeting" => "MobileDeviceTargeting", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", - "PermissionError" => "PermissionError", - "PoddingError" => "PoddingError", - "PostalCodeLocation" => "PostalCodeLocation", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RegionLocation" => "RegionLocation", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Targeting" => "Targeting", - "Technology" => "Technology", - "TextValue" => "TextValue", - "TimeOfDay" => "TimeOfDay", - "UniqueError" => "UniqueError", - "UnknownAdRuleSlot" => "UnknownAdRuleSlot", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "Value" => "Value", - "VideoPosition" => "VideoPosition", - "VideoPositionTargeting" => "VideoPositionTargeting", - "VideoPositionWithinPod" => "VideoPositionWithinPod", - "VideoPositionTarget" => "VideoPositionTarget", - "AdRuleDateError.Reason" => "AdRuleDateErrorReason", - "AdRuleFrequencyCapError.Reason" => "AdRuleFrequencyCapErrorReason", - "AdRulePriorityError.Reason" => "AdRulePriorityErrorReason", - "AdRuleSlotBehavior" => "AdRuleSlotBehavior", - "AdRuleSlotBumper" => "AdRuleSlotBumper", - "AdRuleSlotError.Reason" => "AdRuleSlotErrorReason", - "AdRuleStatus" => "AdRuleStatus", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "DayOfWeek" => "DayOfWeek", - "DeliveryTimeZone" => "DeliveryTimeZone", - "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapBehavior" => "FrequencyCapBehavior", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "MidrollFrequencyType" => "MidrollFrequencyType", - "MinuteOfHour" => "MinuteOfHour", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PoddingError.Reason" => "PoddingErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "VideoBumperType" => "VideoBumperType", - "VideoPosition.Type" => "VideoPositionType", - "createAdRule" => "CreateAdRule", - "createAdRuleResponse" => "CreateAdRuleResponse", - "createAdRules" => "CreateAdRules", - "createAdRulesResponse" => "CreateAdRulesResponse", - "getAdRule" => "GetAdRule", - "getAdRuleResponse" => "GetAdRuleResponse", - "getAdRulesByStatement" => "GetAdRulesByStatement", - "getAdRulesByStatementResponse" => "GetAdRulesByStatementResponse", - "performAdRuleAction" => "PerformAdRuleAction", - "performAdRuleActionResponse" => "PerformAdRuleActionResponse", - "updateAdRule" => "UpdateAdRule", - "updateAdRuleResponse" => "UpdateAdRuleResponse", - "updateAdRules" => "UpdateAdRules", - "updateAdRulesResponse" => "UpdateAdRulesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link AdRule}. - * - * The following fields are required: - *
    - *
  • {@link AdRule#id}
  • - *
  • {@link AdRule#name}
  • - *
  • {@link AdRule#priority}
  • - *
  • {@link AdRule#startDateTime}
  • - *
  • {@link AdRule#endDateTime}
  • - *
  • {@link AdRule#preroll}
  • - *
  • {@link AdRule#midroll}
  • - *
  • {@link AdRule#postroll}
  • - *
- * - * @param adRule the ad rule to create - * @return the ad rule with its ID filled in - * @throws ApiException if there the ad rule is invalid or there is another - * error - */ - public function createAdRule($adRule) { - $args = new CreateAdRule($adRule); - $result = $this->__soapCall("createAdRule", array($args)); - return $result->rval; - } - /** - * Creates new {@link AdRule} objects. - * - * @param adRules the ad rules to create - * @return the created ad rules with their IDs filled in - */ - public function createAdRules($adRules) { - $args = new CreateAdRules($adRules); - $result = $this->__soapCall("createAdRules", array($args)); - return $result->rval; - } - /** - * Returns the {@link AdRule} uniquely identified by the given ID. - * - * @param adRuleId the ID of the ad rule, which must already exist - * @return the {@code AdRule} uniquely identified by the given ID - * @throws ApiException if there is an error retrieving the ad rule - * or the ID is invalid - */ - public function getAdRule($adRuleId) { - $args = new GetAdRule($adRuleId); - $result = $this->__soapCall("getAdRule", array($args)); - return $result->rval; - } - /** - * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link AdRule#id}
{@code name}{@link AdRule#name}
{@code priority}{@link AdRule#priority}
{@code status}{@link AdRule#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the ad rules that match the given filter - * @throws ApiException if the ID of the active network does not exist or - * there is a backend error - */ - public function getAdRulesByStatement($statement) { - $args = new GetAdRulesByStatement($statement); - $result = $this->__soapCall("getAdRulesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link AdRule} objects that match the given - * {@link Statement#query}. - * - * @param adRuleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the result of the action performed - */ - public function performAdRuleAction($adRuleAction, $filterStatement) { - $args = new PerformAdRuleAction($adRuleAction, $filterStatement); - $result = $this->__soapCall("performAdRuleAction", array($args)); - return $result->rval; - } - /** - * Updates a previously-created {@link AdRule}. - * - * @param adRule the ad rule that should be updated - * @return the updated ad rule - * @throws ApiException if there is an error updating the ad rule - */ - public function updateAdRule($adRule) { - $args = new UpdateAdRule($adRule); - $result = $this->__soapCall("updateAdRule", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link AdRule} objects. - * - * @param adRules the ad rules to update - * @return the updated ad rules - * @throws ApiException if there is an error updating the ad rules - */ - public function updateAdRules($adRules) { - $args = new UpdateAdRules($adRules); - $result = $this->__soapCall("updateAdRules", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeService.php deleted file mode 100755 index 2cdd4d925..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/CreativeService.php +++ /dev/null @@ -1,8432 +0,0 @@ - "BaseCreativeTemplateVariableValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AssetCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetCreativeTemplateVariableValue"; - - /** - * @access public - * @var integer - */ - public $assetId; - - /** - * @access public - * @var base64Binary - */ - public $assetByteArray; - - /** - * @access public - * @var string - */ - public $fileName; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetId = null, $assetByteArray = null, $fileName = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->assetId = $assetId; - $this->assetByteArray = $assetByteArray; - $this->fileName = $fileName; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("Asset", false)) { - /** - * Base asset properties. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Asset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Asset"; - - /** - * @access public - * @var string - */ - public $AssetType; - private $_parameterMap = array( - "Asset.Type" => "AssetType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AssetType = null) { - $this->AssetType = $AssetType; - } - - } -} - -if (!class_exists("AssetError", false)) { - /** - * Lists all errors associated with assets. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetError"; - - /** - * @access public - * @var tnsAssetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ConversionEvent_TrackingUrlsMapEntry", false)) { - /** - * This represents an entry in a map with a key of type ConversionEvent - * and value of type TrackingUrls. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ConversionEvent_TrackingUrlsMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ConversionEvent_TrackingUrlsMapEntry"; - - /** - * @access public - * @var tnsConversionEvent - */ - public $key; - - /** - * @access public - * @var TrackingUrls - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("CreativeAsset", false)) { - /** - * A {@code CreativeAsset} is an asset that can be used in creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeAsset"; - - /** - * @access public - * @var integer - */ - public $assetId; - - /** - * @access public - * @var base64Binary - */ - public $assetByteArray; - - /** - * @access public - * @var string - */ - public $fileName; - - /** - * @access public - * @var integer - */ - public $fileSize; - - /** - * @access public - * @var string - */ - public $assetUrl; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var tnsImageDensity - */ - public $imageDensity; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetId = null, $assetByteArray = null, $fileName = null, $fileSize = null, $assetUrl = null, $size = null, $imageDensity = null) { - $this->assetId = $assetId; - $this->assetByteArray = $assetByteArray; - $this->fileName = $fileName; - $this->fileSize = $fileSize; - $this->assetUrl = $assetUrl; - $this->size = $size; - $this->imageDensity = $imageDensity; - } - - } -} - -if (!class_exists("CustomCreativeAsset", false)) { - /** - * A {@code CustomCreativeAsset} is an association between a - * {@link CustomCreative} and an asset. Any assets that are associated with a - * creative can be inserted into its HTML snippet. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreativeAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreativeAsset"; - - /** - * @access public - * @var string - */ - public $macroName; - - /** - * @access public - * @var integer - */ - public $assetId; - - /** - * @access public - * @var base64Binary - */ - public $assetByteArray; - - /** - * @access public - * @var string - */ - public $fileName; - - /** - * @access public - * @var integer - */ - public $fileSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($macroName = null, $assetId = null, $assetByteArray = null, $fileName = null, $fileSize = null) { - $this->macroName = $macroName; - $this->assetId = $assetId; - $this->assetByteArray = $assetByteArray; - $this->fileName = $fileName; - $this->fileSize = $fileSize; - } - - } -} - -if (!class_exists("CreativeAssetMacroError", false)) { - /** - * Lists all errors associated with creative asset macros. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeAssetMacroError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeAssetMacroError"; - - /** - * @access public - * @var tnsCreativeAssetMacroErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Creative", false)) { - /** - * A {@code Creative} represents the media for the ad being served. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Creative"; - - /** - * @access public - * @var integer - */ - public $advertiserId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var string - */ - public $previewUrl; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var string - */ - public $CreativeType; - private $_parameterMap = array( - "Creative.Type" => "CreativeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePage", false)) { - /** - * Captures a page of {@link Creative} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Creative[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CreativeSetError", false)) { - /** - * Errors relating to creative sets & subclasses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSetError"; - - /** - * @access public - * @var tnsCreativeSetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCreativeError", false)) { - /** - * Lists all errors associated with custom creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreativeError"; - - /** - * @access public - * @var tnsCustomCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("HasDestinationUrlCreative", false)) { - /** - * A {@code Creative} that has a destination url - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class HasDestinationUrlCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "HasDestinationUrlCreative"; - - /** - * @access public - * @var string - */ - public $destinationUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($destinationUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->destinationUrl = $destinationUrl; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("ImageError", false)) { - /** - * Lists all errors associated with images. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageError"; - - /** - * @access public - * @var tnsImageErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalRedirectCreative", false)) { - /** - * A {@code Creative} hosted by either DoubleClick for Advertisers (DFA) or DART - * for Publishers. - *

- * Similar to third-party creatives, a DoubleClick tag is used to retrieve a - * creative asset. However, DoubleClick tags are not sent to the user's browser. - * Instead, they are processed internally within the DoubleClick system.. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalRedirectCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalRedirectCreative"; - - /** - * @access public - * @var Size - */ - public $assetSize; - - /** - * @access public - * @var string - */ - public $internalRedirectUrl; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetSize = null, $internalRedirectUrl = null, $overrideSize = null, $isInterstitial = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->assetSize = $assetSize; - $this->internalRedirectUrl = $internalRedirectUrl; - $this->overrideSize = $overrideSize; - $this->isInterstitial = $isInterstitial; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("InvalidPhoneNumberError", false)) { - /** - * Lists all errors associated with phone numbers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidPhoneNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidPhoneNumberError"; - - /** - * @access public - * @var tnsInvalidPhoneNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LegacyDfpCreative", false)) { - /** - * A {@code Creative} that isn't supported by Google DFP, but was migrated - * from DART. Creatives of this type cannot be created or modified. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LegacyDfpCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LegacyDfpCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LongCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LongCreativeTemplateVariableValue"; - - /** - * @access public - * @var integer - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->value = $value; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RedirectAsset", false)) { - /** - * An externally hosted asset. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RedirectAsset extends Asset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RedirectAsset"; - - /** - * @access public - * @var string - */ - public $redirectUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($redirectUrl = null, $AssetType = null) { - parent::__construct(); - $this->redirectUrl = $redirectUrl; - $this->AssetType = $AssetType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RichMediaStudioChildAssetProperty", false)) { - /** - * Represents a child asset in {@code RichMediaStudioCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioChildAssetProperty { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioChildAssetProperty"; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsRichMediaStudioChildAssetPropertyType - */ - public $type; - - /** - * @access public - * @var integer - */ - public $totalFileSize; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var string - */ - public $url; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($name = null, $type = null, $totalFileSize = null, $width = null, $height = null, $url = null) { - $this->name = $name; - $this->type = $type; - $this->totalFileSize = $totalFileSize; - $this->width = $width; - $this->height = $height; - $this->url = $url; - } - - } -} - -if (!class_exists("RichMediaStudioCreativeError", false)) { - /** - * Lists all errors associated with Rich Media Studio creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeError"; - - /** - * @access public - * @var tnsRichMediaStudioCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of - * {@link VariableType#STRING} and {@link VariableType#LIST}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringCreativeTemplateVariableValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->value = $value; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SwiffyConversionError", false)) { - /** - * Error for converting flash to swiffy asset. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SwiffyConversionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SwiffyConversionError"; - - /** - * @access public - * @var tnsSwiffyConversionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SwiffyFallbackAsset", false)) { - /** - * A fallback swiffy asset used for flash creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SwiffyFallbackAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SwiffyFallbackAsset"; - - /** - * @access public - * @var CreativeAsset - */ - public $asset; - - /** - * @access public - * @var tnsHtml5Feature[] - */ - public $html5Features; - - /** - * @access public - * @var string[] - */ - public $localizedInfoMessages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($asset = null, $html5Features = null, $localizedInfoMessages = null) { - $this->asset = $asset; - $this->html5Features = $html5Features; - $this->localizedInfoMessages = $localizedInfoMessages; - } - - } -} - -if (!class_exists("TemplateCreative", false)) { - /** - * A {@code Creative} that is created by the specified creative template. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateCreative"; - - /** - * @access public - * @var integer - */ - public $creativeTemplateId; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * @access public - * @var string - */ - public $destinationUrl; - - /** - * @access public - * @var BaseCreativeTemplateVariableValue[] - */ - public $creativeTemplateVariableValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeTemplateId = null, $isInterstitial = null, $destinationUrl = null, $creativeTemplateVariableValues = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->creativeTemplateId = $creativeTemplateId; - $this->isInterstitial = $isInterstitial; - $this->destinationUrl = $destinationUrl; - $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeError", false)) { - /** - * Lists all errors associated with template instantiated creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; - - /** - * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ThirdPartyCreative", false)) { - /** - * A {@code Creative} that is served by a 3rd-party vendor. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ThirdPartyCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ThirdPartyCreative"; - - /** - * @access public - * @var string - */ - public $snippet; - - /** - * @access public - * @var string - */ - public $expandedSnippet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($snippet = null, $expandedSnippet = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->snippet = $snippet; - $this->expandedSnippet = $expandedSnippet; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("TrackingUrls", false)) { - /** - * A list of URLs that should be pinged for a conversion event. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TrackingUrls { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TrackingUrls"; - - /** - * @access public - * @var string[] - */ - public $urls; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($urls = null) { - $this->urls = $urls; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnsupportedCreative", false)) { - /** - * A {@code Creative} that isn't supported by this version of the API. - * This object is readonly and when encountered should be reported - * on the DFP API forum. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnsupportedCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnsupportedCreative"; - - /** - * @access public - * @var string - */ - public $unsupportedCreativeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($unsupportedCreativeType = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->unsupportedCreativeType = $unsupportedCreativeType; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("UrlCreativeTemplateVariableValue", false)) { - /** - * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UrlCreativeTemplateVariableValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { - parent::__construct(); - $this->value = $value; - $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VastRedirectCreative", false)) { - /** - * A {@code Creative} that points to an externally hosted VAST ad and is - * served via VAST XML as a VAST Wrapper. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VastRedirectCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VastRedirectCreative"; - - /** - * @access public - * @var string - */ - public $vastXmlUrl; - - /** - * @access public - * @var tnsVastRedirectType - */ - public $vastRedirectType; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($vastXmlUrl = null, $vastRedirectType = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $vastPreviewUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->vastXmlUrl = $vastXmlUrl; - $this->vastRedirectType = $vastRedirectType; - $this->duration = $duration; - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("VideoRedirectAsset", false)) { - /** - * An externally-hosted video asset. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoRedirectAsset extends RedirectAsset { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoRedirectAsset"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($redirectUrl = null) { - parent::__construct(); - $this->redirectUrl = $redirectUrl; - } - - } -} - -if (!class_exists("VpaidLinearCreative", false)) { - /** - * A {@code Creative} that displays a DFP-hosted Flash-based ad - * and is served via VAST 2.0 XML. It is displayed in a linear fashion - * with a video (before, after, interrupting). This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VpaidLinearCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VpaidLinearCreative"; - - /** - * @access public - * @var string - */ - public $flashName; - - /** - * @access public - * @var base64Binary - */ - public $flashByteArray; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashName = null, $flashByteArray = null, $overrideSize = null, $flashAssetSize = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->overrideSize = $overrideSize; - $this->flashAssetSize = $flashAssetSize; - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->duration = $duration; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("VpaidLinearRedirectCreative", false)) { - /** - * A {@code Creative} that displays an externally hosted Flash-based ad - * and is served via VAST 2.0 XML. It is displayed in a linear fashion - * with a video (before, after, interrupting). This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VpaidLinearRedirectCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $flashUrl; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $flashUrl = null, $flashAssetSize = null, $vastPreviewUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->duration = $duration; - $this->flashUrl = $flashUrl; - $this->flashAssetSize = $flashAssetSize; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("ApiFramework", false)) { - /** - * The various ApiFramework types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiFramework { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiFramework"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AssetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ConversionEvent", false)) { - /** - * All possible tracking event types. Not all events are supported by every - * kind of creative. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ConversionEvent { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ConversionEvent"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeAssetMacroErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeAssetMacroErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeAssetMacroError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Html5Feature", false)) { - /** - * An HTML5 features required by HTML5 assets. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Html5Feature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Html5Feature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ImageDensity", false)) { - /** - * Image densities. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageDensity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageDensity"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ImageErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidPhoneNumberErrorReason", false)) { - /** - * The phone number is invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidPhoneNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidPhoneNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioChildAssetPropertyType", false)) { - /** - * Type of {@code RichMediaStudioChildAssetProperty} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioChildAssetPropertyType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioChildAssetProperty.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeArtworkType", false)) { - /** - * Rich Media Studio creative artwork types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeArtworkType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeArtworkType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeBillingAttribute", false)) { - /** - * Rich Media Studio creative supported billing attributes. - *

- * This is determined by Rich Media Studio based on the content - * of the creative and is not updateable. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeBillingAttribute { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeBillingAttribute"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeFormat", false)) { - /** - * Different creative format supported by Rich Media Studio creative. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeFormat { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeFormat"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("SwiffyConversionErrorReason", false)) { - /** - * Error reason for {@link SwiffyConversionError}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SwiffyConversionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SwiffyConversionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { - /** - * The reason for the error - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VastRedirectType", false)) { - /** - * The types of VAST ads that a {@link VastRedirectCreative} can point to. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VastRedirectType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VastRedirectType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCreative", false)) { - /** - * Creates a new {@link Creative}. - * - * The following fields are required along with the required fields of the - * sub-class: - *

    - *
  • {@link Creative#advertiserId}
  • - *
  • {@link Creative#name}
  • - *
  • {@link Creative#size}
  • - *
- * - * @param creative the creative to create - * @return the new creative with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $creative; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creative = null) { - $this->creative = $creative; - } - - } -} - -if (!class_exists("CreateCreativeResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreativeResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCreatives", false)) { - /** - * Creates new {@link Creative} objects. - * - * @param creatives the creatives to create - * @return the created creatives with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreatives { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $creatives; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creatives = null) { - $this->creatives = $creatives; - } - - } -} - -if (!class_exists("CreateCreativesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreativesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreative", false)) { - /** - * Returns the {@link Creative} uniquely identified by the given ID. - * - * @param creativeId the ID of the creative, which must already exist - * @return the {@code Creative} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeId = null) { - $this->creativeId = $creativeId; - } - - } -} - -if (!class_exists("GetCreativeResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativesByStatement", false)) { - /** - * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Creative#id}
{@code name}{@link Creative#name}
{@code advertiserId}{@link Creative#advertiserId}
{@code width}{@link Creative#size}
{@code height}{@link Creative#size}
{@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creatives - * @return the creatives that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCreativesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreative", false)) { - /** - * Updates the specified {@link Creative}. - * - * @param creative the creative to update - * @return the updated creative - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $creative; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creative = null) { - $this->creative = $creative; - } - - } -} - -if (!class_exists("UpdateCreativeResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCreativeResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreatives", false)) { - /** - * Updates the specified {@link Creative} objects. - * - * @param creatives the creatives to update - * @return the updated creatives - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCreatives { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $creatives; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creatives = null) { - $this->creatives = $creatives; - } - - } -} - -if (!class_exists("UpdateCreativesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCreativesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("BaseDynamicAllocationCreative", false)) { - /** - * A base class for dynamic allocation creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseDynamicAllocationCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseDynamicAllocationCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AspectRatioImageCreative", false)) { - /** - * A {@code Creative} intended for mobile platforms that displays an image, - * whose {@link LineItem#creativePlaceholders size} is defined as an - * {@link CreativeSizeType#ASPECT_RATIO aspect ratio}, i.e. - * {@link Size#isAspectRatio}. It can have multiple images whose dimensions - * conform to that aspect ratio. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AspectRatioImageCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AspectRatioImageCreative"; - - /** - * @access public - * @var CreativeAsset[] - */ - public $imageAssets; - - /** - * @access public - * @var string - */ - public $altText; - - /** - * @access public - * @var string - */ - public $thirdPartyImpressionUrl; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($imageAssets = null, $altText = null, $thirdPartyImpressionUrl = null, $overrideSize = null, $destinationUrl = null) { - parent::__construct(); - $this->imageAssets = $imageAssets; - $this->altText = $altText; - $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; - $this->overrideSize = $overrideSize; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseFlashCreative", false)) { - /** - * A base type for creatives that display a Flash-based ad. If the Flash ad - * cannot load, a fallback image is displayed instead. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseFlashCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseFlashCreative"; - - /** - * @access public - * @var string - */ - public $flashName; - - /** - * @access public - * @var base64Binary - */ - public $flashByteArray; - - /** - * @access public - * @var string - */ - public $fallbackImageName; - - /** - * @access public - * @var base64Binary - */ - public $fallbackImageByteArray; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var boolean - */ - public $clickTagRequired; - - /** - * @access public - * @var string - */ - public $fallbackPreviewUrl; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * @access public - * @var Size - */ - public $fallbackAssetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $destinationUrl = null) { - parent::__construct(); - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->fallbackImageName = $fallbackImageName; - $this->fallbackImageByteArray = $fallbackImageByteArray; - $this->overrideSize = $overrideSize; - $this->clickTagRequired = $clickTagRequired; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->flashAssetSize = $flashAssetSize; - $this->fallbackAssetSize = $fallbackAssetSize; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseFlashRedirectCreative", false)) { - /** - * The base type for creatives that load a Flash asset from a specified URL. - * If the remote flash asset cannot be served, a fallback image is used at an - * alternate URL. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseFlashRedirectCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseFlashRedirectCreative"; - - /** - * @access public - * @var string - */ - public $flashUrl; - - /** - * @access public - * @var string - */ - public $fallbackUrl; - - /** - * @access public - * @var string - */ - public $fallbackPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->flashUrl = $flashUrl; - $this->fallbackUrl = $fallbackUrl; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseImageCreative", false)) { - /** - * The base type for creatives that display an image. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseImageCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseImageCreative"; - - /** - * @access public - * @var boolean - */ - public $overrideSize; - - /** - * @access public - * @var CreativeAsset - */ - public $primaryImageAsset; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($overrideSize = null, $primaryImageAsset = null, $destinationUrl = null) { - parent::__construct(); - $this->overrideSize = $overrideSize; - $this->primaryImageAsset = $primaryImageAsset; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseImageRedirectCreative", false)) { - /** - * The base type for creatives that load an image asset from a specified URL. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseImageRedirectCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseImageRedirectCreative"; - - /** - * @access public - * @var string - */ - public $imageUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($imageUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->imageUrl = $imageUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BaseRichMediaStudioCreative", false)) { - /** - * A {@code Creative} that is created by a Rich Media Studio. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseRichMediaStudioCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseRichMediaStudioCreative"; - - /** - * @access public - * @var integer - */ - public $studioCreativeId; - - /** - * @access public - * @var tnsRichMediaStudioCreativeFormat - */ - public $creativeFormat; - - /** - * @access public - * @var tnsRichMediaStudioCreativeArtworkType - */ - public $artworkType; - - /** - * @access public - * @var integer - */ - public $totalFileSize; - - /** - * @access public - * @var string[] - */ - public $adTagKeys; - - /** - * @access public - * @var string[] - */ - public $customKeyValues; - - /** - * @access public - * @var string - */ - public $surveyUrl; - - /** - * @access public - * @var string - */ - public $allImpressionsUrl; - - /** - * @access public - * @var string - */ - public $richMediaImpressionsUrl; - - /** - * @access public - * @var string - */ - public $backupImageImpressionsUrl; - - /** - * @access public - * @var string - */ - public $overrideCss; - - /** - * @access public - * @var string - */ - public $requiredFlashPluginVersion; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var tnsRichMediaStudioCreativeBillingAttribute - */ - public $billingAttribute; - - /** - * @access public - * @var RichMediaStudioChildAssetProperty[] - */ - public $richMediaStudioChildAssetProperties; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->studioCreativeId = $studioCreativeId; - $this->creativeFormat = $creativeFormat; - $this->artworkType = $artworkType; - $this->totalFileSize = $totalFileSize; - $this->adTagKeys = $adTagKeys; - $this->customKeyValues = $customKeyValues; - $this->surveyUrl = $surveyUrl; - $this->allImpressionsUrl = $allImpressionsUrl; - $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; - $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; - $this->overrideCss = $overrideCss; - $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; - $this->duration = $duration; - $this->billingAttribute = $billingAttribute; - $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("BaseVideoCreative", false)) { - /** - * A base type for video creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseVideoCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseVideoCreative"; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var boolean - */ - public $allowDurationOverride; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $destinationUrl = null) { - parent::__construct(); - $this->duration = $duration; - $this->allowDurationOverride = $allowDurationOverride; - $this->trackingUrls = $trackingUrls; - $this->companionCreativeIds = $companionCreativeIds; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ClickTrackingCreative", false)) { - /** - * A creative that is used for tracking clicks on ads that are served directly - * from the customers' web servers or media servers. - * NOTE: The size attribute is not used for click tracking creative and it will - * not be persisted upon save. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingCreative extends Creative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingCreative"; - - /** - * @access public - * @var string - */ - public $clickTrackingUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($clickTrackingUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { - parent::__construct(); - $this->clickTrackingUrl = $clickTrackingUrl; - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; - } - - } -} - -if (!class_exists("CustomCreative", false)) { - /** - * A {@code Creative} that contains an arbitrary HTML snippet and file assets. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreative"; - - /** - * @access public - * @var string - */ - public $htmlSnippet; - - /** - * @access public - * @var CustomCreativeAsset[] - */ - public $customCreativeAssets; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($htmlSnippet = null, $customCreativeAssets = null, $isInterstitial = null, $destinationUrl = null) { - parent::__construct(); - $this->htmlSnippet = $htmlSnippet; - $this->customCreativeAssets = $customCreativeAssets; - $this->isInterstitial = $isInterstitial; - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("LegacyDfpMobileCreative", false)) { - /** - * A mobile {@code Creative} that isn't supported by Google DFP, but was - * migrated from DART. Creatives of this type cannot be created or modified. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LegacyDfpMobileCreative extends HasDestinationUrlCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LegacyDfpMobileCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($destinationUrl = null) { - parent::__construct(); - $this->destinationUrl = $destinationUrl; - } - - } -} - -if (!class_exists("FlashCreative", false)) { - /** - * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot - * load, a fallback image is displayed instead. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FlashCreative extends BaseFlashCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FlashCreative"; - - /** - * @access public - * @var SwiffyFallbackAsset - */ - public $swiffyAsset; - - /** - * @access public - * @var boolean - */ - public $createSwiffyAsset; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($swiffyAsset = null, $createSwiffyAsset = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null) { - parent::__construct(); - $this->swiffyAsset = $swiffyAsset; - $this->createSwiffyAsset = $createSwiffyAsset; - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->fallbackImageName = $fallbackImageName; - $this->fallbackImageByteArray = $fallbackImageByteArray; - $this->overrideSize = $overrideSize; - $this->clickTagRequired = $clickTagRequired; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->flashAssetSize = $flashAssetSize; - $this->fallbackAssetSize = $fallbackAssetSize; - } - - } -} - -if (!class_exists("FlashOverlayCreative", false)) { - /** - * An overlay {@code Creative} that displays a Flash-based ad and is - * served via VAST 2.0 XML. Overlays cover part of the video content - * they are displayed on top of. This creative is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FlashOverlayCreative extends BaseFlashCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FlashOverlayCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var tnsApiFramework - */ - public $apiFramework; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $vastPreviewUrl = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->apiFramework = $apiFramework; - $this->duration = $duration; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->flashName = $flashName; - $this->flashByteArray = $flashByteArray; - $this->fallbackImageName = $fallbackImageName; - $this->fallbackImageByteArray = $fallbackImageByteArray; - $this->overrideSize = $overrideSize; - $this->clickTagRequired = $clickTagRequired; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - $this->flashAssetSize = $flashAssetSize; - $this->fallbackAssetSize = $fallbackAssetSize; - } - - } -} - -if (!class_exists("FlashRedirectCreative", false)) { - /** - * A {@code Creative} that loads a Flash asset from a specified URL. If the - * remote flash asset cannot be served, a fallback image is used at an - * alternate URL. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FlashRedirectCreative extends BaseFlashRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FlashRedirectCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null) { - parent::__construct(); - $this->flashUrl = $flashUrl; - $this->fallbackUrl = $fallbackUrl; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - } - - } -} - -if (!class_exists("FlashRedirectOverlayCreative", false)) { - /** - * An overlay {@code Creative} that loads a Flash asset from a specified URL - * and is served via VAST 2.0 XML. Overlays cover part of the video content - * they are displayed on top of. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FlashRedirectOverlayCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var tnsApiFramework - */ - public $apiFramework; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var Size - */ - public $flashAssetSize; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $flashAssetSize = null, $vastPreviewUrl = null, $flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->apiFramework = $apiFramework; - $this->duration = $duration; - $this->flashAssetSize = $flashAssetSize; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->flashUrl = $flashUrl; - $this->fallbackUrl = $fallbackUrl; - $this->fallbackPreviewUrl = $fallbackPreviewUrl; - } - - } -} - -if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", false)) { - /** - * Dynamic allocation creative with a backfill code snippet. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "HasHtmlSnippetDynamicAllocationCreative"; - - /** - * @access public - * @var string - */ - public $codeSnippet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($codeSnippet = null) { - parent::__construct(); - $this->codeSnippet = $codeSnippet; - } - - } -} - -if (!class_exists("ImageCreative", false)) { - /** - * A {@code Creative} that displays an image. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageCreative extends BaseImageCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageCreative"; - - /** - * @access public - * @var string - */ - public $altText; - - /** - * @access public - * @var string - */ - public $thirdPartyImpressionUrl; - - /** - * @access public - * @var CreativeAsset[] - */ - public $secondaryImageAssets; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($altText = null, $thirdPartyImpressionUrl = null, $secondaryImageAssets = null, $overrideSize = null, $primaryImageAsset = null) { - parent::__construct(); - $this->altText = $altText; - $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; - $this->secondaryImageAssets = $secondaryImageAssets; - $this->overrideSize = $overrideSize; - $this->primaryImageAsset = $primaryImageAsset; - } - - } -} - -if (!class_exists("ImageOverlayCreative", false)) { - /** - * An overlay {@code Creative} that displays an image and is served via VAST - * 2.0 XML. Overlays cover part of the video content they are displayed on - * top of. This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageOverlayCreative extends BaseImageCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageOverlayCreative"; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $overrideSize = null, $primaryImageAsset = null) { - parent::__construct(); - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->duration = $duration; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->overrideSize = $overrideSize; - $this->primaryImageAsset = $primaryImageAsset; - } - - } -} - -if (!class_exists("ImageRedirectCreative", false)) { - /** - * A {@code Creative} that loads an image asset from a specified URL. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageRedirectCreative extends BaseImageRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageRedirectCreative"; - - /** - * @access public - * @var string - */ - public $altText; - - /** - * @access public - * @var string - */ - public $thirdPartyImpressionUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($altText = null, $thirdPartyImpressionUrl = null, $imageUrl = null) { - parent::__construct(); - $this->altText = $altText; - $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; - $this->imageUrl = $imageUrl; - } - - } -} - -if (!class_exists("ImageRedirectOverlayCreative", false)) { - /** - * An overlay {@code Creative} that loads an image asset from a specified URL - * and is served via VAST 2.0 XML. Overlays cover part of the video content - * they are displayed on top of. This creative is read only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageRedirectOverlayCreative"; - - /** - * @access public - * @var Size - */ - public $assetSize; - - /** - * @access public - * @var integer - */ - public $duration; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var ConversionEvent_TrackingUrlsMapEntry[] - */ - public $trackingUrls; - - /** - * @access public - * @var string - */ - public $customParameters; - - /** - * @access public - * @var string - */ - public $vastPreviewUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($assetSize = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $vastPreviewUrl = null, $imageUrl = null) { - parent::__construct(); - $this->assetSize = $assetSize; - $this->duration = $duration; - $this->companionCreativeIds = $companionCreativeIds; - $this->trackingUrls = $trackingUrls; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - $this->imageUrl = $imageUrl; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RichMediaStudioCreative", false)) { - /** - * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, - * but you can update some fields of this creative. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreative extends BaseRichMediaStudioCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreative"; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isInterstitial = null, $studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null) { - parent::__construct(); - $this->isInterstitial = $isInterstitial; - $this->studioCreativeId = $studioCreativeId; - $this->creativeFormat = $creativeFormat; - $this->artworkType = $artworkType; - $this->totalFileSize = $totalFileSize; - $this->adTagKeys = $adTagKeys; - $this->customKeyValues = $customKeyValues; - $this->surveyUrl = $surveyUrl; - $this->allImpressionsUrl = $allImpressionsUrl; - $this->richMediaImpressionsUrl = $richMediaImpressionsUrl; - $this->backupImageImpressionsUrl = $backupImageImpressionsUrl; - $this->overrideCss = $overrideCss; - $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; - $this->duration = $duration; - $this->billingAttribute = $billingAttribute; - $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoCreative", false)) { - /** - * A {@code Creative} that contains DFP-hosted video ads and is served - * via VAST 2.0 XML. This creative is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoCreative extends BaseVideoCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null) { - parent::__construct(); - $this->duration = $duration; - $this->allowDurationOverride = $allowDurationOverride; - $this->trackingUrls = $trackingUrls; - $this->companionCreativeIds = $companionCreativeIds; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - } - - } -} - -if (!class_exists("VideoRedirectCreative", false)) { - /** - * A {@code Creative} that contains externally hosted video ads and - * is served via VAST 2.0 XML. This creative is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoRedirectCreative extends BaseVideoCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoRedirectCreative"; - - /** - * @access public - * @var VideoRedirectAsset[] - */ - public $videoAssets; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoAssets = null, $duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null) { - parent::__construct(); - $this->videoAssets = $videoAssets; - $this->duration = $duration; - $this->allowDurationOverride = $allowDurationOverride; - $this->trackingUrls = $trackingUrls; - $this->companionCreativeIds = $companionCreativeIds; - $this->customParameters = $customParameters; - $this->vastPreviewUrl = $vastPreviewUrl; - } - - } -} - -if (!class_exists("AdExchangeCreative", false)) { - /** - * An Ad Exchange dynamic allocation creative. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdExchangeCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($codeSnippet = null) { - parent::__construct(); - $this->codeSnippet = $codeSnippet; - } - - } -} - -if (!class_exists("AdSenseCreative", false)) { - /** - * An AdSense dynamic allocation creative. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseCreative"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($codeSnippet = null) { - parent::__construct(); - $this->codeSnippet = $codeSnippet; - } - - } -} - -if (!class_exists("CreativeService", false)) { - /** - * CreativeService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeService extends DfpSoapClient { - - const SERVICE_NAME = "CreativeService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/CreativeService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/CreativeService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", - "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", - "AdExchangeCreative" => "AdExchangeCreative", - "AdSenseCreative" => "AdSenseCreative", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "AspectRatioImageCreative" => "AspectRatioImageCreative", - "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", - "Asset" => "Asset", - "AssetError" => "AssetError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BaseFlashCreative" => "BaseFlashCreative", - "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", - "BaseImageCreative" => "BaseImageCreative", - "BaseImageRedirectCreative" => "BaseImageRedirectCreative", - "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", - "BaseVideoCreative" => "BaseVideoCreative", - "BooleanValue" => "BooleanValue", - "ClickTrackingCreative" => "ClickTrackingCreative", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", - "CreativeAsset" => "CreativeAsset", - "CustomCreativeAsset" => "CustomCreativeAsset", - "CreativeAssetMacroError" => "CreativeAssetMacroError", - "Creative" => "Creative", - "CreativeError" => "CreativeError", - "CreativePage" => "CreativePage", - "CreativeSetError" => "CreativeSetError", - "CustomCreative" => "CustomCreative", - "CustomCreativeError" => "CustomCreativeError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "FlashCreative" => "FlashCreative", - "FlashOverlayCreative" => "FlashOverlayCreative", - "FlashRedirectCreative" => "FlashRedirectCreative", - "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", - "HasDestinationUrlCreative" => "HasDestinationUrlCreative", - "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", - "ImageCreative" => "ImageCreative", - "ImageError" => "ImageError", - "ImageOverlayCreative" => "ImageOverlayCreative", - "ImageRedirectCreative" => "ImageRedirectCreative", - "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", - "InternalApiError" => "InternalApiError", - "InternalRedirectCreative" => "InternalRedirectCreative", - "InvalidPhoneNumberError" => "InvalidPhoneNumberError", - "InvalidUrlError" => "InvalidUrlError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LegacyDfpCreative" => "LegacyDfpCreative", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RedirectAsset" => "RedirectAsset", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", - "RichMediaStudioCreative" => "RichMediaStudioCreative", - "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringCreativeTemplateVariableValue" => "StringCreativeTemplateVariableValue", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SwiffyConversionError" => "SwiffyConversionError", - "SwiffyFallbackAsset" => "SwiffyFallbackAsset", - "TemplateCreative" => "TemplateCreative", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", - "TextValue" => "TextValue", - "ThirdPartyCreative" => "ThirdPartyCreative", - "TrackingUrls" => "TrackingUrls", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UnsupportedCreative" => "UnsupportedCreative", - "UrlCreativeTemplateVariableValue" => "UrlCreativeTemplateVariableValue", - "Value" => "Value", - "VastRedirectCreative" => "VastRedirectCreative", - "VideoCreative" => "VideoCreative", - "VideoRedirectAsset" => "VideoRedirectAsset", - "VideoRedirectCreative" => "VideoRedirectCreative", - "VpaidLinearCreative" => "VpaidLinearCreative", - "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", - "ApiFramework" => "ApiFramework", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AssetError.Reason" => "AssetErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "ConversionEvent" => "ConversionEvent", - "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeSetError.Reason" => "CreativeSetErrorReason", - "CustomCreativeError.Reason" => "CustomCreativeErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "Html5Feature" => "Html5Feature", - "ImageDensity" => "ImageDensity", - "ImageError.Reason" => "ImageErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", - "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", - "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", - "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", - "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "VastRedirectType" => "VastRedirectType", - "createCreative" => "CreateCreative", - "createCreativeResponse" => "CreateCreativeResponse", - "createCreatives" => "CreateCreatives", - "createCreativesResponse" => "CreateCreativesResponse", - "getCreative" => "GetCreative", - "getCreativeResponse" => "GetCreativeResponse", - "getCreativesByStatement" => "GetCreativesByStatement", - "getCreativesByStatementResponse" => "GetCreativesByStatementResponse", - "updateCreative" => "UpdateCreative", - "updateCreativeResponse" => "UpdateCreativeResponse", - "updateCreatives" => "UpdateCreatives", - "updateCreativesResponse" => "UpdateCreativesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Creative}. - * - * The following fields are required along with the required fields of the - * sub-class: - *
    - *
  • {@link Creative#advertiserId}
  • - *
  • {@link Creative#name}
  • - *
  • {@link Creative#size}
  • - *
- * - * @param creative the creative to create - * @return the new creative with its ID set - */ - public function createCreative($creative) { - $args = new CreateCreative($creative); - $result = $this->__soapCall("createCreative", array($args)); - return $result->rval; - } - /** - * Creates new {@link Creative} objects. - * - * @param creatives the creatives to create - * @return the created creatives with their IDs filled in - */ - public function createCreatives($creatives) { - $args = new CreateCreatives($creatives); - $result = $this->__soapCall("createCreatives", array($args)); - return $result->rval; - } - /** - * Returns the {@link Creative} uniquely identified by the given ID. - * - * @param creativeId the ID of the creative, which must already exist - * @return the {@code Creative} uniquely identified by the given ID - */ - public function getCreative($creativeId) { - $args = new GetCreative($creativeId); - $result = $this->__soapCall("getCreative", array($args)); - return $result->rval; - } - /** - * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Creative#id}
{@code name}{@link Creative#name}
{@code advertiserId}{@link Creative#advertiserId}
{@code width}{@link Creative#size}
{@code height}{@link Creative#size}
{@code lastModifiedDateTime}{@link Creative#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creatives - * @return the creatives that match the given filter - */ - public function getCreativesByStatement($filterStatement) { - $args = new GetCreativesByStatement($filterStatement); - $result = $this->__soapCall("getCreativesByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Creative}. - * - * @param creative the creative to update - * @return the updated creative - */ - public function updateCreative($creative) { - $args = new UpdateCreative($creative); - $result = $this->__soapCall("updateCreative", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Creative} objects. - * - * @param creatives the creatives to update - * @return the updated creatives - */ - public function updateCreatives($creatives) { - $args = new UpdateCreatives($creatives); - $result = $this->__soapCall("updateCreatives", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php deleted file mode 100755 index ae909dd3a..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/CreativeSetService.php +++ /dev/null @@ -1,4512 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AssetError", false)) { - /** - * Lists all errors associated with assets. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetError"; - - /** - * @access public - * @var tnsAssetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeAssetMacroError", false)) { - /** - * Lists all errors associated with creative asset macros. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeAssetMacroError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeAssetMacroError"; - - /** - * @access public - * @var tnsCreativeAssetMacroErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeSet", false)) { - /** - * A creative set is comprised of a master creative and its companion creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSet"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var integer - */ - public $masterCreativeId; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $masterCreativeId = null, $companionCreativeIds = null, $lastModifiedDateTime = null) { - $this->id = $id; - $this->name = $name; - $this->masterCreativeId = $masterCreativeId; - $this->companionCreativeIds = $companionCreativeIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - } - - } -} - -if (!class_exists("CreativeSetError", false)) { - /** - * Errors relating to creative sets & subclasses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSetError"; - - /** - * @access public - * @var tnsCreativeSetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeSetPage", false)) { - /** - * Captures a page of {@link CreativeSet} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSetPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CreativeSet[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CustomCreativeError", false)) { - /** - * Lists all errors associated with custom creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreativeError"; - - /** - * @access public - * @var tnsCustomCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ImageError", false)) { - /** - * Lists all errors associated with images. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageError"; - - /** - * @access public - * @var tnsImageErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidPhoneNumberError", false)) { - /** - * Lists all errors associated with phone numbers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidPhoneNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidPhoneNumberError"; - - /** - * @access public - * @var tnsInvalidPhoneNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RichMediaStudioCreativeError", false)) { - /** - * Lists all errors associated with Rich Media Studio creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeError"; - - /** - * @access public - * @var tnsRichMediaStudioCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SwiffyConversionError", false)) { - /** - * Error for converting flash to swiffy asset. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SwiffyConversionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SwiffyConversionError"; - - /** - * @access public - * @var tnsSwiffyConversionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeError", false)) { - /** - * Lists all errors associated with template instantiated creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; - - /** - * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AssetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeAssetMacroErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeAssetMacroErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeAssetMacroError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ImageErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidPhoneNumberErrorReason", false)) { - /** - * The phone number is invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidPhoneNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidPhoneNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("SwiffyConversionErrorReason", false)) { - /** - * Error reason for {@link SwiffyConversionError}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SwiffyConversionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SwiffyConversionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { - /** - * The reason for the error - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCreativeSet", false)) { - /** - * Creates a new {@link CreativeSet}. - * - * @param creativeSet the creative set to create - * @return the creative set with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreativeSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeSet - */ - public $creativeSet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeSet = null) { - $this->creativeSet = $creativeSet; - } - - } -} - -if (!class_exists("CreateCreativeSetResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreativeSetResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeSet - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeSet", false)) { - /** - * Returns the {@link CreativeSet} uniquely identified by the given ID. - * - * @param creativeSetId the ID of the creative set, which must already exist - * @return the {@code CreativeSet} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeSetId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeSetId = null) { - $this->creativeSetId = $creativeSetId; - } - - } -} - -if (!class_exists("GetCreativeSetResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeSetResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeSet - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeSetsByStatement", false)) { - /** - * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeSet#id}
{@code name}{@link CreativeSet#name}
{@code masterCreativeId}{@link CreativeSet#masterCreativeId}
{@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative sets - * @return the creative sets that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeSetsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetCreativeSetsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeSetsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeSetPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreativeSet", false)) { - /** - * Updates the specified {@link CreativeSet}. - * - * @param creativeSet the creative set to update - * @return the updated creative set - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCreativeSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeSet - */ - public $creativeSet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeSet = null) { - $this->creativeSet = $creativeSet; - } - - } -} - -if (!class_exists("UpdateCreativeSetResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCreativeSetResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeSet - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CreativeSetService", false)) { - /** - * CreativeSetService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetService extends DfpSoapClient { - - const SERVICE_NAME = "CreativeSetService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/CreativeSetService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/CreativeSetService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AssetError" => "AssetError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativeAssetMacroError" => "CreativeAssetMacroError", - "CreativeError" => "CreativeError", - "CreativeSet" => "CreativeSet", - "CreativeSetError" => "CreativeSetError", - "CreativeSetPage" => "CreativeSetPage", - "CustomCreativeError" => "CustomCreativeError", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "ImageError" => "ImageError", - "InternalApiError" => "InternalApiError", - "InvalidPhoneNumberError" => "InvalidPhoneNumberError", - "InvalidUrlError" => "InvalidUrlError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SwiffyConversionError" => "SwiffyConversionError", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AssetError.Reason" => "AssetErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeSetError.Reason" => "CreativeSetErrorReason", - "CustomCreativeError.Reason" => "CustomCreativeErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "ImageError.Reason" => "ImageErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "createCreativeSet" => "CreateCreativeSet", - "createCreativeSetResponse" => "CreateCreativeSetResponse", - "getCreativeSet" => "GetCreativeSet", - "getCreativeSetResponse" => "GetCreativeSetResponse", - "getCreativeSetsByStatement" => "GetCreativeSetsByStatement", - "getCreativeSetsByStatementResponse" => "GetCreativeSetsByStatementResponse", - "updateCreativeSet" => "UpdateCreativeSet", - "updateCreativeSetResponse" => "UpdateCreativeSetResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link CreativeSet}. - * - * @param creativeSet the creative set to create - * @return the creative set with its ID filled in - */ - public function createCreativeSet($creativeSet) { - $args = new CreateCreativeSet($creativeSet); - $result = $this->__soapCall("createCreativeSet", array($args)); - return $result->rval; - } - /** - * Returns the {@link CreativeSet} uniquely identified by the given ID. - * - * @param creativeSetId the ID of the creative set, which must already exist - * @return the {@code CreativeSet} uniquely identified by the given ID - */ - public function getCreativeSet($creativeSetId) { - $args = new GetCreativeSet($creativeSetId); - $result = $this->__soapCall("getCreativeSet", array($args)); - return $result->rval; - } - /** - * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeSet#id}
{@code name}{@link CreativeSet#name}
{@code masterCreativeId}{@link CreativeSet#masterCreativeId}
{@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative sets - * @return the creative sets that match the given filter - */ - public function getCreativeSetsByStatement($statement) { - $args = new GetCreativeSetsByStatement($statement); - $result = $this->__soapCall("getCreativeSetsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CreativeSet}. - * - * @param creativeSet the creative set to update - * @return the updated creative set - */ - public function updateCreativeSet($creativeSet) { - $args = new UpdateCreativeSet($creativeSet); - $result = $this->__soapCall("updateCreativeSet", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php deleted file mode 100755 index 818e0fceb..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/CreativeTemplateService.php +++ /dev/null @@ -1,3637 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeTemplate", false)) { - /** - * A template upon which a creative can be created. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeTemplate"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var CreativeTemplateVariable[] - */ - public $variables; - - /** - * @access public - * @var tnsCreativeTemplateStatus - */ - public $status; - - /** - * @access public - * @var tnsCreativeTemplateType - */ - public $type; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $variables = null, $status = null, $type = null, $isInterstitial = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->variables = $variables; - $this->status = $status; - $this->type = $type; - $this->isInterstitial = $isInterstitial; - } - - } -} - -if (!class_exists("CreativeTemplateError", false)) { - /** - * A catch-all error that lists all generic errors associated with CreativeTemplate. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeTemplateError"; - - /** - * @access public - * @var tnsCreativeTemplateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ListStringCreativeTemplateVariableVariableChoice", false)) { - /** - * Stores variable choices that users can select from - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ListStringCreativeTemplateVariableVariableChoice { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ListStringCreativeTemplateVariable.VariableChoice"; - - /** - * @access public - * @var string - */ - public $label; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($label = null, $value = null) { - $this->label = $label; - $this->value = $value; - } - - } -} - -if (!class_exists("CreativeTemplatePage", false)) { - /** - * Captures a page of {@link CreativeTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeTemplatePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CreativeTemplate[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CreativeTemplateVariable", false)) { - /** - * Represents a variable defined in a creative template. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeTemplateVariable"; - - /** - * @access public - * @var string - */ - public $label; - - /** - * @access public - * @var string - */ - public $uniqueName; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var boolean - */ - public $isRequired; - - /** - * @access public - * @var string - */ - public $CreativeTemplateVariableType; - private $_parameterMap = array( - "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AssetCreativeTemplateVariableMimeType", false)) { - /** - * Different mime type that the asset variable supports. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetCreativeTemplateVariableMimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetCreativeTemplateVariable.MimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeTemplateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeTemplateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeTemplateStatus", false)) { - /** - * Describes status of the creative template - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplateStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeTemplateStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeTemplateType", false)) { - /** - * Describes type of the creative template. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeTemplateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetCreativeTemplate", false)) { - /** - * Returns the {@link CreativeTemplate} uniquely identified by the given ID. - * - * @param creativeTemplateId the ID of the creative template, which must already exist - * @return the {@code CreativeTemplate} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeTemplateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeTemplateId = null) { - $this->creativeTemplateId = $creativeTemplateId; - } - - } -} - -if (!class_exists("GetCreativeTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeTemplatesByStatement", false)) { - /** - * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeTemplate#id}
{@code name}{@link CreativeTemplate#name}
{@code type}{@link CreativeTemplate#type}
{@code status}{@link CreativeTemplate#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative templates. - * @return the creative templates that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeTemplatesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCreativeTemplatesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeTemplatesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeTemplatePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AssetCreativeTemplateVariable", false)) { - /** - * Represents a file asset variable defined in a creative template. - *

- * Use {@link AssetCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetCreativeTemplateVariable"; - - /** - * @access public - * @var tnsAssetCreativeTemplateVariableMimeType[] - */ - public $mimeTypes; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mimeTypes = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->mimeTypes = $mimeTypes; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("LongCreativeTemplateVariable", false)) { - /** - * Represents a long variable defined in a creative template. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LongCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LongCreativeTemplateVariable"; - - /** - * @access public - * @var integer - */ - public $defaultValue; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->defaultValue = $defaultValue; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("StringCreativeTemplateVariable", false)) { - /** - * Represents a string variable defined in a creative template. - *

- * Use {@link StringCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringCreativeTemplateVariable"; - - /** - * @access public - * @var string - */ - public $defaultValue; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->defaultValue = $defaultValue; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("UrlCreativeTemplateVariable", false)) { - /** - * Represents a url variable defined in a creative template. - *

- * Use {@link UrlCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UrlCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UrlCreativeTemplateVariable"; - - /** - * @access public - * @var string - */ - public $defaultValue; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->defaultValue = $defaultValue; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ListStringCreativeTemplateVariable", false)) { - /** - * Represents a list variable defined in a creative template. This is similar to - * {@link StringCreativeTemplateVariable}, except that there are possible choices to - * choose from. - *

- * Use {@link StringCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ListStringCreativeTemplateVariable"; - - /** - * @access public - * @var ListStringCreativeTemplateVariableVariableChoice[] - */ - public $choices; - - /** - * @access public - * @var boolean - */ - public $allowOtherChoice; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($choices = null, $allowOtherChoice = null, $defaultValue = null) { - parent::__construct(); - $this->choices = $choices; - $this->allowOtherChoice = $allowOtherChoice; - $this->defaultValue = $defaultValue; - } - - } -} - -if (!class_exists("CreativeTemplateService", false)) { - /** - * CreativeTemplateService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeTemplateService extends DfpSoapClient { - - const SERVICE_NAME = "CreativeTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/CreativeTemplateService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/CreativeTemplateService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", - "CreativeTemplate" => "CreativeTemplate", - "CreativeTemplateError" => "CreativeTemplateError", - "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", - "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", - "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", - "CreativeTemplatePage" => "CreativeTemplatePage", - "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", - "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", - "CreativeTemplateVariable" => "CreativeTemplateVariable", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", - "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", - "CreativeTemplateStatus" => "CreativeTemplateStatus", - "CreativeTemplateType" => "CreativeTemplateType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "getCreativeTemplate" => "GetCreativeTemplate", - "getCreativeTemplateResponse" => "GetCreativeTemplateResponse", - "getCreativeTemplatesByStatement" => "GetCreativeTemplatesByStatement", - "getCreativeTemplatesByStatementResponse" => "GetCreativeTemplatesByStatementResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link CreativeTemplate} uniquely identified by the given ID. - * - * @param creativeTemplateId the ID of the creative template, which must already exist - * @return the {@code CreativeTemplate} uniquely identified by the given ID - */ - public function getCreativeTemplate($creativeTemplateId) { - $args = new GetCreativeTemplate($creativeTemplateId); - $result = $this->__soapCall("getCreativeTemplate", array($args)); - return $result->rval; - } - /** - * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeTemplate#id}
{@code name}{@link CreativeTemplate#name}
{@code type}{@link CreativeTemplate#type}
{@code status}{@link CreativeTemplate#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative templates. - * @return the creative templates that match the given filter - */ - public function getCreativeTemplatesByStatement($filterStatement) { - $args = new GetCreativeTemplatesByStatement($filterStatement); - $result = $this->__soapCall("getCreativeTemplatesByStatement", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php deleted file mode 100755 index f79292e94..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/CustomFieldService.php +++ /dev/null @@ -1,4364 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldAction", false)) { - /** - * Represents the actions that can be performed on {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldAction"; - - /** - * @access public - * @var string - */ - public $CustomFieldActionType; - private $_parameterMap = array( - "CustomFieldAction.Type" => "CustomFieldActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomFieldActionType = null) { - $this->CustomFieldActionType = $CustomFieldActionType; - } - - } -} - -if (!class_exists("CustomField", false)) { - /** - * An additional, user-created field on an entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomField"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var boolean - */ - public $isActive; - - /** - * @access public - * @var tnsCustomFieldEntityType - */ - public $entityType; - - /** - * @access public - * @var tnsCustomFieldDataType - */ - public $dataType; - - /** - * @access public - * @var tnsCustomFieldVisibility - */ - public $visibility; - - /** - * @access public - * @var string - */ - public $CustomFieldType; - private $_parameterMap = array( - "CustomField.Type" => "CustomFieldType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null, $CustomFieldType = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->isActive = $isActive; - $this->entityType = $entityType; - $this->dataType = $dataType; - $this->visibility = $visibility; - $this->CustomFieldType = $CustomFieldType; - } - - } -} - -if (!class_exists("CustomFieldError", false)) { - /** - * Errors specific to editing custom fields - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldError"; - - /** - * @access public - * @var tnsCustomFieldErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldOption", false)) { - /** - * An option represents a permitted value for a custom field that - * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldOption"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $customFieldId = null, $displayName = null) { - $this->id = $id; - $this->customFieldId = $customFieldId; - $this->displayName = $displayName; - } - - } -} - -if (!class_exists("CustomFieldPage", false)) { - /** - * Captures a page of {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CustomField[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateCustomFields", false)) { - /** - * The action used for deactivating {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeactivateCustomFields extends CustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeactivateCustomFields"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomFieldActionType = null) { - parent::__construct(); - $this->CustomFieldActionType = $CustomFieldActionType; - } - - } -} - -if (!class_exists("DropDownCustomField", false)) { - /** - * A custom field that has the drop-down data type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomField extends CustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomField"; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $options; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($options = null, $id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null, $CustomFieldType = null) { - parent::__construct(); - $this->options = $options; - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->isActive = $isActive; - $this->entityType = $entityType; - $this->dataType = $dataType; - $this->visibility = $visibility; - $this->CustomFieldType = $CustomFieldType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldDataType", false)) { - /** - * The data types allowed for {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldDataType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldDataType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldEntityType", false)) { - /** - * Entity types recognized by custom fields - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldEntityType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldEntityType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldVisibility", false)) { - /** - * The visibility levels of a custom field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldVisibility { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldVisibility"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCustomField", false)) { - /** - * Creates a new {@link CustomField}. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customField the custom field to create - * @return the custom field with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $customField; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customField = null) { - $this->customField = $customField; - } - - } -} - -if (!class_exists("CreateCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomFieldOption", false)) { - /** - * Creates a new {@link CustomFieldOption}. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOption the custom field to create - * @return the custom field option with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $customFieldOption; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOption = null) { - $this->customFieldOption = $customFieldOption; - } - - } -} - -if (!class_exists("CreateCustomFieldOptionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomFieldOptionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomFieldOptions", false)) { - /** - * Creates new {@link CustomFieldOption} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOptions the custom fields to create - * @return the created custom field options with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomFieldOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $customFieldOptions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptions = null) { - $this->customFieldOptions = $customFieldOptions; - } - - } -} - -if (!class_exists("CreateCustomFieldOptionsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomFieldOptionsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomFields", false)) { - /** - * Creates new {@link CustomField} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customFields the custom fields to create - * @return the created custom fields with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomFields { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $customFields; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFields = null) { - $this->customFields = $customFields; - } - - } -} - -if (!class_exists("CreateCustomFieldsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCustomFieldsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomField", false)) { - /** - * Returns the {@link CustomField} uniquely identified by the given ID. - * - * @param customFieldId the ID of the custom field, which must already exist - * @return the {@code CustomField} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null) { - $this->customFieldId = $customFieldId; - } - - } -} - -if (!class_exists("GetCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomFieldOption", false)) { - /** - * Returns the {@link CustomFieldOption} uniquely identified by the given ID. - * - * @param customFieldOptionId the ID of the custom field option, which must already exist - * @return the {@code CustomFieldOption} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null) { - $this->customFieldOptionId = $customFieldOptionId; - } - - } -} - -if (!class_exists("GetCustomFieldOptionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCustomFieldOptionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomFieldsByStatement", false)) { - /** - * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the - * given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomField#id}
{@code entityType}{@link CustomField#entityType}
{@code name}{@link CustomField#name}
{@code isActive}{@link CustomField#isActive}
{@code visibility}{@link CustomField#visibility}
- * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields. - * @return the custom fields that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCustomFieldsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCustomFieldsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCustomFieldsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCustomFieldAction", false)) { - /** - * Performs actions on {@link CustomField} objects that match the given - * {@link Statement#query}. - * - * @param customFieldAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformCustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldAction - */ - public $customFieldAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldAction = null, $filterStatement = null) { - $this->customFieldAction = $customFieldAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCustomFieldActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformCustomFieldActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomField", false)) { - /** - * Updates the specified {@link CustomField}. - * - * @param customField the custom field to update - * @return the updated customField - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $customField; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customField = null) { - $this->customField = $customField; - } - - } -} - -if (!class_exists("UpdateCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomFieldOption", false)) { - /** - * Updates the specified {@link CustomFieldOption}. - * - * @param customFieldOption the custom field option to update - * @return the updated customFieldOption - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $customFieldOption; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOption = null) { - $this->customFieldOption = $customFieldOption; - } - - } -} - -if (!class_exists("UpdateCustomFieldOptionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomFieldOptionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomFieldOptions", false)) { - /** - * Updates the specified {@link CustomFieldOption} objects. - * - * @param customFieldOptions the custom field options to update - * @return the updated custom field options - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomFieldOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $customFieldOptions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptions = null) { - $this->customFieldOptions = $customFieldOptions; - } - - } -} - -if (!class_exists("UpdateCustomFieldOptionsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomFieldOptionsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomFields", false)) { - /** - * Updates the specified {@link CustomField} objects. - * - * @param customFields the custom fields to update - * @return the updated custom fields - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomFields { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $customFields; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFields = null) { - $this->customFields = $customFields; - } - - } -} - -if (!class_exists("UpdateCustomFieldsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCustomFieldsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateCustomFields", false)) { - /** - * The action used for activating {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivateCustomFields extends CustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateCustomFields"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomFieldActionType = null) { - parent::__construct(); - $this->CustomFieldActionType = $CustomFieldActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomFieldService", false)) { - /** - * CustomFieldService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldService extends DfpSoapClient { - - const SERVICE_NAME = "CustomFieldService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/CustomFieldService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/CustomFieldService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateCustomFields" => "ActivateCustomFields", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomFieldAction" => "CustomFieldAction", - "CustomField" => "CustomField", - "CustomFieldError" => "CustomFieldError", - "CustomFieldOption" => "CustomFieldOption", - "CustomFieldPage" => "CustomFieldPage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateCustomFields" => "DeactivateCustomFields", - "DropDownCustomField" => "DropDownCustomField", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomFieldDataType" => "CustomFieldDataType", - "CustomFieldEntityType" => "CustomFieldEntityType", - "CustomFieldError.Reason" => "CustomFieldErrorReason", - "CustomFieldVisibility" => "CustomFieldVisibility", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createCustomField" => "CreateCustomField", - "createCustomFieldResponse" => "CreateCustomFieldResponse", - "createCustomFieldOption" => "CreateCustomFieldOption", - "createCustomFieldOptionResponse" => "CreateCustomFieldOptionResponse", - "createCustomFieldOptions" => "CreateCustomFieldOptions", - "createCustomFieldOptionsResponse" => "CreateCustomFieldOptionsResponse", - "createCustomFields" => "CreateCustomFields", - "createCustomFieldsResponse" => "CreateCustomFieldsResponse", - "getCustomField" => "GetCustomField", - "getCustomFieldResponse" => "GetCustomFieldResponse", - "getCustomFieldOption" => "GetCustomFieldOption", - "getCustomFieldOptionResponse" => "GetCustomFieldOptionResponse", - "getCustomFieldsByStatement" => "GetCustomFieldsByStatement", - "getCustomFieldsByStatementResponse" => "GetCustomFieldsByStatementResponse", - "performCustomFieldAction" => "PerformCustomFieldAction", - "performCustomFieldActionResponse" => "PerformCustomFieldActionResponse", - "updateCustomField" => "UpdateCustomField", - "updateCustomFieldResponse" => "UpdateCustomFieldResponse", - "updateCustomFieldOption" => "UpdateCustomFieldOption", - "updateCustomFieldOptionResponse" => "UpdateCustomFieldOptionResponse", - "updateCustomFieldOptions" => "UpdateCustomFieldOptions", - "updateCustomFieldOptionsResponse" => "UpdateCustomFieldOptionsResponse", - "updateCustomFields" => "UpdateCustomFields", - "updateCustomFieldsResponse" => "UpdateCustomFieldsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link CustomField}. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customField the custom field to create - * @return the custom field with its ID filled in - */ - public function createCustomField($customField) { - $args = new CreateCustomField($customField); - $result = $this->__soapCall("createCustomField", array($args)); - return $result->rval; - } - /** - * Creates a new {@link CustomFieldOption}. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOption the custom field to create - * @return the custom field option with its ID filled in - */ - public function createCustomFieldOption($customFieldOption) { - $args = new CreateCustomFieldOption($customFieldOption); - $result = $this->__soapCall("createCustomFieldOption", array($args)); - return $result->rval; - } - /** - * Creates new {@link CustomFieldOption} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOptions the custom fields to create - * @return the created custom field options with their IDs filled in - */ - public function createCustomFieldOptions($customFieldOptions) { - $args = new CreateCustomFieldOptions($customFieldOptions); - $result = $this->__soapCall("createCustomFieldOptions", array($args)); - return $result->rval; - } - /** - * Creates new {@link CustomField} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customFields the custom fields to create - * @return the created custom fields with their IDs filled in - */ - public function createCustomFields($customFields) { - $args = new CreateCustomFields($customFields); - $result = $this->__soapCall("createCustomFields", array($args)); - return $result->rval; - } - /** - * Returns the {@link CustomField} uniquely identified by the given ID. - * - * @param customFieldId the ID of the custom field, which must already exist - * @return the {@code CustomField} uniquely identified by the given ID - */ - public function getCustomField($customFieldId) { - $args = new GetCustomField($customFieldId); - $result = $this->__soapCall("getCustomField", array($args)); - return $result->rval; - } - /** - * Returns the {@link CustomFieldOption} uniquely identified by the given ID. - * - * @param customFieldOptionId the ID of the custom field option, which must already exist - * @return the {@code CustomFieldOption} uniquely identified by the given ID - */ - public function getCustomFieldOption($customFieldOptionId) { - $args = new GetCustomFieldOption($customFieldOptionId); - $result = $this->__soapCall("getCustomFieldOption", array($args)); - return $result->rval; - } - /** - * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the - * given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomField#id}
{@code entityType}{@link CustomField#entityType}
{@code name}{@link CustomField#name}
{@code isActive}{@link CustomField#isActive}
{@code visibility}{@link CustomField#visibility}
- * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields. - * @return the custom fields that match the given filter - */ - public function getCustomFieldsByStatement($filterStatement) { - $args = new GetCustomFieldsByStatement($filterStatement); - $result = $this->__soapCall("getCustomFieldsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CustomField} objects that match the given - * {@link Statement#query}. - * - * @param customFieldAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields - * @return the result of the action performed - */ - public function performCustomFieldAction($customFieldAction, $filterStatement) { - $args = new PerformCustomFieldAction($customFieldAction, $filterStatement); - $result = $this->__soapCall("performCustomFieldAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomField}. - * - * @param customField the custom field to update - * @return the updated customField - */ - public function updateCustomField($customField) { - $args = new UpdateCustomField($customField); - $result = $this->__soapCall("updateCustomField", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomFieldOption}. - * - * @param customFieldOption the custom field option to update - * @return the updated customFieldOption - */ - public function updateCustomFieldOption($customFieldOption) { - $args = new UpdateCustomFieldOption($customFieldOption); - $result = $this->__soapCall("updateCustomFieldOption", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomFieldOption} objects. - * - * @param customFieldOptions the custom field options to update - * @return the updated custom field options - */ - public function updateCustomFieldOptions($customFieldOptions) { - $args = new UpdateCustomFieldOptions($customFieldOptions); - $result = $this->__soapCall("updateCustomFieldOptions", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomField} objects. - * - * @param customFields the custom fields to update - * @return the updated custom fields - */ - public function updateCustomFields($customFields) { - $args = new UpdateCustomFields($customFields); - $result = $this->__soapCall("updateCustomFields", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/ForecastService.php b/src/Google/Api/Ads/Dfp/v201308/ForecastService.php deleted file mode 100755 index 283b5e7f1..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/ForecastService.php +++ /dev/null @@ -1,9988 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargeting", false)) { - /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargeting"; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var DeviceCapabilityTargeting - */ - public $deviceCapabilityTargeting; - - /** - * @access public - * @var DeviceCategoryTargeting - */ - public $deviceCategoryTargeting; - - /** - * @access public - * @var DeviceManufacturerTargeting - */ - public $deviceManufacturerTargeting; - - /** - * @access public - * @var MobileCarrierTargeting - */ - public $mobileCarrierTargeting; - - /** - * @access public - * @var MobileDeviceTargeting - */ - public $mobileDeviceTargeting; - - /** - * @access public - * @var MobileDeviceSubmodelTargeting - */ - public $mobileDeviceSubmodelTargeting; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var OperatingSystemVersionTargeting - */ - public $operatingSystemVersionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContendingLineItem", false)) { - /** - * Describes contending line items for a {@link Forecast}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ContendingLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ContendingLineItem"; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $contendingImpressions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $contendingImpressions = null) { - $this->lineItemId = $lineItemId; - $this->contendingImpressions = $contendingImpressions; - } - - } -} - -if (!class_exists("ContentTargeting", false)) { - /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; - - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; - - /** - * @access public - * @var integer[] - */ - public $excludedVideoCategoryIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPart", false)) { - /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; - - /** - * @access public - * @var TimeOfDay - */ - public $startTime; - - /** - * @access public - * @var TimeOfDay - */ - public $endTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; - } - - } -} - -if (!class_exists("DayPartTargeting", false)) { - /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargeting"; - - /** - * @access public - * @var DayPart[] - */ - public $dayParts; - - /** - * @access public - * @var tnsDeliveryTimeZone - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DeliveryData", false)) { - /** - * Holds the number of clicks or impressions, determined by - * {@link LineItem#costType}, delivered for a single line item for the - * last 7 days - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryData { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryData"; - - /** - * @access public - * @var integer[] - */ - public $units; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($units = null) { - $this->units = $units; - } - - } -} - -if (!class_exists("DeliveryIndicator", false)) { - /** - * Indicates the delivery performance of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryIndicator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryIndicator"; - - /** - * @access public - * @var double - */ - public $expectedDeliveryPercentage; - - /** - * @access public - * @var double - */ - public $actualDeliveryPercentage; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { - $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; - $this->actualDeliveryPercentage = $actualDeliveryPercentage; - } - - } -} - -if (!class_exists("DeviceCapabilityTargeting", false)) { - /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapabilityTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCapabilities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; - } - - } -} - -if (!class_exists("DeviceCategoryTargeting", false)) { - /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCategories; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; - } - - } -} - -if (!class_exists("DeviceManufacturerTargeting", false)) { - /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturerTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturerTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $deviceManufacturers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Forecast", false)) { - /** - * Describes predicted inventory availability for a line item with the specified - * properties. - * - *

Inventory has three threshold values along a line of possible inventory. - * From least to most, these are: - * - *

- *
Available units - *
How many units can be booked without affecting any other line items. Booking more than this - * number can cause lower- and same-priority line items to underdeliver. - *
Possible units - *
How many units can be booked without affecting any higher priority line items. Booking more - * than this number can cause the line item to underdeliver. - *
Matched (forecast) units - *
How many units satisfy all specified criteria. - *
- * - *

Underdelivery is caused by overbooking. However, if more impressions are served than are - * predicted, the extra available inventory might enable all inventory guarantees to be met without - * overbooking. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Forecast { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Forecast"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var integer - */ - public $availableUnits; - - /** - * @access public - * @var integer - */ - public $deliveredUnits; - - /** - * @access public - * @var integer - */ - public $matchedUnits; - - /** - * @access public - * @var integer - */ - public $possibleUnits; - - /** - * @access public - * @var integer - */ - public $reservedUnits; - - /** - * @access public - * @var ContendingLineItem[] - */ - public $contendingLineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, $contendingLineItems = null) { - $this->id = $id; - $this->orderId = $orderId; - $this->unitType = $unitType; - $this->availableUnits = $availableUnits; - $this->deliveredUnits = $deliveredUnits; - $this->matchedUnits = $matchedUnits; - $this->possibleUnits = $possibleUnits; - $this->reservedUnits = $reservedUnits; - $this->contendingLineItems = $contendingLineItems; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitError"; - - /** - * @access public - * @var tnsInventoryUnitErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemSummary", false)) { - /** - * The {@code LineItemSummary} represents the base class from which a {@code - * LineItem} is derived. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemSummary"; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $orderName; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var tnsStartDateTimeType - */ - public $startDateTimeType; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var integer - */ - public $autoExtensionDays; - - /** - * @access public - * @var boolean - */ - public $unlimitedEndDateTime; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var tnsLineItemSummaryDuration - */ - public $duration; - - /** - * @access public - * @var integer - */ - public $unitsBought; - - /** - * @access public - * @var Money - */ - public $costPerUnit; - - /** - * @access public - * @var Money - */ - public $valueCostPerUnit; - - /** - * @access public - * @var tnsCostType - */ - public $costType; - - /** - * @access public - * @var tnsLineItemDiscountType - */ - public $discountType; - - /** - * @access public - * @var double - */ - public $discount; - - /** - * @access public - * @var integer - */ - public $contractedUnitsBought; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var tnsCompanionDeliveryOption - */ - public $companionDeliveryOption; - - /** - * @access public - * @var tnsCreativePersistenceType - */ - public $creativePersistenceType; - - /** - * @access public - * @var boolean - */ - public $allowOverbook; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * @access public - * @var boolean - */ - public $reserveAtCreation; - - /** - * @access public - * @var Stats - */ - public $stats; - - /** - * @access public - * @var DeliveryIndicator - */ - public $deliveryIndicator; - - /** - * @access public - * @var DeliveryData - */ - public $deliveryData; - - /** - * @access public - * @var Money - */ - public $budget; - - /** - * @access public - * @var tnsComputedStatus - */ - public $status; - - /** - * @access public - * @var tnsLineItemSummaryReservationStatus - */ - public $reservationStatus; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var string - */ - public $webPropertyCode; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var boolean - */ - public $disableSameAdvertiserCompetitiveExclusion; - - /** - * @access public - * @var string - */ - public $lastModifiedByApp; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var DateTime - */ - public $creationDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var boolean - */ - public $isMissingCreatives; - - /** - * @access public - * @var string - */ - public $LineItemSummaryType; - private $_parameterMap = array( - "LineItemSummary.Type" => "LineItemSummaryType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MobileCarrierTargeting", false)) { - /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrierTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $mobileCarriers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; - } - - } -} - -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDeviceSubmodels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; - } - - } -} - -if (!class_exists("MobileDeviceTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDevices; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; - - /** - * @access public - * @var Technology[] - */ - public $excludedOperatingSystemVersions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Stats", false)) { - /** - * {@code Stats} contains trafficking statistics for {@link LineItem} and - * {@link LineItemCreativeAssociation} objects - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Stats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Stats"; - - /** - * @access public - * @var integer - */ - public $impressionsDelivered; - - /** - * @access public - * @var integer - */ - public $clicksDelivered; - - /** - * @access public - * @var integer - */ - public $videoCompletionsDelivered; - - /** - * @access public - * @var integer - */ - public $videoStartsDelivered; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($impressionsDelivered = null, $clicksDelivered = null, $videoCompletionsDelivered = null, $videoStartsDelivered = null) { - $this->impressionsDelivered = $impressionsDelivered; - $this->clicksDelivered = $clicksDelivered; - $this->videoCompletionsDelivered = $videoCompletionsDelivered; - $this->videoStartsDelivered = $videoStartsDelivered; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Targeting", false)) { - /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; - - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; - - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TimeOfDay", false)) { - /** - * Represents a specific time in a day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoPosition", false)) { - /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; - - /** - * @access public - * @var integer - */ - public $midrollIndex; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; - } - - } -} - -if (!class_exists("VideoPositionTargeting", false)) { - /** - * Represents positions within and around a video where ads can be targeted to. - *

- * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTargeting"; - - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; - } - - } -} - -if (!class_exists("VideoPositionWithinPod", false)) { - /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionWithinPod"; - - /** - * @access public - * @var integer - */ - public $index; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($index = null) { - $this->index = $index; - } - - } -} - -if (!class_exists("VideoPositionTarget", false)) { - /** - * Represents the options for targetable positions within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; - - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; - } - - } -} - -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { - /** - * The supplied Afc size is not valid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitAfcSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitCodeErrorReason", false)) { - /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitCodeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitCodeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanionDeliveryOption", false)) { - /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanionDeliveryOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanionDeliveryOption"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ComputedStatus", false)) { - /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ComputedStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ComputedStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryTimeZone { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryTimeZone"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemDiscountType", false)) { - /** - * Describes the possible discount types on the cost of booking a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemDiscountType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemDiscountType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryDuration", false)) { - /** - * Specifies the time period used for limiting the number of ads served for a - * {@link LineItem}. For valid and default values of duration for each line - * item type, see {@link LineItem#duration}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemSummaryDuration { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemSummary.Duration"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryReservationStatus", false)) { - /** - * Specifies the reservation status of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemSummaryReservationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemSummary.ReservationStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MinuteOfHour", false)) { - /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MinuteOfHour { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MinuteOfHour"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativePersistenceType", false)) { - /** - * Specifies options to prevent ads from replacing or appearing with this - * line item. If persistence is set, this line item's ads will not be - * replaced over time, whether through AJAX or other means, such as - * companions of video ads. - * Additionally, if set to exclude none, other ads can be shown in any - * slots not being used by this line item. If set to exclude display ads, - * video ads can be shown, but no other display ads can be shown, even - * in slots that aren't used by this line item. If set to exclude video ads, - * video ads cannot be shown, but other display ads can be shown in unused - * slots. If set to exclude all ads, no other ads can be shown until the - * page is changed. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativePersistenceType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativePersistenceType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StartDateTimeType", false)) { - /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StartDateTimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StartDateTimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UnitType", false)) { - /** - * Indicates the type of unit used for defining a reservation. The - * {@link CostType} can differ from the {@link UnitType} - an - * ad can have an impression goal, but be billed by its click. Usually - * {@link CostType} and {@link UnitType} will refer to the - * same unit. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnitType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnitType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoBumperType", false)) { - /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoBumperType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoBumperType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoPositionType", false)) { - /** - * Represents a targetable position within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetForecast", false)) { - /** - * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid - * values for {@link LineItem#lineItemType} are - * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other - * values will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItem the target of the forecast. If {@link LineItem#id} is null - * or no line item exists with that ID, a forecast is computed for the - * the subject, predicting what would happen if it were added to the - * system. If a line item already exists with {@link LineItem#id}, the - * forecast is computed for the subject, predicting what would happen - * if the existing line item's settings were modified to match the - * subject. - * @return the forecasted traffic estimates - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetForecast { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $lineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; - } - - } -} - -if (!class_exists("GetForecastResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetForecastResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Forecast - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetForecastById", false)) { - /** - * Gets a {@link Forecast} for an existing {@link LineItem} object. Only - * line items having type {@link LineItemType#SPONSORSHIP} or - * {@link LineItemType#STANDARD} are valid. Other types will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItemId the ID of a {@link LineItem} to run the forecast on. - * @return the forecasted traffic estimates - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetForecastById { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null) { - $this->lineItemId = $lineItemId; - } - - } -} - -if (!class_exists("GetForecastByIdResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetForecastByIdResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Forecast - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("AdUnitAfcSizeError", false)) { - /** - * Caused by supplying sizes that are not compatible with the Afc sizes. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitAfcSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitAfcSizeError"; - - /** - * @access public - * @var tnsAdUnitAfcSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitCodeError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit#adUnitCode}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitCodeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitCodeError"; - - /** - * @access public - * @var tnsAdUnitCodeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("LineItem", false)) { - /** - * {@code LineItem} is an advertiser's commitment to purchase a specific number - * of ad impressions, clicks, or time. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItem extends LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItem"; - - /** - * @access public - * @var Targeting - */ - public $targeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - parent::__construct(); - $this->targeting = $targeting; - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("ForecastService", false)) { - /** - * ForecastService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastService extends DfpSoapClient { - - const SERVICE_NAME = "ForecastService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ForecastService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ForecastService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitAfcSizeError" => "AdUnitAfcSizeError", - "AdUnitCodeError" => "AdUnitCodeError", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "TechnologyTargeting" => "TechnologyTargeting", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "ContendingLineItem" => "ContendingLineItem", - "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", - "CreativeError" => "CreativeError", - "CreativePlaceholder" => "CreativePlaceholder", - "CrossSellError" => "CrossSellError", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPart" => "DayPart", - "DayPartTargeting" => "DayPartTargeting", - "DayPartTargetingError" => "DayPartTargetingError", - "DeliveryData" => "DeliveryData", - "DeliveryIndicator" => "DeliveryIndicator", - "DeviceCapability" => "DeviceCapability", - "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", - "DeviceCategory" => "DeviceCategory", - "DeviceCategoryTargeting" => "DeviceCategoryTargeting", - "DeviceManufacturer" => "DeviceManufacturer", - "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "Forecast" => "Forecast", - "ForecastError" => "ForecastError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "InventoryUnitError" => "InventoryUnitError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItem" => "LineItem", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "LineItemSummary" => "LineItemSummary", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileCarrierTargeting" => "MobileCarrierTargeting", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", - "MobileDeviceTargeting" => "MobileDeviceTargeting", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegExError" => "RegExError", - "RegionLocation" => "RegionLocation", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "StatementError" => "StatementError", - "Stats" => "Stats", - "StringLengthError" => "StringLengthError", - "Targeting" => "Targeting", - "TeamError" => "TeamError", - "Technology" => "Technology", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TimeOfDay" => "TimeOfDay", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "VideoPosition" => "VideoPosition", - "VideoPositionTargeting" => "VideoPositionTargeting", - "VideoPositionWithinPod" => "VideoPositionWithinPod", - "VideoPositionTarget" => "VideoPositionTarget", - "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", - "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanionDeliveryOption" => "CompanionDeliveryOption", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "ComputedStatus" => "ComputedStatus", - "CostType" => "CostType", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeRotationType" => "CreativeRotationType", - "CreativeSizeType" => "CreativeSizeType", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayOfWeek" => "DayOfWeek", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryTimeZone" => "DeliveryTimeZone", - "DeliveryRateType" => "DeliveryRateType", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "InventoryUnitError.Reason" => "InventoryUnitErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemDiscountType" => "LineItemDiscountType", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemSummary.Duration" => "LineItemSummaryDuration", - "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", - "LineItemType" => "LineItemType", - "MinuteOfHour" => "MinuteOfHour", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "CreativePersistenceType" => "CreativePersistenceType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TimeUnit" => "TimeUnit", - "UnitType" => "UnitType", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "VideoBumperType" => "VideoBumperType", - "VideoPosition.Type" => "VideoPositionType", - "getForecast" => "GetForecast", - "getForecastResponse" => "GetForecastResponse", - "getForecastById" => "GetForecastById", - "getForecastByIdResponse" => "GetForecastByIdResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid - * values for {@link LineItem#lineItemType} are - * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other - * values will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItem the target of the forecast. If {@link LineItem#id} is null - * or no line item exists with that ID, a forecast is computed for the - * the subject, predicting what would happen if it were added to the - * system. If a line item already exists with {@link LineItem#id}, the - * forecast is computed for the subject, predicting what would happen - * if the existing line item's settings were modified to match the - * subject. - * @return the forecasted traffic estimates - */ - public function getForecast($lineItem) { - $args = new GetForecast($lineItem); - $result = $this->__soapCall("getForecast", array($args)); - return $result->rval; - } - /** - * Gets a {@link Forecast} for an existing {@link LineItem} object. Only - * line items having type {@link LineItemType#SPONSORSHIP} or - * {@link LineItemType#STANDARD} are valid. Other types will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. - * - * @param lineItemId the ID of a {@link LineItem} to run the forecast on. - * @return the forecasted traffic estimates - */ - public function getForecastById($lineItemId) { - $args = new GetForecastById($lineItemId); - $result = $this->__soapCall("getForecastById", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/InventoryService.php b/src/Google/Api/Ads/Dfp/v201308/InventoryService.php deleted file mode 100755 index 2cd8d47e4..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/InventoryService.php +++ /dev/null @@ -1,6161 +0,0 @@ -adSenseEnabled = $adSenseEnabled; - $this->borderColor = $borderColor; - $this->titleColor = $titleColor; - $this->backgroundColor = $backgroundColor; - $this->textColor = $textColor; - $this->urlColor = $urlColor; - $this->adType = $adType; - $this->borderStyle = $borderStyle; - $this->fontFamily = $fontFamily; - $this->fontSize = $fontSize; - $this->afcFormats = $afcFormats; - } - - } -} - -if (!class_exists("AdSenseSettingsInheritedProperty", false)) { - /** - * The property of the AdUnit that specifies how and from where the - * AdSenseSettings are inherited. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseSettingsInheritedProperty { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseSettingsInheritedProperty"; - - /** - * @access public - * @var AdSenseSettings - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null) { - $this->value = $value; - } - - } -} - -if (!class_exists("AdUnitAction", false)) { - /** - * Represents the actions that can be performed on {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitAction"; - - /** - * @access public - * @var string - */ - public $AdUnitActionType; - private $_parameterMap = array( - "AdUnitAction.Type" => "AdUnitActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("AdUnit", false)) { - /** - * An {@code AdUnit} represents a chunk of identified inventory for the - * publisher. It contains all the settings that need to be associated with - * inventory in order to serve ads to it. An {@code AdUnit} can also be the - * parent of other ad units in the inventory hierarchy. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnit"; - - /** - * @access public - * @var string - */ - public $id; - - /** - * @access public - * @var string - */ - public $parentId; - - /** - * @access public - * @var boolean - */ - public $hasChildren; - - /** - * @access public - * @var AdUnitParent[] - */ - public $parentPath; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var tnsAdUnitTargetWindow - */ - public $targetWindow; - - /** - * @access public - * @var tnsInventoryStatus - */ - public $status; - - /** - * @access public - * @var string - */ - public $adUnitCode; - - /** - * @access public - * @var AdUnitSize[] - */ - public $adUnitSizes; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var tnsMobilePlatform - */ - public $mobilePlatform; - - /** - * @access public - * @var boolean - */ - public $explicitlyTargeted; - - /** - * @access public - * @var AdSenseSettingsInheritedProperty - */ - public $inheritedAdSenseSettings; - - /** - * @access public - * @var integer - */ - public $partnerId; - - /** - * @access public - * @var LabelFrequencyCap[] - */ - public $appliedLabelFrequencyCaps; - - /** - * @access public - * @var LabelFrequencyCap[] - */ - public $effectiveLabelFrequencyCaps; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer[] - */ - public $effectiveTeamIds; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var tnsSmartSizeMode - */ - public $smartSizeMode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $parentId = null, $hasChildren = null, $parentPath = null, $name = null, $description = null, $targetWindow = null, $status = null, $adUnitCode = null, $adUnitSizes = null, $targetPlatform = null, $mobilePlatform = null, $explicitlyTargeted = null, $inheritedAdSenseSettings = null, $partnerId = null, $appliedLabelFrequencyCaps = null, $effectiveLabelFrequencyCaps = null, $appliedLabels = null, $effectiveAppliedLabels = null, $effectiveTeamIds = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $smartSizeMode = null) { - $this->id = $id; - $this->parentId = $parentId; - $this->hasChildren = $hasChildren; - $this->parentPath = $parentPath; - $this->name = $name; - $this->description = $description; - $this->targetWindow = $targetWindow; - $this->status = $status; - $this->adUnitCode = $adUnitCode; - $this->adUnitSizes = $adUnitSizes; - $this->targetPlatform = $targetPlatform; - $this->mobilePlatform = $mobilePlatform; - $this->explicitlyTargeted = $explicitlyTargeted; - $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; - $this->partnerId = $partnerId; - $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; - $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->effectiveTeamIds = $effectiveTeamIds; - $this->appliedTeamIds = $appliedTeamIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->smartSizeMode = $smartSizeMode; - } - - } -} - -if (!class_exists("AdUnitPage", false)) { - /** - * Captures a page of {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var AdUnit[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("AdUnitParent", false)) { - /** - * The summary of a parent {@link AdUnit}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitParent { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitParent"; - - /** - * @access public - * @var string - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null) { - $this->id = $id; - $this->name = $name; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("ArchiveAdUnits", false)) { - /** - * The action used for archiving {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ArchiveAdUnits extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ArchiveAdUnits"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("AssignAdUnitsToPlacement", false)) { - /** - * The action used for assigning a group of {@link AdUnit} objects to a - * {@link Placement}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssignAdUnitsToPlacement extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssignAdUnitsToPlacement"; - - /** - * @access public - * @var integer - */ - public $placementId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementId = null, $AdUnitActionType = null) { - parent::__construct(); - $this->placementId = $placementId; - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperError", false)) { - /** - * Errors specific to creative wrappers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeWrapperError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeWrapperError"; - - /** - * @access public - * @var tnsCreativeWrapperErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateAdUnits", false)) { - /** - * The action used for deactivating {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeactivateAdUnits extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeactivateAdUnits"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidColorError", false)) { - /** - * A list of all errors associated with a color attribute. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidColorError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidColorError"; - - /** - * @access public - * @var tnsInvalidColorErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitError"; - - /** - * @access public - * @var tnsInventoryUnitErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitPartnerAssociationError", false)) { - /** - * Errors relating to the association of partner companies with inventory units. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitPartnerAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitPartnerAssociationError"; - - /** - * @access public - * @var tnsInventoryUnitPartnerAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitSize", false)) { - /** - * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting - * with v201108 this also represents the environment, and companions of a - * particular ad in an ad unit. In most cases, it is a simple size with just a - * width and a height (sometimes representing an aspect ratio). - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitSize { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitSize"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var AdUnitSize[] - */ - public $companions; - - /** - * @access public - * @var string - */ - public $fullDisplayString; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $environmentType = null, $companions = null, $fullDisplayString = null) { - $this->size = $size; - $this->environmentType = $environmentType; - $this->companions = $companions; - $this->fullDisplayString = $fullDisplayString; - } - - } -} - -if (!class_exists("InventoryUnitSizesError", false)) { - /** - * An error specifically for InventoryUnitSizes. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitSizesError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitSizesError"; - - /** - * @access public - * @var tnsInventoryUnitSizesErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitTypeError", false)) { - /** - * Lists the errors associated with the type of {@link AdUnit} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitTypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitTypeError"; - - /** - * @access public - * @var tnsAdUnitTypeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelFrequencyCap", false)) { - /** - * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The - * frequency cap will limit the cumulative number of impressions of any ad - * units with this label that may be shown to a particular user over a time - * unit. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelFrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelFrequencyCap"; - - /** - * @access public - * @var FrequencyCap - */ - public $frequencyCap; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($frequencyCap = null, $labelId = null) { - $this->frequencyCap = $frequencyCap; - $this->labelId = $labelId; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RemoveAdUnitsFromPlacement", false)) { - /** - * The action used for removing a group of {@link AdUnit} objects - * from a {@link Placement}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RemoveAdUnitsFromPlacement extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RemoveAdUnitsFromPlacement"; - - /** - * @access public - * @var integer - */ - public $placementId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementId = null, $AdUnitActionType = null) { - parent::__construct(); - $this->placementId = $placementId; - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("Size_StringMapEntry", false)) { - /** - * This represents an entry in a map with a key of type Size - * and value of type String. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size_StringMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size_StringMapEntry"; - - /** - * @access public - * @var Size - */ - public $key; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdSenseAccountErrorReason", false)) { - /** - * An error occured while trying to associate an AdSense account with GFP. Unable to create an - * association with AdSense or Ad Exchange account. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseAccountErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseAccountError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsAdType", false)) { - /** - * Specifies the type of ads that can be served through this {@link AdUnit}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseSettingsAdType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseSettings.AdType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsBorderStyle", false)) { - /** - * Describes the border of the HTML elements used to surround an ad - * displayed by the {@link AdUnit}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseSettingsBorderStyle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseSettings.BorderStyle"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsFontFamily", false)) { - /** - * List of all possible font families. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseSettingsFontFamily { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseSettings.FontFamily"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsFontSize", false)) { - /** - * List of all possible font sizes the user can choose. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseSettingsFontSize { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseSettings.FontSize"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { - /** - * The supplied Afc size is not valid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitAfcSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitCodeErrorReason", false)) { - /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitCodeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitCodeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitTargetWindow", false)) { - /** - * Corresponds to an HTML link's {@code target} attribute. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitTargetWindow { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnit.TargetWindow"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitHierarchyErrorReason", false)) { - /** - * The depth of the {@link AdUnit} in the inventory hierarchy is greater - * than is allowed. The maximum allowed depth is two below the effective - * root ad unit for Premium accounts and one level below effective root ad - * unit for Small Business accounts. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitHierarchyErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitHierarchyError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperErrorReason", false)) { - /** - * The reasons for the creative wrapper error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeWrapperErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeWrapperError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidColorErrorReason", false)) { - /** - * The provided value is not a valid hexadecimal color. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidColorErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidColorError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryStatus", false)) { - /** - * Represents the status of objects that represent inventory - ad units and - * placements. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitPartnerAssociationErrorReason", false)) { - /** - * Partner association error reason types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitPartnerAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitPartnerAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitSizesErrorReason", false)) { - /** - * All possible reasons the error can be thrown. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitSizesErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitSizesError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitTypeErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitTypeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitTypeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MobilePlatform", false)) { - /** - * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit - * appears in a mobile application or in a mobile web site. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobilePlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobilePlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("SmartSizeMode", false)) { - /** - * Represents smart size modes. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SmartSizeMode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SmartSizeMode"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateAdUnit", false)) { - /** - * Creates a new {@link AdUnit}. - * - * The following fields are required: - *
    - *
  • {@link AdUnit#name}
  • - *
  • {@link AdUnit#parentId}
  • - *
- * - * @param adUnit the ad unit to create - * @return the new ad unit with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $adUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnit = null) { - $this->adUnit = $adUnit; - } - - } -} - -if (!class_exists("CreateAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateAdUnits", false)) { - /** - * Creates new {@link AdUnit} objects. - * - * @param adUnits the ad units to create - * @return the created ad units, with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdUnits { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $adUnits; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnits = null) { - $this->adUnits = $adUnits; - } - - } -} - -if (!class_exists("CreateAdUnitsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateAdUnitsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdUnit", false)) { - /** - * Returns the {@link AdUnit} uniquely identified by the given ID. - * - * @param adUnitId ID of the ad unit, which must already exist - * @return the {@code AdUnit} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $adUnitId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnitId = null) { - $this->adUnitId = $adUnitId; - } - - } -} - -if (!class_exists("GetAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdUnitSizesByStatement", false)) { - /** - * Gets a set of {@link AdUnitSize} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code targetPlatform}{@link TargetPlatform}
- * An exception will be thrown for queries with unsupported fields. - * - * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. - * - * Only "=" operator is supported. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad unit sizes - * @return the ad unit sizes that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdUnitSizesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetAdUnitSizesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdUnitSizesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnitSize[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdUnitsByStatement", false)) { - /** - * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code adUnitCode}{@link AdUnit#adUnitCode}
{@code id}{@link AdUnit#id}
{@code name}{@link AdUnit#name}
{@code parentId}{@link AdUnit#parentId}
{@code status}{@link AdUnit#status}
{@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the ad units that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdUnitsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetAdUnitsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAdUnitsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnitPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformAdUnitAction", false)) { - /** - * Performs actions on {@link AdUnit} objects that match the given - * {@link Statement#query}. - * - * @param adUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnitAction - */ - public $adUnitAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnitAction = null, $filterStatement = null) { - $this->adUnitAction = $adUnitAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformAdUnitActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformAdUnitActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateAdUnit", false)) { - /** - * Updates the specified {@link AdUnit}. - * - * @param adUnit the ad unit to update - * @return the updated ad unit - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $adUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnit = null) { - $this->adUnit = $adUnit; - } - - } -} - -if (!class_exists("UpdateAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateAdUnits", false)) { - /** - * Updates the specified {@link AdUnit} objects. - * - * @param adUnits the ad units to update - * @return the updated ad units - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdUnits { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $adUnits; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnits = null) { - $this->adUnits = $adUnits; - } - - } -} - -if (!class_exists("UpdateAdUnitsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateAdUnitsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateAdUnits", false)) { - /** - * The action used for activating {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivateAdUnits extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateAdUnits"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("AdSenseAccountError", false)) { - /** - * Error for AdSense related API calls. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseAccountError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseAccountError"; - - /** - * @access public - * @var tnsAdSenseAccountErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitAfcSizeError", false)) { - /** - * Caused by supplying sizes that are not compatible with the Afc sizes. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitAfcSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitAfcSizeError"; - - /** - * @access public - * @var tnsAdUnitAfcSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitCodeError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit#adUnitCode}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitCodeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitCodeError"; - - /** - * @access public - * @var tnsAdUnitCodeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitHierarchyError", false)) { - /** - * Caused by creating an {@link AdUnit} object with an invalid hierarchy. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitHierarchyError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitHierarchyError"; - - /** - * @access public - * @var tnsAdUnitHierarchyErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("InventoryService", false)) { - /** - * InventoryService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryService extends DfpSoapClient { - - const SERVICE_NAME = "InventoryService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/InventoryService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/InventoryService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateAdUnits" => "ActivateAdUnits", - "AdSenseAccountError" => "AdSenseAccountError", - "AdSenseSettings" => "AdSenseSettings", - "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", - "AdUnitAction" => "AdUnitAction", - "AdUnitAfcSizeError" => "AdUnitAfcSizeError", - "AdUnitCodeError" => "AdUnitCodeError", - "AdUnit" => "AdUnit", - "AdUnitHierarchyError" => "AdUnitHierarchyError", - "AdUnitPage" => "AdUnitPage", - "AdUnitParent" => "AdUnitParent", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveAdUnits" => "ArchiveAdUnits", - "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativeWrapperError" => "CreativeWrapperError", - "CrossSellError" => "CrossSellError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateAdUnits" => "DeactivateAdUnits", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "InternalApiError" => "InternalApiError", - "InvalidColorError" => "InvalidColorError", - "InventoryUnitError" => "InventoryUnitError", - "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", - "AdUnitSize" => "AdUnitSize", - "InventoryUnitSizesError" => "InventoryUnitSizesError", - "AdUnitTypeError" => "AdUnitTypeError", - "LabelFrequencyCap" => "LabelFrequencyCap", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RegExError" => "RegExError", - "RemoveAdUnitsFromPlacement" => "RemoveAdUnitsFromPlacement", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "Size" => "Size", - "Size_StringMapEntry" => "Size_StringMapEntry", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", - "AdSenseSettings.AdType" => "AdSenseSettingsAdType", - "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", - "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", - "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", - "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", - "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", - "AdUnit.TargetWindow" => "AdUnitTargetWindow", - "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", - "CrossSellError.Reason" => "CrossSellErrorReason", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidColorError.Reason" => "InvalidColorErrorReason", - "InventoryStatus" => "InventoryStatus", - "InventoryUnitError.Reason" => "InventoryUnitErrorReason", - "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", - "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", - "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", - "MobilePlatform" => "MobilePlatform", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "SmartSizeMode" => "SmartSizeMode", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TimeUnit" => "TimeUnit", - "createAdUnit" => "CreateAdUnit", - "createAdUnitResponse" => "CreateAdUnitResponse", - "createAdUnits" => "CreateAdUnits", - "createAdUnitsResponse" => "CreateAdUnitsResponse", - "getAdUnit" => "GetAdUnit", - "getAdUnitResponse" => "GetAdUnitResponse", - "getAdUnitSizesByStatement" => "GetAdUnitSizesByStatement", - "getAdUnitSizesByStatementResponse" => "GetAdUnitSizesByStatementResponse", - "getAdUnitsByStatement" => "GetAdUnitsByStatement", - "getAdUnitsByStatementResponse" => "GetAdUnitsByStatementResponse", - "performAdUnitAction" => "PerformAdUnitAction", - "performAdUnitActionResponse" => "PerformAdUnitActionResponse", - "updateAdUnit" => "UpdateAdUnit", - "updateAdUnitResponse" => "UpdateAdUnitResponse", - "updateAdUnits" => "UpdateAdUnits", - "updateAdUnitsResponse" => "UpdateAdUnitsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link AdUnit}. - * - * The following fields are required: - *
    - *
  • {@link AdUnit#name}
  • - *
  • {@link AdUnit#parentId}
  • - *
- * - * @param adUnit the ad unit to create - * @return the new ad unit with its ID set - */ - public function createAdUnit($adUnit) { - $args = new CreateAdUnit($adUnit); - $result = $this->__soapCall("createAdUnit", array($args)); - return $result->rval; - } - /** - * Creates new {@link AdUnit} objects. - * - * @param adUnits the ad units to create - * @return the created ad units, with their IDs filled in - */ - public function createAdUnits($adUnits) { - $args = new CreateAdUnits($adUnits); - $result = $this->__soapCall("createAdUnits", array($args)); - return $result->rval; - } - /** - * Returns the {@link AdUnit} uniquely identified by the given ID. - * - * @param adUnitId ID of the ad unit, which must already exist - * @return the {@code AdUnit} uniquely identified by the given ID - */ - public function getAdUnit($adUnitId) { - $args = new GetAdUnit($adUnitId); - $result = $this->__soapCall("getAdUnit", array($args)); - return $result->rval; - } - /** - * Gets a set of {@link AdUnitSize} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code targetPlatform}{@link TargetPlatform}
- * An exception will be thrown for queries with unsupported fields. - * - * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. - * - * Only "=" operator is supported. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad unit sizes - * @return the ad unit sizes that match the given filter - */ - public function getAdUnitSizesByStatement($filterStatement) { - $args = new GetAdUnitSizesByStatement($filterStatement); - $result = $this->__soapCall("getAdUnitSizesByStatement", array($args)); - return $result->rval; - } - /** - * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code adUnitCode}{@link AdUnit#adUnitCode}
{@code id}{@link AdUnit#id}
{@code name}{@link AdUnit#name}
{@code parentId}{@link AdUnit#parentId}
{@code status}{@link AdUnit#status}
{@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the ad units that match the given filter - */ - public function getAdUnitsByStatement($filterStatement) { - $args = new GetAdUnitsByStatement($filterStatement); - $result = $this->__soapCall("getAdUnitsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link AdUnit} objects that match the given - * {@link Statement#query}. - * - * @param adUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - */ - public function performAdUnitAction($adUnitAction, $filterStatement) { - $args = new PerformAdUnitAction($adUnitAction, $filterStatement); - $result = $this->__soapCall("performAdUnitAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link AdUnit}. - * - * @param adUnit the ad unit to update - * @return the updated ad unit - */ - public function updateAdUnit($adUnit) { - $args = new UpdateAdUnit($adUnit); - $result = $this->__soapCall("updateAdUnit", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link AdUnit} objects. - * - * @param adUnits the ad units to update - * @return the updated ad units - */ - public function updateAdUnits($adUnits) { - $args = new UpdateAdUnits($adUnits); - $result = $this->__soapCall("updateAdUnits", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php deleted file mode 100755 index 68080cef1..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/LineItemCreativeAssociationService.php +++ /dev/null @@ -1,5972 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AssetError", false)) { - /** - * Lists all errors associated with assets. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetError"; - - /** - * @access public - * @var tnsAssetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeAssetMacroError", false)) { - /** - * Lists all errors associated with creative asset macros. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeAssetMacroError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeAssetMacroError"; - - /** - * @access public - * @var tnsCreativeAssetMacroErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeSetError", false)) { - /** - * Errors relating to creative sets & subclasses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSetError"; - - /** - * @access public - * @var tnsCreativeSetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCreativeError", false)) { - /** - * Lists all errors associated with custom creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreativeError"; - - /** - * @access public - * @var tnsCustomCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ImageError", false)) { - /** - * Lists all errors associated with images. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageError"; - - /** - * @access public - * @var tnsImageErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidPhoneNumberError", false)) { - /** - * Lists all errors associated with phone numbers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidPhoneNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidPhoneNumberError"; - - /** - * @access public - * @var tnsInvalidPhoneNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationAction", false)) { - /** - * Represents the actions that can be performed on - * {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationAction"; - - /** - * @access public - * @var string - */ - public $LineItemCreativeAssociationActionType; - private $_parameterMap = array( - "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemCreativeAssociationActionType = null) { - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociation", false)) { - /** - * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a - * {@link LineItem} so that the creative can be served in ad units targeted by the line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociation"; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * @access public - * @var integer - */ - public $creativeSetId; - - /** - * @access public - * @var double - */ - public $manualCreativeRotationWeight; - - /** - * @access public - * @var integer - */ - public $sequentialCreativeRotationIndex; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var tnsStartDateTimeType - */ - public $startDateTimeType; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var string - */ - public $destinationUrl; - - /** - * @access public - * @var Size[] - */ - public $sizes; - - /** - * @access public - * @var tnsLineItemCreativeAssociationStatus - */ - public $status; - - /** - * @access public - * @var LineItemCreativeAssociationStats - */ - public $stats; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $creativeId = null, $creativeSetId = null, $manualCreativeRotationWeight = null, $sequentialCreativeRotationIndex = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $destinationUrl = null, $sizes = null, $status = null, $stats = null, $lastModifiedDateTime = null) { - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - $this->creativeSetId = $creativeSetId; - $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; - $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->destinationUrl = $destinationUrl; - $this->sizes = $sizes; - $this->status = $status; - $this->stats = $stats; - $this->lastModifiedDateTime = $lastModifiedDateTime; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationOperationError", false)) { - /** - * Lists all errors for executing operations on - * line item-to-creative associations - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationOperationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationPage", false)) { - /** - * Captures a page of {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationStats", false)) { - /** - * Contains statistics such as impressions, clicks delivered and cost - * for {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationStats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationStats"; - - /** - * @access public - * @var Stats - */ - public $stats; - - /** - * @access public - * @var Long_StatsMapEntry[] - */ - public $creativeSetStats; - - /** - * @access public - * @var Money - */ - public $costInOrderCurrency; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($stats = null, $creativeSetStats = null, $costInOrderCurrency = null) { - $this->stats = $stats; - $this->creativeSetStats = $creativeSetStats; - $this->costInOrderCurrency = $costInOrderCurrency; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Long_StatsMapEntry", false)) { - /** - * This represents an entry in a map with a key of type Long - * and value of type Stats. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Long_StatsMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Long_StatsMapEntry"; - - /** - * @access public - * @var integer - */ - public $key; - - /** - * @access public - * @var Stats - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RichMediaStudioCreativeError", false)) { - /** - * Lists all errors associated with Rich Media Studio creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeError"; - - /** - * @access public - * @var tnsRichMediaStudioCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Stats", false)) { - /** - * {@code Stats} contains trafficking statistics for {@link LineItem} and - * {@link LineItemCreativeAssociation} objects - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Stats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Stats"; - - /** - * @access public - * @var integer - */ - public $impressionsDelivered; - - /** - * @access public - * @var integer - */ - public $clicksDelivered; - - /** - * @access public - * @var integer - */ - public $videoCompletionsDelivered; - - /** - * @access public - * @var integer - */ - public $videoStartsDelivered; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($impressionsDelivered = null, $clicksDelivered = null, $videoCompletionsDelivered = null, $videoStartsDelivered = null) { - $this->impressionsDelivered = $impressionsDelivered; - $this->clicksDelivered = $clicksDelivered; - $this->videoCompletionsDelivered = $videoCompletionsDelivered; - $this->videoStartsDelivered = $videoStartsDelivered; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SwiffyConversionError", false)) { - /** - * Error for converting flash to swiffy asset. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SwiffyConversionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SwiffyConversionError"; - - /** - * @access public - * @var tnsSwiffyConversionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeError", false)) { - /** - * Lists all errors associated with template instantiated creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; - - /** - * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdSenseAccountErrorReason", false)) { - /** - * An error occured while trying to associate an AdSense account with GFP. Unable to create an - * association with AdSense or Ad Exchange account. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseAccountErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseAccountError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AssetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AssetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AssetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeAssetMacroErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeAssetMacroErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeAssetMacroError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ImageErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ImageErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ImageError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidPhoneNumberErrorReason", false)) { - /** - * The phone number is invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidPhoneNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidPhoneNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationStatus", false)) { - /** - * Describes the status of the association. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociation.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RichMediaStudioCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StartDateTimeType", false)) { - /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StartDateTimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StartDateTimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("SwiffyConversionErrorReason", false)) { - /** - * Error reason for {@link SwiffyConversionError}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SwiffyConversionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SwiffyConversionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { - /** - * The reason for the error - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociation", false)) { - /** - * Creates a new {@link LineItemCreativeAssociation}. - * - * The following fields are required: - *
    - *
  • {@link LineItemCreativeAssociation#creativeId}
  • - *
  • {@link LineItemCreativeAssociation#lineItemId}
  • - *
- * - * @param lineItemCreativeAssociation the line item creative association to - * create - * @return the new line item creative association with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $lineItemCreativeAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociation = null) { - $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociations", false)) { - /** - * Creates new {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * create - * @return the created line item creative associations with their IDs filled - * in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItemCreativeAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $lineItemCreativeAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociations = null) { - $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItemCreativeAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociation", false)) { - /** - * Returns the {@link LineItemCreativeAssociation} uniquely identified by the - * given line item and creative IDs. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @return the {@code LineItemCreativeAssociation} uniquely identified by the - * line item and creative IDs - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $creativeId = null) { - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociationsByStatement", false)) { - /** - * Gets a {@link LineItemCreativeAssociationPage} of - * {@link LineItemCreativeAssociation} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code creativeId}{@link LineItemCreativeAssociation#creativeId}
{@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
{@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
{@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
{@code status}{@link LineItemCreativeAssociation#status}
{@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the line item creative associations that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemCreativeAssociationsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociationsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemCreativeAssociationsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociationPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetPreviewUrl", false)) { - /** - * Returns an insite preview URL that references the specified site URL with - * the specified creative from the association served to it. For Creative Set - * previewing you may specify the master creative Id. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @param siteUrl the URL of the site that the creative should be previewed in - * @return a URL that references the specified site URL with the specified - * creative served to it - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetPreviewUrl { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * @access public - * @var string - */ - public $siteUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $creativeId = null, $siteUrl = null) { - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - $this->siteUrl = $siteUrl; - } - - } -} - -if (!class_exists("GetPreviewUrlResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetPreviewUrlResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformLineItemCreativeAssociationAction", false)) { - /** - * Performs actions on {@link LineItemCreativeAssociation} objects that match - * the given {@link Statement#query}. - * - * @param lineItemCreativeAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformLineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociationAction - */ - public $lineItemCreativeAssociationAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociationAction = null, $filterStatement = null) { - $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformLineItemCreativeAssociationActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformLineItemCreativeAssociationActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociation", false)) { - /** - * Updates the specified {@link LineItemCreativeAssociation}. - * - * @param lineItemCreativeAssociation the line item creative association to - * update - * @return the updated line item creative association - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $lineItemCreativeAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociation = null) { - $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociations", false)) { - /** - * Updates the specified {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * update - * @return the updated line item creative associations - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItemCreativeAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $lineItemCreativeAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociations = null) { - $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItemCreativeAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateLineItemCreativeAssociations", false)) { - /** - * The action used for activating {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateLineItemCreativeAssociations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemCreativeAssociationActionType = null) { - parent::__construct(); - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; - } - - } -} - -if (!class_exists("AdSenseAccountError", false)) { - /** - * Error for AdSense related API calls. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdSenseAccountError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdSenseAccountError"; - - /** - * @access public - * @var tnsAdSenseAccountErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateLineItemCreativeAssociations", false)) { - /** - * The action used for deactivating {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeactivateLineItemCreativeAssociations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemCreativeAssociationActionType = null) { - parent::__construct(); - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationService", false)) { - /** - * LineItemCreativeAssociationService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationService extends DfpSoapClient { - - const SERVICE_NAME = "LineItemCreativeAssociationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/LineItemCreativeAssociationService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/LineItemCreativeAssociationService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", - "AdSenseAccountError" => "AdSenseAccountError", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AssetError" => "AssetError", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativeAssetMacroError" => "CreativeAssetMacroError", - "CreativeError" => "CreativeError", - "CreativeSetError" => "CreativeSetError", - "CustomCreativeError" => "CustomCreativeError", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "ImageError" => "ImageError", - "InternalApiError" => "InternalApiError", - "InvalidPhoneNumberError" => "InvalidPhoneNumberError", - "InvalidUrlError" => "InvalidUrlError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", - "LineItemCreativeAssociation" => "LineItemCreativeAssociation", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", - "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", - "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", - "LineItemError" => "LineItemError", - "Long_StatsMapEntry" => "Long_StatsMapEntry", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "Stats" => "Stats", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SwiffyConversionError" => "SwiffyConversionError", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AssetError.Reason" => "AssetErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeSetError.Reason" => "CreativeSetErrorReason", - "CustomCreativeError.Reason" => "CustomCreativeErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "ImageError.Reason" => "ImageErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", - "LineItemError.Reason" => "LineItemErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "createLineItemCreativeAssociation" => "CreateLineItemCreativeAssociation", - "createLineItemCreativeAssociationResponse" => "CreateLineItemCreativeAssociationResponse", - "createLineItemCreativeAssociations" => "CreateLineItemCreativeAssociations", - "createLineItemCreativeAssociationsResponse" => "CreateLineItemCreativeAssociationsResponse", - "getLineItemCreativeAssociation" => "GetLineItemCreativeAssociation", - "getLineItemCreativeAssociationResponse" => "GetLineItemCreativeAssociationResponse", - "getLineItemCreativeAssociationsByStatement" => "GetLineItemCreativeAssociationsByStatement", - "getLineItemCreativeAssociationsByStatementResponse" => "GetLineItemCreativeAssociationsByStatementResponse", - "getPreviewUrl" => "GetPreviewUrl", - "getPreviewUrlResponse" => "GetPreviewUrlResponse", - "performLineItemCreativeAssociationAction" => "PerformLineItemCreativeAssociationAction", - "performLineItemCreativeAssociationActionResponse" => "PerformLineItemCreativeAssociationActionResponse", - "updateLineItemCreativeAssociation" => "UpdateLineItemCreativeAssociation", - "updateLineItemCreativeAssociationResponse" => "UpdateLineItemCreativeAssociationResponse", - "updateLineItemCreativeAssociations" => "UpdateLineItemCreativeAssociations", - "updateLineItemCreativeAssociationsResponse" => "UpdateLineItemCreativeAssociationsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link LineItemCreativeAssociation}. - * - * The following fields are required: - *
    - *
  • {@link LineItemCreativeAssociation#creativeId}
  • - *
  • {@link LineItemCreativeAssociation#lineItemId}
  • - *
- * - * @param lineItemCreativeAssociation the line item creative association to - * create - * @return the new line item creative association with its ID set - */ - public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { - $args = new CreateLineItemCreativeAssociation($lineItemCreativeAssociation); - $result = $this->__soapCall("createLineItemCreativeAssociation", array($args)); - return $result->rval; - } - /** - * Creates new {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * create - * @return the created line item creative associations with their IDs filled - * in - */ - public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { - $args = new CreateLineItemCreativeAssociations($lineItemCreativeAssociations); - $result = $this->__soapCall("createLineItemCreativeAssociations", array($args)); - return $result->rval; - } - /** - * Returns the {@link LineItemCreativeAssociation} uniquely identified by the - * given line item and creative IDs. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @return the {@code LineItemCreativeAssociation} uniquely identified by the - * line item and creative IDs - */ - public function getLineItemCreativeAssociation($lineItemId, $creativeId) { - $args = new GetLineItemCreativeAssociation($lineItemId, $creativeId); - $result = $this->__soapCall("getLineItemCreativeAssociation", array($args)); - return $result->rval; - } - /** - * Gets a {@link LineItemCreativeAssociationPage} of - * {@link LineItemCreativeAssociation} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code creativeId}{@link LineItemCreativeAssociation#creativeId}
{@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
{@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
{@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
{@code status}{@link LineItemCreativeAssociation#status}
{@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the line item creative associations that match the given filter - */ - public function getLineItemCreativeAssociationsByStatement($filterStatement) { - $args = new GetLineItemCreativeAssociationsByStatement($filterStatement); - $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($args)); - return $result->rval; - } - /** - * Returns an insite preview URL that references the specified site URL with - * the specified creative from the association served to it. For Creative Set - * previewing you may specify the master creative Id. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @param siteUrl the URL of the site that the creative should be previewed in - * @return a URL that references the specified site URL with the specified - * creative served to it - */ - public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { - $args = new GetPreviewUrl($lineItemId, $creativeId, $siteUrl); - $result = $this->__soapCall("getPreviewUrl", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link LineItemCreativeAssociation} objects that match - * the given {@link Statement#query}. - * - * @param lineItemCreativeAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the result of the action performed - */ - public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { - $args = new PerformLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); - $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItemCreativeAssociation}. - * - * @param lineItemCreativeAssociation the line item creative association to - * update - * @return the updated line item creative association - */ - public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { - $args = new UpdateLineItemCreativeAssociation($lineItemCreativeAssociation); - $result = $this->__soapCall("updateLineItemCreativeAssociation", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * update - * @return the updated line item creative associations - */ - public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { - $args = new UpdateLineItemCreativeAssociations($lineItemCreativeAssociations); - $result = $this->__soapCall("updateLineItemCreativeAssociations", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemService.php deleted file mode 100755 index 267a48c4c..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/LineItemService.php +++ /dev/null @@ -1,10704 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargeting", false)) { - /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargeting"; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var DeviceCapabilityTargeting - */ - public $deviceCapabilityTargeting; - - /** - * @access public - * @var DeviceCategoryTargeting - */ - public $deviceCategoryTargeting; - - /** - * @access public - * @var DeviceManufacturerTargeting - */ - public $deviceManufacturerTargeting; - - /** - * @access public - * @var MobileCarrierTargeting - */ - public $mobileCarrierTargeting; - - /** - * @access public - * @var MobileDeviceTargeting - */ - public $mobileDeviceTargeting; - - /** - * @access public - * @var MobileDeviceSubmodelTargeting - */ - public $mobileDeviceSubmodelTargeting; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var OperatingSystemVersionTargeting - */ - public $operatingSystemVersionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentTargeting", false)) { - /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; - - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; - - /** - * @access public - * @var integer[] - */ - public $excludedVideoCategoryIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPart", false)) { - /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; - - /** - * @access public - * @var TimeOfDay - */ - public $startTime; - - /** - * @access public - * @var TimeOfDay - */ - public $endTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; - } - - } -} - -if (!class_exists("DayPartTargeting", false)) { - /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargeting"; - - /** - * @access public - * @var DayPart[] - */ - public $dayParts; - - /** - * @access public - * @var tnsDeliveryTimeZone - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DeliveryData", false)) { - /** - * Holds the number of clicks or impressions, determined by - * {@link LineItem#costType}, delivered for a single line item for the - * last 7 days - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryData { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryData"; - - /** - * @access public - * @var integer[] - */ - public $units; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($units = null) { - $this->units = $units; - } - - } -} - -if (!class_exists("DeliveryIndicator", false)) { - /** - * Indicates the delivery performance of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryIndicator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryIndicator"; - - /** - * @access public - * @var double - */ - public $expectedDeliveryPercentage; - - /** - * @access public - * @var double - */ - public $actualDeliveryPercentage; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { - $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; - $this->actualDeliveryPercentage = $actualDeliveryPercentage; - } - - } -} - -if (!class_exists("DeviceCapabilityTargeting", false)) { - /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapabilityTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCapabilities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; - } - - } -} - -if (!class_exists("DeviceCategoryTargeting", false)) { - /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCategories; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; - } - - } -} - -if (!class_exists("DeviceManufacturerTargeting", false)) { - /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturerTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturerTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $deviceManufacturers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemAction", false)) { - /** - * Represents the actions that can be performed on {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemAction"; - - /** - * @access public - * @var string - */ - public $LineItemActionType; - private $_parameterMap = array( - "LineItemAction.Type" => "LineItemActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemPage", false)) { - /** - * Captures a page of {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var LineItem[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("LineItemSummary", false)) { - /** - * The {@code LineItemSummary} represents the base class from which a {@code - * LineItem} is derived. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemSummary"; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $orderName; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var tnsStartDateTimeType - */ - public $startDateTimeType; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var integer - */ - public $autoExtensionDays; - - /** - * @access public - * @var boolean - */ - public $unlimitedEndDateTime; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var tnsLineItemSummaryDuration - */ - public $duration; - - /** - * @access public - * @var integer - */ - public $unitsBought; - - /** - * @access public - * @var Money - */ - public $costPerUnit; - - /** - * @access public - * @var Money - */ - public $valueCostPerUnit; - - /** - * @access public - * @var tnsCostType - */ - public $costType; - - /** - * @access public - * @var tnsLineItemDiscountType - */ - public $discountType; - - /** - * @access public - * @var double - */ - public $discount; - - /** - * @access public - * @var integer - */ - public $contractedUnitsBought; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var tnsCompanionDeliveryOption - */ - public $companionDeliveryOption; - - /** - * @access public - * @var tnsCreativePersistenceType - */ - public $creativePersistenceType; - - /** - * @access public - * @var boolean - */ - public $allowOverbook; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * @access public - * @var boolean - */ - public $reserveAtCreation; - - /** - * @access public - * @var Stats - */ - public $stats; - - /** - * @access public - * @var DeliveryIndicator - */ - public $deliveryIndicator; - - /** - * @access public - * @var DeliveryData - */ - public $deliveryData; - - /** - * @access public - * @var Money - */ - public $budget; - - /** - * @access public - * @var tnsComputedStatus - */ - public $status; - - /** - * @access public - * @var tnsLineItemSummaryReservationStatus - */ - public $reservationStatus; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var string - */ - public $webPropertyCode; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var boolean - */ - public $disableSameAdvertiserCompetitiveExclusion; - - /** - * @access public - * @var string - */ - public $lastModifiedByApp; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var DateTime - */ - public $creationDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var boolean - */ - public $isMissingCreatives; - - /** - * @access public - * @var string - */ - public $LineItemSummaryType; - private $_parameterMap = array( - "LineItemSummary.Type" => "LineItemSummaryType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MobileCarrierTargeting", false)) { - /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrierTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $mobileCarriers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; - } - - } -} - -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDeviceSubmodels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; - } - - } -} - -if (!class_exists("MobileDeviceTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDevices; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; - - /** - * @access public - * @var Technology[] - */ - public $excludedOperatingSystemVersions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PauseLineItems", false)) { - /** - * The action used for pausing {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PauseLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PauseLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("ReleaseLineItems", false)) { - /** - * The action used for releasing {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReleaseLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReleaseLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReserveLineItems", false)) { - /** - * The action used for reserving {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReserveLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReserveLineItems"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $LineItemActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("ResumeLineItems", false)) { - /** - * The action used for resuming {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ResumeLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ResumeLineItems"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $LineItemActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Stats", false)) { - /** - * {@code Stats} contains trafficking statistics for {@link LineItem} and - * {@link LineItemCreativeAssociation} objects - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Stats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Stats"; - - /** - * @access public - * @var integer - */ - public $impressionsDelivered; - - /** - * @access public - * @var integer - */ - public $clicksDelivered; - - /** - * @access public - * @var integer - */ - public $videoCompletionsDelivered; - - /** - * @access public - * @var integer - */ - public $videoStartsDelivered; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($impressionsDelivered = null, $clicksDelivered = null, $videoCompletionsDelivered = null, $videoStartsDelivered = null) { - $this->impressionsDelivered = $impressionsDelivered; - $this->clicksDelivered = $clicksDelivered; - $this->videoCompletionsDelivered = $videoCompletionsDelivered; - $this->videoStartsDelivered = $videoStartsDelivered; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Targeting", false)) { - /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; - - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; - - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TimeOfDay", false)) { - /** - * Represents a specific time in a day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnarchiveLineItems", false)) { - /** - * The action used for unarchiving {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnarchiveLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnarchiveLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoPosition", false)) { - /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; - - /** - * @access public - * @var integer - */ - public $midrollIndex; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; - } - - } -} - -if (!class_exists("VideoPositionTargeting", false)) { - /** - * Represents positions within and around a video where ads can be targeted to. - *

- * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTargeting"; - - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; - } - - } -} - -if (!class_exists("VideoPositionWithinPod", false)) { - /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionWithinPod"; - - /** - * @access public - * @var integer - */ - public $index; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($index = null) { - $this->index = $index; - } - - } -} - -if (!class_exists("VideoPositionTarget", false)) { - /** - * Represents the options for targetable positions within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; - - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanionDeliveryOption", false)) { - /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanionDeliveryOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanionDeliveryOption"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ComputedStatus", false)) { - /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ComputedStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ComputedStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryTimeZone { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryTimeZone"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemDiscountType", false)) { - /** - * Describes the possible discount types on the cost of booking a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemDiscountType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemDiscountType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryDuration", false)) { - /** - * Specifies the time period used for limiting the number of ads served for a - * {@link LineItem}. For valid and default values of duration for each line - * item type, see {@link LineItem#duration}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemSummaryDuration { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemSummary.Duration"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemSummaryReservationStatus", false)) { - /** - * Specifies the reservation status of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemSummaryReservationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemSummary.ReservationStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MinuteOfHour", false)) { - /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MinuteOfHour { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MinuteOfHour"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativePersistenceType", false)) { - /** - * Specifies options to prevent ads from replacing or appearing with this - * line item. If persistence is set, this line item's ads will not be - * replaced over time, whether through AJAX or other means, such as - * companions of video ads. - * Additionally, if set to exclude none, other ads can be shown in any - * slots not being used by this line item. If set to exclude display ads, - * video ads can be shown, but no other display ads can be shown, even - * in slots that aren't used by this line item. If set to exclude video ads, - * video ads cannot be shown, but other display ads can be shown in unused - * slots. If set to exclude all ads, no other ads can be shown until the - * page is changed. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativePersistenceType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativePersistenceType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StartDateTimeType", false)) { - /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StartDateTimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StartDateTimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UnitType", false)) { - /** - * Indicates the type of unit used for defining a reservation. The - * {@link CostType} can differ from the {@link UnitType} - an - * ad can have an impression goal, but be billed by its click. Usually - * {@link CostType} and {@link UnitType} will refer to the - * same unit. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnitType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnitType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoBumperType", false)) { - /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoBumperType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoBumperType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoPositionType", false)) { - /** - * Represents a targetable position within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateLineItem", false)) { - /** - * Creates a new {@link LineItem}. - * - * These fields are required: - *
    - *
  • {@link LineItem#costPerUnit}
  • - *
  • {@link LineItem#costType}
  • - *
  • {@link LineItem#endDateTime}
  • - *
  • {@link LineItem#lineItemType}
  • - *
  • {@link LineItem#name}
  • - *
  • {@link LineItem#orderId}
  • - *
  • {@link LineItem#startDateTime}
  • - *
  • {@link LineItem#unitsBought}
  • - *
  • {@link LineItem#creativePlaceholders}
  • - *
  • {@link LineItem#targeting}
  • - *
- * - * @param lineItem the line item to create - * @return the line item with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $lineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; - } - - } -} - -if (!class_exists("CreateLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateLineItems", false)) { - /** - * Creates new {@link LineItem} objects. - * - * @param lineItems the line items to create - * @return the created line items with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $lineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItems = null) { - $this->lineItems = $lineItems; - } - - } -} - -if (!class_exists("CreateLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItem", false)) { - /** - * Returns the {@link LineItem} uniquely identified by the given ID. - * - * @param lineItemId the ID of the line item, which must already exist - * @return the {@code LineItem} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null) { - $this->lineItemId = $lineItemId; - } - - } -} - -if (!class_exists("GetLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItemsByStatement", false)) { - /** - * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL propertyEntity property
CostType{@link LineItem#costType}
CreationDateTime{@link LineItem#creationDateTime}
DeliveryRateType{@link LineItem#deliveryRateType}
EndDateTime{@link LineItem#endDateTime}
ExternalId{@link LineItem#externalId}
Id{@link LineItem#id}
IsMissingCreatives{@link LineItem#isMissingCreatives}
LastModifiedDateTime{@link LineItem#lastModifiedDateTime}
LineItemType{@link LineItem#lineItemType}
Name{@link LineItem#name}
OrderId{@link LineItem#orderId}
StartDateTime{@link LineItem#startDateTime}
Status{@link LineItem#status}
UnitsBought{@link LineItem#unitsBought}
- * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items. - * @return the line items that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetLineItemsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformLineItemAction", false)) { - /** - * Performs actions on {@link LineItem} objects that match the given - * {@link Statement#query}. - * - * @param lineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemAction - */ - public $lineItemAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemAction = null, $filterStatement = null) { - $this->lineItemAction = $lineItemAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformLineItemActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformLineItemActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItem", false)) { - /** - * Updates the specified {@link LineItem}. - * - * @param lineItem the line item to update - * @return the updated line item - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $lineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; - } - - } -} - -if (!class_exists("UpdateLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItems", false)) { - /** - * Updates the specified {@link LineItem} objects. - * - * @param lineItems the line items to update - * @return the updated line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $lineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItems = null) { - $this->lineItems = $lineItems; - } - - } -} - -if (!class_exists("UpdateLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateLineItems", false)) { - /** - * The action used for activating {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivateLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveLineItems", false)) { - /** - * The action used for archiving {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ArchiveLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ArchiveLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeleteLineItems", false)) { - /** - * The action used for deleting {@link LineItem} objects. A line item can be - * deleted if it has never been eligible to serve. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeleteLineItems extends LineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeleteLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemActionType = null) { - parent::__construct(); - $this->LineItemActionType = $LineItemActionType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("LineItem", false)) { - /** - * {@code LineItem} is an advertiser's commitment to purchase a specific number - * of ad impressions, clicks, or time. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItem extends LineItemSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItem"; - - /** - * @access public - * @var Targeting - */ - public $targeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { - parent::__construct(); - $this->targeting = $targeting; - $this->orderId = $orderId; - $this->id = $id; - $this->name = $name; - $this->externalId = $externalId; - $this->orderName = $orderName; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->autoExtensionDays = $autoExtensionDays; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->creativeRotationType = $creativeRotationType; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; - $this->costPerUnit = $costPerUnit; - $this->valueCostPerUnit = $valueCostPerUnit; - $this->costType = $costType; - $this->discountType = $discountType; - $this->discount = $discount; - $this->contractedUnitsBought = $contractedUnitsBought; - $this->creativePlaceholders = $creativePlaceholders; - $this->targetPlatform = $targetPlatform; - $this->environmentType = $environmentType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativePersistenceType = $creativePersistenceType; - $this->allowOverbook = $allowOverbook; - $this->skipInventoryCheck = $skipInventoryCheck; - $this->reserveAtCreation = $reserveAtCreation; - $this->stats = $stats; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->budget = $budget; - $this->status = $status; - $this->reservationStatus = $reservationStatus; - $this->isArchived = $isArchived; - $this->webPropertyCode = $webPropertyCode; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->notes = $notes; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->creationDateTime = $creationDateTime; - $this->customFieldValues = $customFieldValues; - $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("ReserveAndOverbookLineItems", false)) { - /** - * The action used for reserving and overbooking {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReserveAndOverbookLineItems extends ReserveLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReserveAndOverbookLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("ResumeAndOverbookLineItems", false)) { - /** - * The action used for resuming and overbooking {@link LineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ResumeAndOverbookLineItems extends ResumeLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ResumeAndOverbookLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("LineItemService", false)) { - /** - * LineItemService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemService extends DfpSoapClient { - - const SERVICE_NAME = "LineItemService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/LineItemService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/LineItemService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateLineItems" => "ActivateLineItems", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "TechnologyTargeting" => "TechnologyTargeting", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveLineItems" => "ArchiveLineItems", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", - "CreativeError" => "CreativeError", - "CreativePlaceholder" => "CreativePlaceholder", - "CrossSellError" => "CrossSellError", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPart" => "DayPart", - "DayPartTargeting" => "DayPartTargeting", - "DayPartTargetingError" => "DayPartTargetingError", - "DeleteLineItems" => "DeleteLineItems", - "DeliveryData" => "DeliveryData", - "DeliveryIndicator" => "DeliveryIndicator", - "DeviceCapability" => "DeviceCapability", - "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", - "DeviceCategory" => "DeviceCategory", - "DeviceCategoryTargeting" => "DeviceCategoryTargeting", - "DeviceManufacturer" => "DeviceManufacturer", - "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemAction" => "LineItemAction", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItem" => "LineItem", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "LineItemPage" => "LineItemPage", - "LineItemSummary" => "LineItemSummary", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileCarrierTargeting" => "MobileCarrierTargeting", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", - "MobileDeviceTargeting" => "MobileDeviceTargeting", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PauseLineItems" => "PauseLineItems", - "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", - "ReleaseLineItems" => "ReleaseLineItems", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ReserveAndOverbookLineItems" => "ReserveAndOverbookLineItems", - "ReserveLineItems" => "ReserveLineItems", - "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", - "ResumeLineItems" => "ResumeLineItems", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "Stats" => "Stats", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Targeting" => "Targeting", - "TeamError" => "TeamError", - "Technology" => "Technology", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TimeOfDay" => "TimeOfDay", - "TypeError" => "TypeError", - "UnarchiveLineItems" => "UnarchiveLineItems", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "VideoPosition" => "VideoPosition", - "VideoPositionTargeting" => "VideoPositionTargeting", - "VideoPositionWithinPod" => "VideoPositionWithinPod", - "VideoPositionTarget" => "VideoPositionTarget", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanionDeliveryOption" => "CompanionDeliveryOption", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "ComputedStatus" => "ComputedStatus", - "CostType" => "CostType", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeRotationType" => "CreativeRotationType", - "CreativeSizeType" => "CreativeSizeType", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayOfWeek" => "DayOfWeek", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryTimeZone" => "DeliveryTimeZone", - "DeliveryRateType" => "DeliveryRateType", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemDiscountType" => "LineItemDiscountType", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemSummary.Duration" => "LineItemSummaryDuration", - "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", - "LineItemType" => "LineItemType", - "MinuteOfHour" => "MinuteOfHour", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "CreativePersistenceType" => "CreativePersistenceType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TimeUnit" => "TimeUnit", - "UnitType" => "UnitType", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "VideoBumperType" => "VideoBumperType", - "VideoPosition.Type" => "VideoPositionType", - "createLineItem" => "CreateLineItem", - "createLineItemResponse" => "CreateLineItemResponse", - "createLineItems" => "CreateLineItems", - "createLineItemsResponse" => "CreateLineItemsResponse", - "getLineItem" => "GetLineItem", - "getLineItemResponse" => "GetLineItemResponse", - "getLineItemsByStatement" => "GetLineItemsByStatement", - "getLineItemsByStatementResponse" => "GetLineItemsByStatementResponse", - "performLineItemAction" => "PerformLineItemAction", - "performLineItemActionResponse" => "PerformLineItemActionResponse", - "updateLineItem" => "UpdateLineItem", - "updateLineItemResponse" => "UpdateLineItemResponse", - "updateLineItems" => "UpdateLineItems", - "updateLineItemsResponse" => "UpdateLineItemsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link LineItem}. - * - * These fields are required: - *
    - *
  • {@link LineItem#costPerUnit}
  • - *
  • {@link LineItem#costType}
  • - *
  • {@link LineItem#endDateTime}
  • - *
  • {@link LineItem#lineItemType}
  • - *
  • {@link LineItem#name}
  • - *
  • {@link LineItem#orderId}
  • - *
  • {@link LineItem#startDateTime}
  • - *
  • {@link LineItem#unitsBought}
  • - *
  • {@link LineItem#creativePlaceholders}
  • - *
  • {@link LineItem#targeting}
  • - *
- * - * @param lineItem the line item to create - * @return the line item with its ID filled in - */ - public function createLineItem($lineItem) { - $args = new CreateLineItem($lineItem); - $result = $this->__soapCall("createLineItem", array($args)); - return $result->rval; - } - /** - * Creates new {@link LineItem} objects. - * - * @param lineItems the line items to create - * @return the created line items with their IDs filled in - */ - public function createLineItems($lineItems) { - $args = new CreateLineItems($lineItems); - $result = $this->__soapCall("createLineItems", array($args)); - return $result->rval; - } - /** - * Returns the {@link LineItem} uniquely identified by the given ID. - * - * @param lineItemId the ID of the line item, which must already exist - * @return the {@code LineItem} uniquely identified by the given ID - */ - public function getLineItem($lineItemId) { - $args = new GetLineItem($lineItemId); - $result = $this->__soapCall("getLineItem", array($args)); - return $result->rval; - } - /** - * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL propertyEntity property
CostType{@link LineItem#costType}
CreationDateTime{@link LineItem#creationDateTime}
DeliveryRateType{@link LineItem#deliveryRateType}
EndDateTime{@link LineItem#endDateTime}
ExternalId{@link LineItem#externalId}
Id{@link LineItem#id}
IsMissingCreatives{@link LineItem#isMissingCreatives}
LastModifiedDateTime{@link LineItem#lastModifiedDateTime}
LineItemType{@link LineItem#lineItemType}
Name{@link LineItem#name}
OrderId{@link LineItem#orderId}
StartDateTime{@link LineItem#startDateTime}
Status{@link LineItem#status}
UnitsBought{@link LineItem#unitsBought}
- * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items. - * @return the line items that match the given filter - */ - public function getLineItemsByStatement($filterStatement) { - $args = new GetLineItemsByStatement($filterStatement); - $result = $this->__soapCall("getLineItemsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link LineItem} objects that match the given - * {@link Statement#query}. - * - * @param lineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line items - * @return the result of the action performed - */ - public function performLineItemAction($lineItemAction, $filterStatement) { - $args = new PerformLineItemAction($lineItemAction, $filterStatement); - $result = $this->__soapCall("performLineItemAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItem}. - * - * @param lineItem the line item to update - * @return the updated line item - */ - public function updateLineItem($lineItem) { - $args = new UpdateLineItem($lineItem); - $result = $this->__soapCall("updateLineItem", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItem} objects. - * - * @param lineItems the line items to update - * @return the updated line items - */ - public function updateLineItems($lineItems) { - $args = new UpdateLineItems($lineItems); - $result = $this->__soapCall("updateLineItems", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php deleted file mode 100755 index 88178b484..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/LineItemTemplateService.php +++ /dev/null @@ -1,5317 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemTemplate", false)) { - /** - * Represents the template that populates the fields of a new line item being - * created. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemTemplate"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var boolean - */ - public $isDefault; - - /** - * @access public - * @var string - */ - public $lineItemName; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var boolean - */ - public $enabledForSameAdvertiserException; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var DateTime - */ - public $startTime; - - /** - * @access public - * @var DateTime - */ - public $endTime; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $isDefault = null, $lineItemName = null, $targetPlatform = null, $enabledForSameAdvertiserException = null, $notes = null, $lineItemType = null, $startTime = null, $endTime = null, $deliveryRateType = null, $roadblockingType = null, $creativeRotationType = null) { - $this->id = $id; - $this->name = $name; - $this->isDefault = $isDefault; - $this->lineItemName = $lineItemName; - $this->targetPlatform = $targetPlatform; - $this->enabledForSameAdvertiserException = $enabledForSameAdvertiserException; - $this->notes = $notes; - $this->lineItemType = $lineItemType; - $this->startTime = $startTime; - $this->endTime = $endTime; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->creativeRotationType = $creativeRotationType; - } - - } -} - -if (!class_exists("LineItemTemplatePage", false)) { - /** - * Captures a page of {@link LineItemTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemTemplatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemTemplatePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var LineItemTemplate[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetLineItemTemplatesByStatement", false)) { - /** - * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link LineItemTemplate#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item templates - * @return the line item templates that match the given filter - * @throws ApiException if a RuntimeException is thrown - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemTemplatesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetLineItemTemplatesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLineItemTemplatesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemTemplatePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("LineItemTemplateService", false)) { - /** - * LineItemTemplateService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemTemplateService extends DfpSoapClient { - - const SERVICE_NAME = "LineItemTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/LineItemTemplateService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/LineItemTemplateService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "CreativeError" => "CreativeError", - "CrossSellError" => "CrossSellError", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPartTargetingError" => "DayPartTargetingError", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "LineItemTemplate" => "LineItemTemplate", - "LineItemTemplatePage" => "LineItemTemplatePage", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeRotationType" => "CreativeRotationType", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryRateType" => "DeliveryRateType", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemType" => "LineItemType", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "getLineItemTemplatesByStatement" => "GetLineItemTemplatesByStatement", - "getLineItemTemplatesByStatementResponse" => "GetLineItemTemplatesByStatementResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link LineItemTemplatePage} of {@link LineItemTemplate} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link LineItemTemplate#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item templates - * @return the line item templates that match the given filter - * @throws ApiException if a RuntimeException is thrown - */ - public function getLineItemTemplatesByStatement($filterStatement) { - $args = new GetLineItemTemplatesByStatement($filterStatement); - $result = $this->__soapCall("getLineItemTemplatesByStatement", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/NetworkService.php b/src/Google/Api/Ads/Dfp/v201308/NetworkService.php deleted file mode 100755 index 10c989681..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/NetworkService.php +++ /dev/null @@ -1,2766 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Network", false)) { - /** - * {@code Network} represents a network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Network { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Network"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $propertyCode; - - /** - * @access public - * @var string - */ - public $timeZone; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var string[] - */ - public $secondaryCurrencyCodes; - - /** - * @access public - * @var string - */ - public $effectiveRootAdUnitId; - - /** - * @access public - * @var integer - */ - public $contentBrowseCustomTargetingKeyId; - - /** - * @access public - * @var boolean - */ - public $isTest; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $displayName = null, $networkCode = null, $propertyCode = null, $timeZone = null, $currencyCode = null, $secondaryCurrencyCodes = null, $effectiveRootAdUnitId = null, $contentBrowseCustomTargetingKeyId = null, $isTest = null) { - $this->id = $id; - $this->displayName = $displayName; - $this->networkCode = $networkCode; - $this->propertyCode = $propertyCode; - $this->timeZone = $timeZone; - $this->currencyCode = $currencyCode; - $this->secondaryCurrencyCodes = $secondaryCurrencyCodes; - $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; - $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; - $this->isTest = $isTest; - } - - } -} - -if (!class_exists("NetworkError", false)) { - /** - * An error for a network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NetworkError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NetworkError"; - - /** - * @access public - * @var tnsNetworkErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PrecisionError", false)) { - /** - * List all errors associated with number precisions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PrecisionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PrecisionError"; - - /** - * @access public - * @var tnsPrecisionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NetworkErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NetworkErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NetworkError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PrecisionErrorReason", false)) { - /** - * Describes reasons for precision errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PrecisionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PrecisionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetAllNetworks", false)) { - /** - * Returns the list of {@link Network} objects to which the current login has - * access. - *

- * Intended to be used without a network code in the SOAP header when the - * login may have more than one network associated with it. - *

- * - * @return the networks to which the current login has access - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAllNetworks { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetAllNetworksResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetAllNetworksResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCurrentNetwork", false)) { - /** - * Returns the current network for which requests are being made. - * - * @return the network for which the user is currently making the request - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCurrentNetwork { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetCurrentNetworkResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCurrentNetworkResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("MakeTestNetwork", false)) { - /** - * Creates a new blank network for testing purposes using the current login. - *

- * Each login(i.e. email address) can only have one test network. Data from - * any of your existing networks will not be transferred to the new test network. - * Once the test network is created, the test network can be used in the API - * by supplying the {@link Network#networkCode} in the SOAP header or by - * logging into the DFP UI. - *

- * Test networks are limited in the following ways: - *

    - *
  • Test networks cannot serve ads.
  • - *
  • Because test networks cannot serve ads, reports will always come - * back without data.
  • - *
  • Since forecasting requires serving history, forecast service results - * will be faked. See {@link ForecastService} for more info.
  • - *
  • Test networks are, by default, small business networks and do not have any - * premium features. To have additional features turned on, please contact your - * account manager.
  • - *
  • Test networks are limited to 10,000 objects per entity type.
  • - *
- *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MakeTestNetwork { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MakeTestNetworkResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MakeTestNetworkResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateNetwork", false)) { - /** - * Updates the specified network. Currently, only the network display name can - * be updated. - * - * @param network the network that needs to be updated - * @return the updated network - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateNetwork { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $network; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($network = null) { - $this->network = $network; - } - - } -} - -if (!class_exists("UpdateNetworkResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateNetworkResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("NetworkService", false)) { - /** - * NetworkService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NetworkService extends DfpSoapClient { - - const SERVICE_NAME = "NetworkService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/NetworkService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/NetworkService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "Network" => "Network", - "NetworkError" => "NetworkError", - "NotNullError" => "NotNullError", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PrecisionError" => "PrecisionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "NetworkError.Reason" => "NetworkErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PrecisionError.Reason" => "PrecisionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "getAllNetworks" => "GetAllNetworks", - "getAllNetworksResponse" => "GetAllNetworksResponse", - "getCurrentNetwork" => "GetCurrentNetwork", - "getCurrentNetworkResponse" => "GetCurrentNetworkResponse", - "makeTestNetwork" => "MakeTestNetwork", - "makeTestNetworkResponse" => "MakeTestNetworkResponse", - "updateNetwork" => "UpdateNetwork", - "updateNetworkResponse" => "UpdateNetworkResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the list of {@link Network} objects to which the current login has - * access. - *

- * Intended to be used without a network code in the SOAP header when the - * login may have more than one network associated with it. - *

- * - * @return the networks to which the current login has access - */ - public function getAllNetworks() { - $args = new GetAllNetworks(); - $result = $this->__soapCall("getAllNetworks", array($args)); - return $result->rval; - } - /** - * Returns the current network for which requests are being made. - * - * @return the network for which the user is currently making the request - */ - public function getCurrentNetwork() { - $args = new GetCurrentNetwork(); - $result = $this->__soapCall("getCurrentNetwork", array($args)); - return $result->rval; - } - /** - * Creates a new blank network for testing purposes using the current login. - *

- * Each login(i.e. email address) can only have one test network. Data from - * any of your existing networks will not be transferred to the new test network. - * Once the test network is created, the test network can be used in the API - * by supplying the {@link Network#networkCode} in the SOAP header or by - * logging into the DFP UI. - *

- * Test networks are limited in the following ways: - *

    - *
  • Test networks cannot serve ads.
  • - *
  • Because test networks cannot serve ads, reports will always come - * back without data.
  • - *
  • Since forecasting requires serving history, forecast service results - * will be faked. See {@link ForecastService} for more info.
  • - *
  • Test networks are, by default, small business networks and do not have any - * premium features. To have additional features turned on, please contact your - * account manager.
  • - *
  • Test networks are limited to 10,000 objects per entity type.
  • - *
- *

- */ - public function makeTestNetwork() { - $args = new MakeTestNetwork(); - $result = $this->__soapCall("makeTestNetwork", array($args)); - return $result->rval; - } - /** - * Updates the specified network. Currently, only the network display name can - * be updated. - * - * @param network the network that needs to be updated - * @return the updated network - */ - public function updateNetwork($network) { - $args = new UpdateNetwork($network); - $result = $this->__soapCall("updateNetwork", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/OrderService.php b/src/Google/Api/Ads/Dfp/v201308/OrderService.php deleted file mode 100755 index fe96320bc..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/OrderService.php +++ /dev/null @@ -1,7193 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("ClickTrackingLineItemError", false)) { - /** - * Click tracking is a special line item type with a number of unique errors as - * described below. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError"; - - /** - * @access public - * @var tnsClickTrackingLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DateTimeRangeTargetingError", false)) { - /** - * Lists all date time range errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError"; - - /** - * @access public - * @var tnsDateTimeRangeTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderAction", false)) { - /** - * Represents the actions that can be performed on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderAction"; - - /** - * @access public - * @var string - */ - public $OrderActionType; - private $_parameterMap = array( - "OrderAction.Type" => "OrderActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("OrderActionError", false)) { - /** - * Lists all errors associated with performing actions on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderActionError"; - - /** - * @access public - * @var tnsOrderActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Order", false)) { - /** - * An {@code Order} represents a grouping of individual {@link LineItem} - * objects, each of which fulfill an ad request from a particular advertiser. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Order { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Order"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var boolean - */ - public $unlimitedEndDateTime; - - /** - * @access public - * @var tnsOrderStatus - */ - public $status; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var integer - */ - public $externalOrderId; - - /** - * @access public - * @var string - */ - public $poNumber; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $advertiserId; - - /** - * @access public - * @var integer[] - */ - public $advertiserContactIds; - - /** - * @access public - * @var integer - */ - public $agencyId; - - /** - * @access public - * @var integer[] - */ - public $agencyContactIds; - - /** - * @access public - * @var integer - */ - public $creatorId; - - /** - * @access public - * @var integer - */ - public $traffickerId; - - /** - * @access public - * @var integer[] - */ - public $secondaryTraffickerIds; - - /** - * @access public - * @var integer - */ - public $salespersonId; - - /** - * @access public - * @var integer[] - */ - public $secondarySalespersonIds; - - /** - * @access public - * @var integer - */ - public $totalImpressionsDelivered; - - /** - * @access public - * @var integer - */ - public $totalClicksDelivered; - - /** - * @access public - * @var Money - */ - public $totalBudget; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var string - */ - public $lastModifiedByApp; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $startDateTime = null, $endDateTime = null, $unlimitedEndDateTime = null, $status = null, $isArchived = null, $notes = null, $externalOrderId = null, $poNumber = null, $currencyCode = null, $advertiserId = null, $advertiserContactIds = null, $agencyId = null, $agencyContactIds = null, $creatorId = null, $traffickerId = null, $secondaryTraffickerIds = null, $salespersonId = null, $secondarySalespersonIds = null, $totalImpressionsDelivered = null, $totalClicksDelivered = null, $totalBudget = null, $appliedLabels = null, $effectiveAppliedLabels = null, $lastModifiedByApp = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $customFieldValues = null) { - $this->id = $id; - $this->name = $name; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->status = $status; - $this->isArchived = $isArchived; - $this->notes = $notes; - $this->externalOrderId = $externalOrderId; - $this->poNumber = $poNumber; - $this->currencyCode = $currencyCode; - $this->advertiserId = $advertiserId; - $this->advertiserContactIds = $advertiserContactIds; - $this->agencyId = $agencyId; - $this->agencyContactIds = $agencyContactIds; - $this->creatorId = $creatorId; - $this->traffickerId = $traffickerId; - $this->secondaryTraffickerIds = $secondaryTraffickerIds; - $this->salespersonId = $salespersonId; - $this->secondarySalespersonIds = $secondarySalespersonIds; - $this->totalImpressionsDelivered = $totalImpressionsDelivered; - $this->totalClicksDelivered = $totalClicksDelivered; - $this->totalBudget = $totalBudget; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->lastModifiedByApp = $lastModifiedByApp; - $this->appliedTeamIds = $appliedTeamIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("OrderPage", false)) { - /** - * Captures a page of {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Order[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PauseOrders", false)) { - /** - * The action used for pausing {@link Order} objects. All {@link LineItem} - * objects within the order will be paused as well. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PauseOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PauseOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ResumeOrders", false)) { - /** - * The action used for resuming {@link Order} objects. {@link LineItem} objects within - * the order that are eligble to resume will resume as well. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ResumeOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ResumeOrders"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("RetractOrders", false)) { - /** - * The action used for retracting {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RetractOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RetractOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("RetractOrdersWithoutReservationChanges", false)) { - /** - * The action used for retracting {@link Order} objects. This action does not - * make any changes to the {@link LineItem#reservationStatus} of the line items - * within the order. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RetractOrdersWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RetractOrdersWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SubmitOrdersForApproval", false)) { - /** - * The action used for submitting {@link Order} objects for approval. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SubmitOrdersForApproval extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SubmitOrdersForApproval"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("SubmitOrdersForApprovalAndOverbook", false)) { - /** - * The action used for submitting and overbooking {@link Order} objects for approval. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SubmitOrdersForApprovalAndOverbook"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("SubmitOrdersForApprovalWithoutReservationChanges", false)) { - /** - * The action used for submitting {@link Order} objects for approval. This - * action does not make any changes to the {@link LineItem#reservationStatus} - * of the line items within the order. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SubmitOrdersForApprovalWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeError", false)) { - /** - * Lists all errors associated with template instantiated creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; - - /** - * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnarchiveOrders", false)) { - /** - * The action used for unarchiving {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnarchiveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnarchiveOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClickTrackingLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for date time range targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeRangeTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderStatus", false)) { - /** - * Describes the order statuses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { - /** - * The reason for the error - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TemplateInstantiatedCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateOrder", false)) { - /** - * Creates a new {@link Order}. - * - * The following fields are required: - *
    - *
  • {@link Order#advertiserId}
  • - *
  • {@link Order#name}
  • - *
  • {@link Order#traffickerId}
  • - *
- * - * @param order the order to create - * @return the order with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $order; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($order = null) { - $this->order = $order; - } - - } -} - -if (!class_exists("CreateOrderResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateOrders", false)) { - /** - * Creates new {@link Order} objects. - * - * @param orders the orders to create - * @return the created orders with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $orders; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orders = null) { - $this->orders = $orders; - } - - } -} - -if (!class_exists("CreateOrdersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateOrdersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetOrder", false)) { - /** - * Returns the {@link Order} uniquely identified by the given ID. - * - * @param orderId the ID of the order, which must already exist - * @return the {@code Order} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderId = null) { - $this->orderId = $orderId; - } - - } -} - -if (!class_exists("GetOrderResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetOrdersByStatement", false)) { - /** - * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code advertiserId}{@link Order#advertiserId}
{@code endDateTime}{@link Order#endDateTime}
{@code id}{@link Order#id}
{@code name}{@link Order#name}
{@code salespersonId}{@link Order#salespersonId}
{@code startDateTime}{@link Order#startDateTime}
{@code status}{@link Order#status}
{@code traffickerId}{@link Order#traffickerId}
{@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the orders that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetOrdersByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetOrdersByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetOrdersByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var OrderPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformOrderAction", false)) { - /** - * Performs actions on {@link Order} objects that match the given - * {@link Statement#query}. - * - * @param orderAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformOrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var OrderAction - */ - public $orderAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderAction = null, $filterStatement = null) { - $this->orderAction = $orderAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformOrderActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformOrderActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateOrder", false)) { - /** - * Updates the specified {@link Order}. - * - * @param order the order to update - * @return the updated order - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $order; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($order = null) { - $this->order = $order; - } - - } -} - -if (!class_exists("UpdateOrderResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateOrders", false)) { - /** - * Updates the specified {@link Order} objects. - * - * @param orders the orders to update - * @return the updated orders - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $orders; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orders = null) { - $this->orders = $orders; - } - - } -} - -if (!class_exists("UpdateOrdersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateOrdersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ApproveOrders", false)) { - /** - * The action used for approving {@link Order} objects. All {@link LineItem} - * objects within the order will be approved as well. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApproveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApproveOrders"; - - /** - * @access public - * @var boolean - */ - public $skipInventoryCheck; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("ApproveOrdersWithoutReservationChanges", false)) { - /** - * The action used for approving {@link Order} objects. All {@link LineItem} - * objects within the order will be approved as well. This action does not - * make any changes to the {@link LineItem#reservationStatus} of the line - * items within the order. If there are reservable line items that have not - * been reserved the operation will not succeed. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApproveOrdersWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApproveOrdersWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("ArchiveOrders", false)) { - /** - * The action used for archiving {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ArchiveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ArchiveOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeleteOrders", false)) { - /** - * The action used for deleting {@link Order} objects. All line items within - * that order are also deleted. Orders can only be deleted if none of its line - * items have been eligible to serve. This action can be used to delete - * proposed orders and line items if they are no longer valid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeleteOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeleteOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("DisapproveOrders", false)) { - /** - * The action used for disapproving {@link Order} objects. All {@link LineItem} - * objects within the order will be disapproved as well. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DisapproveOrders extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DisapproveOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("DisapproveOrdersWithoutReservationChanges", false)) { - /** - * The action used for disapproving {@link Order} objects. All {@link LineItem} - * objects within the order will be disapproved as well. This action does not - * make any changes to the {@link LineItem#reservationStatus} of the line items - * within the order. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DisapproveOrdersWithoutReservationChanges extends OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DisapproveOrdersWithoutReservationChanges"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - parent::__construct(); - $this->OrderActionType = $OrderActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ResumeAndOverbookOrders", false)) { - /** - * The action used for resuming and overbooking {@link Order} objects. - * All {@link LineItem} objects within the order will resume as well. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ResumeAndOverbookOrders extends ResumeOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ResumeAndOverbookOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApproveAndOverbookOrders", false)) { - /** - * The action used for approving and overbooking {@link Order} objects. - * All {@link LineItem} objects within the order will be approved as well. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApproveAndOverbookOrders extends ApproveOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApproveAndOverbookOrders"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($skipInventoryCheck = null) { - parent::__construct(); - $this->skipInventoryCheck = $skipInventoryCheck; - } - - } -} - -if (!class_exists("OrderService", false)) { - /** - * OrderService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderService extends DfpSoapClient { - - const SERVICE_NAME = "OrderService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/OrderService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/OrderService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", - "ApproveOrders" => "ApproveOrders", - "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", - "ArchiveOrders" => "ArchiveOrders", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "CreativeError" => "CreativeError", - "CrossSellError" => "CrossSellError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPartTargetingError" => "DayPartTargetingError", - "DeleteOrders" => "DeleteOrders", - "DisapproveOrders" => "DisapproveOrders", - "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItemError" => "LineItemError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OrderAction" => "OrderAction", - "OrderActionError" => "OrderActionError", - "Order" => "Order", - "OrderError" => "OrderError", - "OrderPage" => "OrderPage", - "ParseError" => "ParseError", - "PauseOrders" => "PauseOrders", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", - "ResumeOrders" => "ResumeOrders", - "RetractOrders" => "RetractOrders", - "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SubmitOrdersForApproval" => "SubmitOrdersForApproval", - "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", - "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", - "TeamError" => "TeamError", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UnarchiveOrders" => "UnarchiveOrders", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CrossSellError.Reason" => "CrossSellErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemError.Reason" => "LineItemErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderActionError.Reason" => "OrderActionErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "OrderStatus" => "OrderStatus", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "createOrder" => "CreateOrder", - "createOrderResponse" => "CreateOrderResponse", - "createOrders" => "CreateOrders", - "createOrdersResponse" => "CreateOrdersResponse", - "getOrder" => "GetOrder", - "getOrderResponse" => "GetOrderResponse", - "getOrdersByStatement" => "GetOrdersByStatement", - "getOrdersByStatementResponse" => "GetOrdersByStatementResponse", - "performOrderAction" => "PerformOrderAction", - "performOrderActionResponse" => "PerformOrderActionResponse", - "updateOrder" => "UpdateOrder", - "updateOrderResponse" => "UpdateOrderResponse", - "updateOrders" => "UpdateOrders", - "updateOrdersResponse" => "UpdateOrdersResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Order}. - * - * The following fields are required: - *
    - *
  • {@link Order#advertiserId}
  • - *
  • {@link Order#name}
  • - *
  • {@link Order#traffickerId}
  • - *
- * - * @param order the order to create - * @return the order with its ID filled in - */ - public function createOrder($order) { - $args = new CreateOrder($order); - $result = $this->__soapCall("createOrder", array($args)); - return $result->rval; - } - /** - * Creates new {@link Order} objects. - * - * @param orders the orders to create - * @return the created orders with their IDs filled in - */ - public function createOrders($orders) { - $args = new CreateOrders($orders); - $result = $this->__soapCall("createOrders", array($args)); - return $result->rval; - } - /** - * Returns the {@link Order} uniquely identified by the given ID. - * - * @param orderId the ID of the order, which must already exist - * @return the {@code Order} uniquely identified by the given ID - */ - public function getOrder($orderId) { - $args = new GetOrder($orderId); - $result = $this->__soapCall("getOrder", array($args)); - return $result->rval; - } - /** - * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code advertiserId}{@link Order#advertiserId}
{@code endDateTime}{@link Order#endDateTime}
{@code id}{@link Order#id}
{@code name}{@link Order#name}
{@code salespersonId}{@link Order#salespersonId}
{@code startDateTime}{@link Order#startDateTime}
{@code status}{@link Order#status}
{@code traffickerId}{@link Order#traffickerId}
{@code lastModifiedDateTime}{@link Order#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the orders that match the given filter - */ - public function getOrdersByStatement($filterStatement) { - $args = new GetOrdersByStatement($filterStatement); - $result = $this->__soapCall("getOrdersByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link Order} objects that match the given - * {@link Statement#query}. - * - * @param orderAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of orders - * @return the result of the action performed - */ - public function performOrderAction($orderAction, $filterStatement) { - $args = new PerformOrderAction($orderAction, $filterStatement); - $result = $this->__soapCall("performOrderAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Order}. - * - * @param order the order to update - * @return the updated order - */ - public function updateOrder($order) { - $args = new UpdateOrder($order); - $result = $this->__soapCall("updateOrder", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Order} objects. - * - * @param orders the orders to update - * @return the updated orders - */ - public function updateOrders($orders) { - $args = new UpdateOrders($orders); - $result = $this->__soapCall("updateOrders", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php deleted file mode 100755 index facfd17bb..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/ProductTemplateService.php +++ /dev/null @@ -1,6967 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BaseRateError", false)) { - /** - * An error having to do with {@link BaseRate}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseRateError"; - - /** - * @access public - * @var tnsBaseRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementTargeting", false)) { - /** - * Specifies what {@link Placement placements} are targeted. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PlacementTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PlacementTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPlacementIds = null) { - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("ProductTemplateAction", false)) { - /** - * Represents the actions that can be performed on product templates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplateAction"; - - /** - * @access public - * @var string - */ - public $ProductTemplateActionType; - private $_parameterMap = array( - "ProductTemplateAction.Type" => "ProductTemplateActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("ProductTemplateActionError", false)) { - /** - * An error lists all error reasons associated with performing action on - * {@link ProductTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplateActionError"; - - /** - * @access public - * @var tnsProductTemplateActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductTemplate", false)) { - /** - * {@code ProductTemplate} is used to generate products. All generated products will - * inherit all attributes from their {@code ProductTemplate}, except for segmentation, - * which will be included in the {@link Product#targeting}. The generated products in turn will be - * used to create {@link ProposalLineItem proposal line items} so that almost all attributes - * in the product template are properties of the proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplate"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $creationDateTime; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var string - */ - public $nameMacro; - - /** - * @access public - * @var tnsProductTemplateStatus - */ - public $status; - - /** - * @access public - * @var tnsProductType - */ - public $productType; - - /** - * @access public - * @var integer - */ - public $creatorId; - - /** - * @access public - * @var tnsRateType - */ - public $rateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var boolean - */ - public $allowFrequencyCapsCustomization; - - /** - * @access public - * @var ProductSegmentation - */ - public $productSegmentation; - - /** - * @access public - * @var ProductTemplateTargeting - */ - public $targeting; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $creationDateTime = null, $lastModifiedDateTime = null, $description = null, $nameMacro = null, $status = null, $productType = null, $creatorId = null, $rateType = null, $roadblockingType = null, $creativePlaceholders = null, $lineItemType = null, $priority = null, $frequencyCaps = null, $allowFrequencyCapsCustomization = null, $productSegmentation = null, $targeting = null, $customFieldValues = null) { - $this->id = $id; - $this->name = $name; - $this->creationDateTime = $creationDateTime; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->description = $description; - $this->nameMacro = $nameMacro; - $this->status = $status; - $this->productType = $productType; - $this->creatorId = $creatorId; - $this->rateType = $rateType; - $this->roadblockingType = $roadblockingType; - $this->creativePlaceholders = $creativePlaceholders; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->frequencyCaps = $frequencyCaps; - $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; - $this->productSegmentation = $productSegmentation; - $this->targeting = $targeting; - $this->customFieldValues = $customFieldValues; - } - - } -} - -if (!class_exists("ProductTemplateError", false)) { - /** - * A catch-all error that lists all generic errors associated with ProductTemplate. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplateError"; - - /** - * @access public - * @var tnsProductTemplateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductTemplatePage", false)) { - /** - * Captures a page of {@link ProductTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplatePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ProductTemplate[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ProductSegmentation", false)) { - /** - * Segmentations used to create products. Within a product template, for each segmentation, - * a product will be created for the combination of all other segments within other segmentations. - *

- * For example, a product with 3 segmentations with only 1 segment for each will produce - * {@code 1 x 1 x 1 = 1} product. - * A product with 3 segmentations with 2 segments for each will produce {@code 2 x 2 x 2 = 8} - * products. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductSegmentation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductSegmentation"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoSegment; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $adUnitSegments; - - /** - * @access public - * @var PlacementTargeting - */ - public $placementSegment; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainSegment; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthSegment; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserSegment; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageSegment; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemSegment; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoSegment = null, $adUnitSegments = null, $placementSegment = null, $userDomainSegment = null, $bandwidthSegment = null, $browserSegment = null, $browserLanguageSegment = null, $operatingSystemSegment = null) { - $this->geoSegment = $geoSegment; - $this->adUnitSegments = $adUnitSegments; - $this->placementSegment = $placementSegment; - $this->userDomainSegment = $userDomainSegment; - $this->bandwidthSegment = $bandwidthSegment; - $this->browserSegment = $browserSegment; - $this->browserLanguageSegment = $browserLanguageSegment; - $this->operatingSystemSegment = $operatingSystemSegment; - } - - } -} - -if (!class_exists("ProductTemplateTargeting", false)) { - /** - * Contains targeting criteria for {@link ProductTemplate} objects. - * {@link ProposalLineItem Proposal line items} created from {@link Product products} - * of this template will have this criteria added to {@link ProposalLineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplateTargeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var boolean - */ - public $allowGeoTargetingCustomization; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var boolean - */ - public $allowAdUnitTargetingCustomization; - - /** - * @access public - * @var boolean - */ - public $allowPlacementTargetingCustomization; - - /** - * @access public - * @var integer[] - */ - public $customizableCustomTargetingKeyIds; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var boolean - */ - public $allowUserDomainTargetingCustomization; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBandwidthGroupTargetingCustomization; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserTargetingCustomization; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserLanguageTargetingCustomization; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var boolean - */ - public $allowOperatingSystemTargetingCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customizableCustomTargetingKeyIds = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null) { - $this->geoTargeting = $geoTargeting; - $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; - $this->inventoryTargeting = $inventoryTargeting; - $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; - $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; - $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; - $this->userDomainTargeting = $userDomainTargeting; - $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; - $this->browserTargeting = $browserTargeting; - $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductTemplateActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplateActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductTemplateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductTemplateStatus", false)) { - /** - * Describes the different statuses for ProductTemplate. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductTemplateStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductType", false)) { - /** - * Describes the type of {@link Product}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateType", false)) { - /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateProductTemplate", false)) { - /** - * Creates a new {@link ProductTemplate}. - * - * The following fields are required: - *
    - *
  • {@link ProductTemplate#name}
  • - *
  • {@link ProductTemplate#nameMacro}
  • - *
  • {@link ProductTemplate#productType}
  • - *
  • {@link ProductTemplate#rateType}
  • - *
  • {@link ProductTemplate#creativePlaceholders} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#lineItemType} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is - * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} - * is not specified)
  • - *
- * - * @param productTemplate the product template to create - * @return the persisted product template with tis ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $productTemplate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplate = null) { - $this->productTemplate = $productTemplate; - } - - } -} - -if (!class_exists("CreateProductTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProductTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateProductTemplates", false)) { - /** - * Creates new {@link ProductTemplate} objects. - * - * @param productTemplates the productTemplates to create - * @return the persisted product templates with their Ids filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProductTemplates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $productTemplates; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplates = null) { - $this->productTemplates = $productTemplates; - } - - } -} - -if (!class_exists("CreateProductTemplatesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProductTemplatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProductTemplate", false)) { - /** - * Returns the {@link ProductTemplate} uniquely identified by the given ID. - * - * @param productTemplateId the ID of the product template, which must already - * exist - * @return the {@code ProductTemplate} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $productTemplateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplateId = null) { - $this->productTemplateId = $productTemplateId; - } - - } -} - -if (!class_exists("GetProductTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProductTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProductTemplatesByStatement", false)) { - /** - * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects - * that satisfy the filtering criteria specified by given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProductTemplate#id}
{@code name}{@link ProductTemplate#name}
{@code nameMacro}{@link ProductTemplate#nameMacro}
{@code description}{@link ProductTemplate#description}
{@code status}{@link ProductTemplate#status}
{@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
{@code lineItemType}{@link LineItemType}
{@code productType}{@link ProductType}
{@code rateType}{@link RateType}
- * - * @param statement a Publisher Query Language statement which specifies the - * filtering criteria over productTemplates - * @return the productTemplates that match the given statement - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProductTemplatesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetProductTemplatesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProductTemplatesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplatePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProductTemplateAction", false)) { - /** - * Performs action on {@link ProductTemplate} objects that satisfy the given - * {@link Statement#query}. - * - * @param action the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of product templates - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplateAction - */ - public $action; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($action = null, $filterStatement = null) { - $this->action = $action; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProductTemplateActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformProductTemplateActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProductTemplate", false)) { - /** - * Updates the specified {@link ProductTemplate}. - * - * @param productTemplate the product template to update - * @return the updated product template - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $productTemplate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplate = null) { - $this->productTemplate = $productTemplate; - } - - } -} - -if (!class_exists("UpdateProductTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProductTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProductTemplates", false)) { - /** - * Updates the specified {@link ProductTemplate} objects. - * - * @param productTemplates the product templates to update - * @return the updated product templates - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProductTemplates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $productTemplates; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplates = null) { - $this->productTemplates = $productTemplates; - } - - } -} - -if (!class_exists("UpdateProductTemplatesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProductTemplatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateProductTemplates", false)) { - /** - * The action used for activating product templates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivateProductTemplates extends ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateProductTemplates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveProducTemplates", false)) { - /** - * The action used for archiving product template. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ArchiveProducTemplates extends ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ArchiveProducTemplates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateProductTemplates", false)) { - /** - * The action used for deactivating product templates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeactivateProductTemplates extends ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeactivateProductTemplates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ProductTemplateService", false)) { - /** - * ProductTemplateService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductTemplateService extends DfpSoapClient { - - const SERVICE_NAME = "ProductTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ProductTemplateService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ProductTemplateService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateProductTemplates" => "ActivateProductTemplates", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveProducTemplates" => "ArchiveProducTemplates", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BaseRateError" => "BaseRateError", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CountryLocation" => "CountryLocation", - "CreativePlaceholder" => "CreativePlaceholder", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateProductTemplates" => "DeactivateProductTemplates", - "DeviceCapability" => "DeviceCapability", - "DeviceCategory" => "DeviceCategory", - "DeviceManufacturer" => "DeviceManufacturer", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "PermissionError" => "PermissionError", - "PlacementTargeting" => "PlacementTargeting", - "PostalCodeLocation" => "PostalCodeLocation", - "ProductTemplateAction" => "ProductTemplateAction", - "ProductTemplateActionError" => "ProductTemplateActionError", - "ProductTemplate" => "ProductTemplate", - "ProductTemplateError" => "ProductTemplateError", - "ProductTemplatePage" => "ProductTemplatePage", - "ProductSegmentation" => "ProductSegmentation", - "ProductTemplateTargeting" => "ProductTemplateTargeting", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Technology" => "Technology", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeSizeType" => "CreativeSizeType", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LineItemType" => "LineItemType", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "ProductTemplateActionError.Reason" => "ProductTemplateActionErrorReason", - "ProductTemplateError.Reason" => "ProductTemplateErrorReason", - "ProductTemplateStatus" => "ProductTemplateStatus", - "ProductType" => "ProductType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateType" => "RateType", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TimeUnit" => "TimeUnit", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "createProductTemplate" => "CreateProductTemplate", - "createProductTemplateResponse" => "CreateProductTemplateResponse", - "createProductTemplates" => "CreateProductTemplates", - "createProductTemplatesResponse" => "CreateProductTemplatesResponse", - "getProductTemplate" => "GetProductTemplate", - "getProductTemplateResponse" => "GetProductTemplateResponse", - "getProductTemplatesByStatement" => "GetProductTemplatesByStatement", - "getProductTemplatesByStatementResponse" => "GetProductTemplatesByStatementResponse", - "performProductTemplateAction" => "PerformProductTemplateAction", - "performProductTemplateActionResponse" => "PerformProductTemplateActionResponse", - "updateProductTemplate" => "UpdateProductTemplate", - "updateProductTemplateResponse" => "UpdateProductTemplateResponse", - "updateProductTemplates" => "UpdateProductTemplates", - "updateProductTemplatesResponse" => "UpdateProductTemplatesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ProductTemplate}. - * - * The following fields are required: - *
    - *
  • {@link ProductTemplate#name}
  • - *
  • {@link ProductTemplate#nameMacro}
  • - *
  • {@link ProductTemplate#productType}
  • - *
  • {@link ProductTemplate#rateType}
  • - *
  • {@link ProductTemplate#creativePlaceholders} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#lineItemType} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is - * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} - * is not specified)
  • - *
- * - * @param productTemplate the product template to create - * @return the persisted product template with tis ID filled in - */ - public function createProductTemplate($productTemplate) { - $args = new CreateProductTemplate($productTemplate); - $result = $this->__soapCall("createProductTemplate", array($args)); - return $result->rval; - } - /** - * Creates new {@link ProductTemplate} objects. - * - * @param productTemplates the productTemplates to create - * @return the persisted product templates with their Ids filled in - */ - public function createProductTemplates($productTemplates) { - $args = new CreateProductTemplates($productTemplates); - $result = $this->__soapCall("createProductTemplates", array($args)); - return $result->rval; - } - /** - * Returns the {@link ProductTemplate} uniquely identified by the given ID. - * - * @param productTemplateId the ID of the product template, which must already - * exist - * @return the {@code ProductTemplate} uniquely identified by the given ID - */ - public function getProductTemplate($productTemplateId) { - $args = new GetProductTemplate($productTemplateId); - $result = $this->__soapCall("getProductTemplate", array($args)); - return $result->rval; - } - /** - * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects - * that satisfy the filtering criteria specified by given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProductTemplate#id}
{@code name}{@link ProductTemplate#name}
{@code nameMacro}{@link ProductTemplate#nameMacro}
{@code description}{@link ProductTemplate#description}
{@code status}{@link ProductTemplate#status}
{@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
{@code lineItemType}{@link LineItemType}
{@code productType}{@link ProductType}
{@code rateType}{@link RateType}
- * - * @param statement a Publisher Query Language statement which specifies the - * filtering criteria over productTemplates - * @return the productTemplates that match the given statement - */ - public function getProductTemplatesByStatement($statement) { - $args = new GetProductTemplatesByStatement($statement); - $result = $this->__soapCall("getProductTemplatesByStatement", array($args)); - return $result->rval; - } - /** - * Performs action on {@link ProductTemplate} objects that satisfy the given - * {@link Statement#query}. - * - * @param action the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of product templates - * @return the result of the action performed - */ - public function performProductTemplateAction($action, $filterStatement) { - $args = new PerformProductTemplateAction($action, $filterStatement); - $result = $this->__soapCall("performProductTemplateAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProductTemplate}. - * - * @param productTemplate the product template to update - * @return the updated product template - */ - public function updateProductTemplate($productTemplate) { - $args = new UpdateProductTemplate($productTemplate); - $result = $this->__soapCall("updateProductTemplate", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProductTemplate} objects. - * - * @param productTemplates the product templates to update - * @return the updated product templates - */ - public function updateProductTemplates($productTemplates) { - $args = new UpdateProductTemplates($productTemplates); - $result = $this->__soapCall("updateProductTemplates", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php deleted file mode 100755 index 9cb44934e..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/ProposalLineItemService.php +++ /dev/null @@ -1,9127 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TechnologyTargeting", false)) { - /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargeting"; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var DeviceCapabilityTargeting - */ - public $deviceCapabilityTargeting; - - /** - * @access public - * @var DeviceCategoryTargeting - */ - public $deviceCategoryTargeting; - - /** - * @access public - * @var DeviceManufacturerTargeting - */ - public $deviceManufacturerTargeting; - - /** - * @access public - * @var MobileCarrierTargeting - */ - public $mobileCarrierTargeting; - - /** - * @access public - * @var MobileDeviceTargeting - */ - public $mobileDeviceTargeting; - - /** - * @access public - * @var MobileDeviceSubmodelTargeting - */ - public $mobileDeviceSubmodelTargeting; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var OperatingSystemVersionTargeting - */ - public $operatingSystemVersionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BillingError", false)) { - /** - * Lists all errors associated with the billing settings of a proposal or proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingError"; - - /** - * @access public - * @var tnsBillingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentTargeting", false)) { - /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; - - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; - - /** - * @access public - * @var integer[] - */ - public $excludedVideoCategoryIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DayPart", false)) { - /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; - - /** - * @access public - * @var TimeOfDay - */ - public $startTime; - - /** - * @access public - * @var TimeOfDay - */ - public $endTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; - } - - } -} - -if (!class_exists("DayPartTargeting", false)) { - /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargeting"; - - /** - * @access public - * @var DayPart[] - */ - public $dayParts; - - /** - * @access public - * @var tnsDeliveryTimeZone - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("DayPartTargetingError", false)) { - /** - * Lists all errors associated with day-part targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError"; - - /** - * @access public - * @var tnsDayPartTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DeliveryData", false)) { - /** - * Holds the number of clicks or impressions, determined by - * {@link LineItem#costType}, delivered for a single line item for the - * last 7 days - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryData { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryData"; - - /** - * @access public - * @var integer[] - */ - public $units; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($units = null) { - $this->units = $units; - } - - } -} - -if (!class_exists("DeliveryIndicator", false)) { - /** - * Indicates the delivery performance of the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryIndicator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryIndicator"; - - /** - * @access public - * @var double - */ - public $expectedDeliveryPercentage; - - /** - * @access public - * @var double - */ - public $actualDeliveryPercentage; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { - $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; - $this->actualDeliveryPercentage = $actualDeliveryPercentage; - } - - } -} - -if (!class_exists("DeviceCapabilityTargeting", false)) { - /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapabilityTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCapabilities; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; - } - - } -} - -if (!class_exists("DeviceCategoryTargeting", false)) { - /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; - - /** - * @access public - * @var Technology[] - */ - public $excludedDeviceCategories; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; - } - - } -} - -if (!class_exists("DeviceManufacturerTargeting", false)) { - /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturerTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturerTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $deviceManufacturers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MetroLocation", false)) { - /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MetroLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MetroLocation"; - - /** - * @access public - * @var string - */ - public $metroCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("MobileCarrierTargeting", false)) { - /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrierTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $mobileCarriers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; - } - - } -} - -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDeviceSubmodels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; - } - - } -} - -if (!class_exists("MobileDeviceTargeting", false)) { - /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; - - /** - * @access public - * @var Technology[] - */ - public $excludedMobileDevices; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; - - /** - * @access public - * @var Technology[] - */ - public $excludedOperatingSystemVersions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("PrecisionError", false)) { - /** - * List all errors associated with number precisions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PrecisionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PrecisionError"; - - /** - * @access public - * @var tnsPrecisionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalError", false)) { - /** - * Lists all errors associated with proposals. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalError"; - - /** - * @access public - * @var tnsProposalErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItemAction", false)) { - /** - * Represents the actions that can be performed on {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemAction"; - - /** - * @access public - * @var string - */ - public $ProposalLineItemActionType; - private $_parameterMap = array( - "ProposalLineItemAction.Type" => "ProposalLineItemActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalLineItemActionType = null) { - $this->ProposalLineItemActionType = $ProposalLineItemActionType; - } - - } -} - -if (!class_exists("ProposalLineItemActionError", false)) { - /** - * Lists all errors for executing operations on proposal line items. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemActionError"; - - /** - * @access public - * @var tnsProposalLineItemActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItem", false)) { - /** - * A {@code ProposalLineItem} is an instance of sales {@link Product}. It belongs to - * a {@link Proposal} and is created according to a {@link Product} and - * {@link RateCard}. When the proposal is turned into an {@link Order}, this object is - * turned into a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItem"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $proposalId; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * @access public - * @var integer - */ - public $productId; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var tnsCostAdjustment - */ - public $costAdjustment; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var integer - */ - public $unitsBought; - - /** - * @access public - * @var integer - */ - public $unitsBoughtBuffer; - - /** - * @access public - * @var tnsDeliveryRateType - */ - public $deliveryRateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var tnsCompanionDeliveryOption - */ - public $companionDeliveryOption; - - /** - * @access public - * @var tnsCreativeRotationType - */ - public $creativeRotationType; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $lineItemPriority; - - /** - * @access public - * @var tnsCostType - */ - public $costType; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var Targeting - */ - public $targeting; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var ProposalLineItemPremium[] - */ - public $premiums; - - /** - * @access public - * @var Money - */ - public $baseRate; - - /** - * @access public - * @var Money - */ - public $costPerUnit; - - /** - * @access public - * @var Money - */ - public $cost; - - /** - * @access public - * @var DeliveryIndicator - */ - public $deliveryIndicator; - - /** - * @access public - * @var DeliveryData - */ - public $deliveryData; - - /** - * @access public - * @var tnsComputedStatus - */ - public $computedStatus; - - /** - * @access public - * @var tnsBillingCap - */ - public $billingCap; - - /** - * @access public - * @var tnsBillingSchedule - */ - public $billingSchedule; - - /** - * @access public - * @var tnsBillingSource - */ - public $billingSource; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $proposalId = null, $rateCardId = null, $productId = null, $name = null, $startDateTime = null, $endDateTime = null, $notes = null, $costAdjustment = null, $isArchived = null, $unitsBought = null, $unitsBoughtBuffer = null, $deliveryRateType = null, $roadblockingType = null, $companionDeliveryOption = null, $creativeRotationType = null, $frequencyCaps = null, $lineItemType = null, $lineItemPriority = null, $costType = null, $creativePlaceholders = null, $targeting = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $premiums = null, $baseRate = null, $costPerUnit = null, $cost = null, $deliveryIndicator = null, $deliveryData = null, $computedStatus = null, $billingCap = null, $billingSchedule = null, $billingSource = null) { - $this->id = $id; - $this->proposalId = $proposalId; - $this->rateCardId = $rateCardId; - $this->productId = $productId; - $this->name = $name; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->notes = $notes; - $this->costAdjustment = $costAdjustment; - $this->isArchived = $isArchived; - $this->unitsBought = $unitsBought; - $this->unitsBoughtBuffer = $unitsBoughtBuffer; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativeRotationType = $creativeRotationType; - $this->frequencyCaps = $frequencyCaps; - $this->lineItemType = $lineItemType; - $this->lineItemPriority = $lineItemPriority; - $this->costType = $costType; - $this->creativePlaceholders = $creativePlaceholders; - $this->targeting = $targeting; - $this->customFieldValues = $customFieldValues; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->premiums = $premiums; - $this->baseRate = $baseRate; - $this->costPerUnit = $costPerUnit; - $this->cost = $cost; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->computedStatus = $computedStatus; - $this->billingCap = $billingCap; - $this->billingSchedule = $billingSchedule; - $this->billingSource = $billingSource; - } - - } -} - -if (!class_exists("ProposalLineItemError", false)) { - /** - * Lists all errors associated with proposal line items. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemError"; - - /** - * @access public - * @var tnsProposalLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItemPage", false)) { - /** - * Captures a page of {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemPage"; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("ProposalLineItemPremium", false)) { - /** - * Represents the status of a triggered {@link PremiumRateValue} (formerly - * referred to as a {@code RateCardCustomization}). - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemPremium { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemPremium"; - - /** - * @access public - * @var integer - */ - public $rateCardCustomizationId; - - /** - * @access public - * @var tnsProposalLineItemPremiumStatus - */ - public $status; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationId = null, $status = null) { - $this->rateCardCustomizationId = $rateCardCustomizationId; - $this->status = $status; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Targeting", false)) { - /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; - - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; - - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TechnologyTargetingError", false)) { - /** - * Technology targeting validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TimeOfDay", false)) { - /** - * Represents a specific time in a day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; - } - - } -} - -if (!class_exists("UnarchiveProposalLineItems", false)) { - /** - * The action used for unarchiving {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnarchiveProposalLineItems extends ProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnarchiveProposalLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalLineItemActionType = null) { - parent::__construct(); - $this->ProposalLineItemActionType = $ProposalLineItemActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("VideoPosition", false)) { - /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; - - /** - * @access public - * @var integer - */ - public $midrollIndex; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; - } - - } -} - -if (!class_exists("VideoPositionTargeting", false)) { - /** - * Represents positions within and around a video where ads can be targeted to. - *

- * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTargeting"; - - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; - } - - } -} - -if (!class_exists("VideoPositionWithinPod", false)) { - /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionWithinPod"; - - /** - * @access public - * @var integer - */ - public $index; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($index = null) { - $this->index = $index; - } - - } -} - -if (!class_exists("VideoPositionTarget", false)) { - /** - * Represents the options for targetable positions within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; - - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingCap", false)) { - /** - * Determines how the revenue amount will be capped for each billing month. This cannot be used when - * {@link BillingSource} is {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingCap"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSchedule", false)) { - /** - * Determines how much to bill in each billing cycle when a proposal is charged based on the - * contracted value. This can only be used when {@link BillingSource} is - * {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingSchedule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingSchedule"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSource", false)) { - /** - * Determines which billable numbers or delivery data (impressions, clicks, and so on) - * will be used for billing purposes. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingSource { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingSource"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanionDeliveryOption", false)) { - /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CompanionDeliveryOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CompanionDeliveryOption"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ComputedStatus", false)) { - /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ComputedStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ComputedStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostAdjustment", false)) { - /** - * Describes the cost adjustment of {@link ProposalLineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CostAdjustment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CostAdjustment"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeRotationType", false)) { - /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeRotationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeRotationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayPartTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DayPartTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DayPartTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryTimeZone { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryTimeZone"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryRateType", false)) { - /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeliveryRateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeliveryRateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MinuteOfHour", false)) { - /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MinuteOfHour { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MinuteOfHour"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PrecisionErrorReason", false)) { - /** - * Describes reasons for precision errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PrecisionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PrecisionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemPremiumStatus", false)) { - /** - * Status of the premium triggered by a proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemPremiumStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemPremiumStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TechnologyTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TechnologyTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoBumperType", false)) { - /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoBumperType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoBumperType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("VideoPositionType", false)) { - /** - * Represents a targetable position within a video. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class VideoPositionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "VideoPosition.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateProposalLineItem", false)) { - /** - * Creates a new {@link ProposalLineItem}. - * - * The following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItem the proposal line item to create - * @return the created proposal line item with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $proposalLineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItem = null) { - $this->proposalLineItem = $proposalLineItem; - } - - } -} - -if (!class_exists("CreateProposalLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateProposalLineItems", false)) { - /** - * Creates new {@link ProposalLineItem} objects. - * - * For each proposal line item, the following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItems the proposal line items to create - * @return the created proposal line items with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposalLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $proposalLineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItems = null) { - $this->proposalLineItems = $proposalLineItems; - } - - } -} - -if (!class_exists("CreateProposalLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposalLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposalLineItem", false)) { - /** - * Returns the {@link ProposalLineItem} uniquely identified by the given ID. - * - * @param proposalLineItemId the ID of the proposal line item, which must already exist - * @return the proposal line item uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $proposalLineItemId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItemId = null) { - $this->proposalLineItemId = $proposalLineItemId; - } - - } -} - -if (!class_exists("GetProposalLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposalLineItemsByStatement", false)) { - /** - * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects - * that satisfy the given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProposalLineItem#id}
{@code name}{@link ProposalLineItem#name}
{@code proposalId}{@link ProposalLineItem#proposalId}
{@code isArchived}{@link ProposalLineItem#isArchived}
{@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
{@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
{@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposal line items - * @return the proposal line items that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposalLineItemsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetProposalLineItemsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposalLineItemsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItemPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProposalLineItemAction", false)) { - /** - * Performs actions on {@link ProposalLineItem} objects that match - * the given {@link Statement#query}. - * - * @param proposalLineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of - * proposal line items - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItemAction - */ - public $proposalLineItemAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItemAction = null, $filterStatement = null) { - $this->proposalLineItemAction = $proposalLineItemAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProposalLineItemActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformProposalLineItemActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposalLineItem", false)) { - /** - * Updates the specified {@link ProposalLineItem}. - * - * @param proposalLineItem the proposal line item to update - * @return the updated proposal line item - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $proposalLineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItem = null) { - $this->proposalLineItem = $proposalLineItem; - } - - } -} - -if (!class_exists("UpdateProposalLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposalLineItems", false)) { - /** - * Updates the specified {@link ProposalLineItem} objects. - * - * @param proposalLineItems the proposal line items to update - * @return the updated proposal line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposalLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $proposalLineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalLineItems = null) { - $this->proposalLineItems = $proposalLineItems; - } - - } -} - -if (!class_exists("UpdateProposalLineItemsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposalLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalLineItem[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveProposalLineItems", false)) { - /** - * The action used for archiving {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ArchiveProposalLineItems extends ProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ArchiveProposalLineItems"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalLineItemActionType = null) { - parent::__construct(); - $this->ProposalLineItemActionType = $ProposalLineItemActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

- * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("ProposalLineItemService", false)) { - /** - * ProposalLineItemService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemService extends DfpSoapClient { - - const SERVICE_NAME = "ProposalLineItemService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ProposalLineItemService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ProposalLineItemService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "TechnologyTargeting" => "TechnologyTargeting", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveProposalLineItems" => "ArchiveProposalLineItems", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BillingError" => "BillingError", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", - "CreativePlaceholder" => "CreativePlaceholder", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DayPart" => "DayPart", - "DayPartTargeting" => "DayPartTargeting", - "DayPartTargetingError" => "DayPartTargetingError", - "DeliveryData" => "DeliveryData", - "DeliveryIndicator" => "DeliveryIndicator", - "DeviceCapability" => "DeviceCapability", - "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", - "DeviceCategory" => "DeviceCategory", - "DeviceCategoryTargeting" => "DeviceCategoryTargeting", - "DeviceManufacturer" => "DeviceManufacturer", - "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", - "MobileCarrier" => "MobileCarrier", - "MobileCarrierTargeting" => "MobileCarrierTargeting", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", - "MobileDeviceTargeting" => "MobileDeviceTargeting", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", - "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", - "PrecisionError" => "PrecisionError", - "ProductError" => "ProductError", - "ProposalError" => "ProposalError", - "ProposalLineItemAction" => "ProposalLineItemAction", - "ProposalLineItemActionError" => "ProposalLineItemActionError", - "ProposalLineItem" => "ProposalLineItem", - "ProposalLineItemError" => "ProposalLineItemError", - "ProposalLineItemPage" => "ProposalLineItemPage", - "ProposalLineItemPremium" => "ProposalLineItemPremium", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ReservationDetailsError" => "ReservationDetailsError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Targeting" => "Targeting", - "TeamError" => "TeamError", - "Technology" => "Technology", - "TechnologyTargetingError" => "TechnologyTargetingError", - "TextValue" => "TextValue", - "TimeOfDay" => "TimeOfDay", - "UnarchiveProposalLineItems" => "UnarchiveProposalLineItems", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "VideoPosition" => "VideoPosition", - "VideoPositionTargeting" => "VideoPositionTargeting", - "VideoPositionWithinPod" => "VideoPositionWithinPod", - "VideoPositionTarget" => "VideoPositionTarget", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BillingCap" => "BillingCap", - "BillingError.Reason" => "BillingErrorReason", - "BillingSchedule" => "BillingSchedule", - "BillingSource" => "BillingSource", - "CommonError.Reason" => "CommonErrorReason", - "CompanionDeliveryOption" => "CompanionDeliveryOption", - "ComputedStatus" => "ComputedStatus", - "CostAdjustment" => "CostAdjustment", - "CostType" => "CostType", - "CreativeRotationType" => "CreativeRotationType", - "CreativeSizeType" => "CreativeSizeType", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "DayOfWeek" => "DayOfWeek", - "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", - "DeliveryTimeZone" => "DeliveryTimeZone", - "DeliveryRateType" => "DeliveryRateType", - "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemType" => "LineItemType", - "MinuteOfHour" => "MinuteOfHour", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PrecisionError.Reason" => "PrecisionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "ProposalError.Reason" => "ProposalErrorReason", - "ProposalLineItemActionError.Reason" => "ProposalLineItemActionErrorReason", - "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", - "ProposalLineItemPremiumStatus" => "ProposalLineItemPremiumStatus", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", - "TimeUnit" => "TimeUnit", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "VideoBumperType" => "VideoBumperType", - "VideoPosition.Type" => "VideoPositionType", - "createProposalLineItem" => "CreateProposalLineItem", - "createProposalLineItemResponse" => "CreateProposalLineItemResponse", - "createProposalLineItems" => "CreateProposalLineItems", - "createProposalLineItemsResponse" => "CreateProposalLineItemsResponse", - "getProposalLineItem" => "GetProposalLineItem", - "getProposalLineItemResponse" => "GetProposalLineItemResponse", - "getProposalLineItemsByStatement" => "GetProposalLineItemsByStatement", - "getProposalLineItemsByStatementResponse" => "GetProposalLineItemsByStatementResponse", - "performProposalLineItemAction" => "PerformProposalLineItemAction", - "performProposalLineItemActionResponse" => "PerformProposalLineItemActionResponse", - "updateProposalLineItem" => "UpdateProposalLineItem", - "updateProposalLineItemResponse" => "UpdateProposalLineItemResponse", - "updateProposalLineItems" => "UpdateProposalLineItems", - "updateProposalLineItemsResponse" => "UpdateProposalLineItemsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ProposalLineItem}. - * - * The following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItem the proposal line item to create - * @return the created proposal line item with its ID filled in - */ - public function createProposalLineItem($proposalLineItem) { - $args = new CreateProposalLineItem($proposalLineItem); - $result = $this->__soapCall("createProposalLineItem", array($args)); - return $result->rval; - } - /** - * Creates new {@link ProposalLineItem} objects. - * - * For each proposal line item, the following fields are required: - *
    - *
  • {@link ProposalLineItem#proposalId}
  • - *
  • {@link ProposalLineItem#rateCardId}
  • - *
  • {@link ProposalLineItem#productId}
  • - *
  • {@link ProposalLineItem#name}
  • - *
  • {@link ProposalLineItem#startDateTime}
  • - *
  • {@link ProposalLineItem#endDateTime}
  • - *
- * - * @param proposalLineItems the proposal line items to create - * @return the created proposal line items with their IDs filled in - */ - public function createProposalLineItems($proposalLineItems) { - $args = new CreateProposalLineItems($proposalLineItems); - $result = $this->__soapCall("createProposalLineItems", array($args)); - return $result->rval; - } - /** - * Returns the {@link ProposalLineItem} uniquely identified by the given ID. - * - * @param proposalLineItemId the ID of the proposal line item, which must already exist - * @return the proposal line item uniquely identified by the given ID - */ - public function getProposalLineItem($proposalLineItemId) { - $args = new GetProposalLineItem($proposalLineItemId); - $result = $this->__soapCall("getProposalLineItem", array($args)); - return $result->rval; - } - /** - * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects - * that satisfy the given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProposalLineItem#id}
{@code name}{@link ProposalLineItem#name}
{@code proposalId}{@link ProposalLineItem#proposalId}
{@code isArchived}{@link ProposalLineItem#isArchived}
{@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
{@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
{@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposal line items - * @return the proposal line items that match the given filter - */ - public function getProposalLineItemsByStatement($filterStatement) { - $args = new GetProposalLineItemsByStatement($filterStatement); - $result = $this->__soapCall("getProposalLineItemsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link ProposalLineItem} objects that match - * the given {@link Statement#query}. - * - * @param proposalLineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of - * proposal line items - * @return the result of the action performed - */ - public function performProposalLineItemAction($proposalLineItemAction, $filterStatement) { - $args = new PerformProposalLineItemAction($proposalLineItemAction, $filterStatement); - $result = $this->__soapCall("performProposalLineItemAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProposalLineItem}. - * - * @param proposalLineItem the proposal line item to update - * @return the updated proposal line item - */ - public function updateProposalLineItem($proposalLineItem) { - $args = new UpdateProposalLineItem($proposalLineItem); - $result = $this->__soapCall("updateProposalLineItem", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProposalLineItem} objects. - * - * @param proposalLineItems the proposal line items to update - * @return the updated proposal line items - */ - public function updateProposalLineItems($proposalLineItems) { - $args = new UpdateProposalLineItems($proposalLineItems); - $result = $this->__soapCall("updateProposalLineItems", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/ProposalService.php b/src/Google/Api/Ads/Dfp/v201308/ProposalService.php deleted file mode 100755 index 451cd7f42..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/ProposalService.php +++ /dev/null @@ -1,5643 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BillingError", false)) { - /** - * Lists all errors associated with the billing settings of a proposal or proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingError"; - - /** - * @access public - * @var tnsBillingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ForecastError", false)) { - /** - * Errors that can result from a forecast request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError"; - - /** - * @access public - * @var tnsForecastErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PrecisionError", false)) { - /** - * List all errors associated with number precisions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PrecisionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PrecisionError"; - - /** - * @access public - * @var tnsPrecisionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalAction", false)) { - /** - * Represents the actions that can be performed on {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalAction"; - - /** - * @access public - * @var string - */ - public $ProposalActionType; - private $_parameterMap = array( - "ProposalAction.Type" => "ProposalActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("ProposalActionError", false)) { - /** - * Lists all errors associated with performing actions on {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalActionError"; - - /** - * @access public - * @var tnsProposalActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalCompanyAssociation", false)) { - /** - * A {@code ProposalCompanyAssociation} represents a {@link Company} associated with the - * {@link Proposal} and a set of {@link Contact} objects belonging to the company. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalCompanyAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalCompanyAssociation"; - - /** - * @access public - * @var integer - */ - public $companyId; - - /** - * @access public - * @var tnsProposalCompanyAssociationType - */ - public $type; - - /** - * @access public - * @var integer[] - */ - public $contactIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companyId = null, $type = null, $contactIds = null) { - $this->companyId = $companyId; - $this->type = $type; - $this->contactIds = $contactIds; - } - - } -} - -if (!class_exists("Proposal", false)) { - /** - * A {@code Proposal} represents an agreement between an interactive - * advertising seller and a buyer that specifies the details of an - * advertising campaign. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Proposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Proposal"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var tnsProposalStatus - */ - public $status; - - /** - * @access public - * @var boolean - */ - public $isArchived; - - /** - * @access public - * @var ProposalCompanyAssociation - */ - public $advertiser; - - /** - * @access public - * @var ProposalCompanyAssociation[] - */ - public $agencies; - - /** - * @access public - * @var integer - */ - public $probabilityToClose; - - /** - * @access public - * @var tnsBillingCap - */ - public $billingCap; - - /** - * @access public - * @var tnsBillingSchedule - */ - public $billingSchedule; - - /** - * @access public - * @var tnsBillingSource - */ - public $billingSource; - - /** - * @access public - * @var string - */ - public $poNumber; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var Money - */ - public $budget; - - /** - * @access public - * @var SalespersonSplit - */ - public $primarySalesperson; - - /** - * @access public - * @var SalespersonSplit[] - */ - public $secondarySalespeople; - - /** - * @access public - * @var integer[] - */ - public $salesPlannerIds; - - /** - * @access public - * @var integer - */ - public $primaryTraffickerId; - - /** - * @access public - * @var integer[] - */ - public $secondaryTraffickerIds; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $advertiserDiscount; - - /** - * @access public - * @var integer - */ - public $proposalDiscount; - - /** - * @access public - * @var Money - */ - public $additionalAdjustment; - - /** - * @access public - * @var integer - */ - public $exchangeRate; - - /** - * @access public - * @var boolean - */ - public $refreshExchangeRate; - - /** - * @access public - * @var integer - */ - public $agencyCommission; - - /** - * @access public - * @var integer - */ - public $valueAddedTax; - - /** - * @access public - * @var integer[] - */ - public $approvalWorkflowActionIds; - - /** - * @access public - * @var tnsProposalApprovalStatus - */ - public $approvalStatus; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $startDateTime = null, $endDateTime = null, $status = null, $isArchived = null, $advertiser = null, $agencies = null, $probabilityToClose = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $poNumber = null, $notes = null, $budget = null, $primarySalesperson = null, $secondarySalespeople = null, $salesPlannerIds = null, $primaryTraffickerId = null, $secondaryTraffickerIds = null, $appliedTeamIds = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $advertiserDiscount = null, $proposalDiscount = null, $additionalAdjustment = null, $exchangeRate = null, $refreshExchangeRate = null, $agencyCommission = null, $valueAddedTax = null, $approvalWorkflowActionIds = null, $approvalStatus = null) { - $this->id = $id; - $this->name = $name; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->status = $status; - $this->isArchived = $isArchived; - $this->advertiser = $advertiser; - $this->agencies = $agencies; - $this->probabilityToClose = $probabilityToClose; - $this->billingCap = $billingCap; - $this->billingSchedule = $billingSchedule; - $this->billingSource = $billingSource; - $this->poNumber = $poNumber; - $this->notes = $notes; - $this->budget = $budget; - $this->primarySalesperson = $primarySalesperson; - $this->secondarySalespeople = $secondarySalespeople; - $this->salesPlannerIds = $salesPlannerIds; - $this->primaryTraffickerId = $primaryTraffickerId; - $this->secondaryTraffickerIds = $secondaryTraffickerIds; - $this->appliedTeamIds = $appliedTeamIds; - $this->customFieldValues = $customFieldValues; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->advertiserDiscount = $advertiserDiscount; - $this->proposalDiscount = $proposalDiscount; - $this->additionalAdjustment = $additionalAdjustment; - $this->exchangeRate = $exchangeRate; - $this->refreshExchangeRate = $refreshExchangeRate; - $this->agencyCommission = $agencyCommission; - $this->valueAddedTax = $valueAddedTax; - $this->approvalWorkflowActionIds = $approvalWorkflowActionIds; - $this->approvalStatus = $approvalStatus; - } - - } -} - -if (!class_exists("ProposalError", false)) { - /** - * Lists all errors associated with proposals. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalError"; - - /** - * @access public - * @var tnsProposalErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItemError", false)) { - /** - * Lists all errors associated with proposal line items. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemError"; - - /** - * @access public - * @var tnsProposalLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalPage", false)) { - /** - * Captures a page of {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Proposal[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RejectProposals", false)) { - /** - * The action used for rejecting {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RejectProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RejectProposals"; - - /** - * @access public - * @var integer[] - */ - public $workflowActionIds; - - /** - * @access public - * @var string - */ - public $comment; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($workflowActionIds = null, $comment = null, $ProposalActionType = null) { - parent::__construct(); - $this->workflowActionIds = $workflowActionIds; - $this->comment = $comment; - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RetractProposals", false)) { - /** - * The action used for retracting {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RetractProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RetractProposals"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("SalespersonSplit", false)) { - /** - * A {@code SalespersonSplit} represents a salesperson and his/her split. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SalespersonSplit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SalespersonSplit"; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * @access public - * @var integer - */ - public $split; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userId = null, $split = null) { - $this->userId = $userId; - $this->split = $split; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SubmitProposalsForApproval", false)) { - /** - * The action used for submitting {@link Proposal} objects for approval. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SubmitProposalsForApproval extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SubmitProposalsForApproval"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnarchiveProposals", false)) { - /** - * The action used for unarchiving {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnarchiveProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnarchiveProposals"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("WorkflowActionError", false)) { - /** - * Lists all errors associated with performing actions within {@link WorkflowAction}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "WorkflowActionError"; - - /** - * @access public - * @var tnsWorkflowActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingCap", false)) { - /** - * Determines how the revenue amount will be capped for each billing month. This cannot be used when - * {@link BillingSource} is {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingCap"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSchedule", false)) { - /** - * Determines how much to bill in each billing cycle when a proposal is charged based on the - * contracted value. This can only be used when {@link BillingSource} is - * {@link BillingSource#CONTRACTED}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingSchedule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingSchedule"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillingSource", false)) { - /** - * Determines which billable numbers or delivery data (impressions, clicks, and so on) - * will be used for billing purposes. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillingSource { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillingSource"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ForecastErrorReason", false)) { - /** - * Reason why a forecast could not be retrieved. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ForecastErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ForecastError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalApprovalStatus", false)) { - /** - * Describes the {@link Proposal} status in terms of pending approvals of active user. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalApprovalStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalApprovalStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PrecisionErrorReason", false)) { - /** - * Describes reasons for precision errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PrecisionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PrecisionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalCompanyAssociationType", false)) { - /** - * Describes the type of a {@link Company} associated with a {@link Proposal}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalCompanyAssociationType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalCompanyAssociationType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalLineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalLineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalLineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProposalStatus", false)) { - /** - * Describes the {@link Proposal} status. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProposalStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("WorkflowActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "WorkflowActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateProposal", false)) { - /** - * Creates a new {@link Proposal}. - * - * The following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposal the proposal to create - * @return the created proposal with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $proposal; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposal = null) { - $this->proposal = $proposal; - } - - } -} - -if (!class_exists("CreateProposalResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateProposals", false)) { - /** - * Creates new {@link Proposal} objects. - * - * For each proposal, the following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposals the proposals to create - * @return the created proposals with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposals { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $proposals; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposals = null) { - $this->proposals = $proposals; - } - - } -} - -if (!class_exists("CreateProposalsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateProposalsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposal", false)) { - /** - * Returns the {@link Proposal} uniquely identified by the given ID. - * - * @param proposalId the ID of the proposal, which must already exist - * @return the proposal uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $proposalId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalId = null) { - $this->proposalId = $proposalId; - } - - } -} - -if (!class_exists("GetProposalResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProposalsByStatement", false)) { - /** - * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link Proposal#id}
{@code name}{@link Proposal#name}
{@code status}{@link Proposal#status}
{@code isArchived}{@link Proposal#isArchived}
{@code approvalStatus}{@link Proposal#approvalStatus}
{@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
{@code thirdPartyAdServerId}{@link Proposal#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link Proposal#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposals - * @return the proposals that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposalsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetProposalsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetProposalsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProposalAction", false)) { - /** - * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. - * - * The following fields are also required when submitting proposals for approval: - *
    - *
  • {@link Proposal#advertiser}
  • - *
  • {@link Proposal#primarySalesperson}
  • - *
  • {@link Proposal#primaryTraffickerId}
  • - *
- * - * @param proposalAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of proposals - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProposalAction - */ - public $proposalAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalAction = null, $filterStatement = null) { - $this->proposalAction = $proposalAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProposalActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformProposalActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposal", false)) { - /** - * Updates the specified {@link Proposal}. - * - * @param proposal the proposal to update - * @return the updated proposal - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $proposal; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposal = null) { - $this->proposal = $proposal; - } - - } -} - -if (!class_exists("UpdateProposalResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProposals", false)) { - /** - * Updates the specified {@link Proposal} objects. - * - * @param proposals the proposals to update - * @return the updated proposals - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposals { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $proposals; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposals = null) { - $this->proposals = $proposals; - } - - } -} - -if (!class_exists("UpdateProposalsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProposalsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ApproveProposals", false)) { - /** - * The action used for approving {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApproveProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApproveProposals"; - - /** - * @access public - * @var integer[] - */ - public $workflowActionIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($workflowActionIds = null, $ProposalActionType = null) { - parent::__construct(); - $this->workflowActionIds = $workflowActionIds; - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("ArchiveProposals", false)) { - /** - * The action used for archiving {@link Proposal} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ArchiveProposals extends ProposalAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ArchiveProposals"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProposalActionType = null) { - parent::__construct(); - $this->ProposalActionType = $ProposalActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ProposalService", false)) { - /** - * ProposalService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProposalService extends DfpSoapClient { - - const SERVICE_NAME = "ProposalService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ProposalService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ProposalService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ApproveProposals" => "ApproveProposals", - "ArchiveProposals" => "ArchiveProposals", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BillingError" => "BillingError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "ForecastError" => "ForecastError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemOperationError" => "LineItemOperationError", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PrecisionError" => "PrecisionError", - "ProductError" => "ProductError", - "ProposalAction" => "ProposalAction", - "ProposalActionError" => "ProposalActionError", - "ProposalCompanyAssociation" => "ProposalCompanyAssociation", - "Proposal" => "Proposal", - "ProposalError" => "ProposalError", - "ProposalLineItemError" => "ProposalLineItemError", - "ProposalPage" => "ProposalPage", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RejectProposals" => "RejectProposals", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RetractProposals" => "RetractProposals", - "SalespersonSplit" => "SalespersonSplit", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SubmitProposalsForApproval" => "SubmitProposalsForApproval", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UnarchiveProposals" => "UnarchiveProposals", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "WorkflowActionError" => "WorkflowActionError", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BillingCap" => "BillingCap", - "BillingError.Reason" => "BillingErrorReason", - "BillingSchedule" => "BillingSchedule", - "BillingSource" => "BillingSource", - "CommonError.Reason" => "CommonErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "ForecastError.Reason" => "ForecastErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "ProposalApprovalStatus" => "ProposalApprovalStatus", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PrecisionError.Reason" => "PrecisionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "ProposalActionError.Reason" => "ProposalActionErrorReason", - "ProposalCompanyAssociationType" => "ProposalCompanyAssociationType", - "ProposalError.Reason" => "ProposalErrorReason", - "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", - "ProposalStatus" => "ProposalStatus", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "WorkflowActionError.Reason" => "WorkflowActionErrorReason", - "createProposal" => "CreateProposal", - "createProposalResponse" => "CreateProposalResponse", - "createProposals" => "CreateProposals", - "createProposalsResponse" => "CreateProposalsResponse", - "getProposal" => "GetProposal", - "getProposalResponse" => "GetProposalResponse", - "getProposalsByStatement" => "GetProposalsByStatement", - "getProposalsByStatementResponse" => "GetProposalsByStatementResponse", - "performProposalAction" => "PerformProposalAction", - "performProposalActionResponse" => "PerformProposalActionResponse", - "updateProposal" => "UpdateProposal", - "updateProposalResponse" => "UpdateProposalResponse", - "updateProposals" => "UpdateProposals", - "updateProposalsResponse" => "UpdateProposalsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Proposal}. - * - * The following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposal the proposal to create - * @return the created proposal with its ID filled in - */ - public function createProposal($proposal) { - $args = new CreateProposal($proposal); - $result = $this->__soapCall("createProposal", array($args)); - return $result->rval; - } - /** - * Creates new {@link Proposal} objects. - * - * For each proposal, the following fields are required: - *
    - *
  • {@link Proposal#name}
  • - *
- * - * @param proposals the proposals to create - * @return the created proposals with their IDs filled in - */ - public function createProposals($proposals) { - $args = new CreateProposals($proposals); - $result = $this->__soapCall("createProposals", array($args)); - return $result->rval; - } - /** - * Returns the {@link Proposal} uniquely identified by the given ID. - * - * @param proposalId the ID of the proposal, which must already exist - * @return the proposal uniquely identified by the given ID - */ - public function getProposal($proposalId) { - $args = new GetProposal($proposalId); - $result = $this->__soapCall("getProposal", array($args)); - return $result->rval; - } - /** - * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link Proposal#id}
{@code name}{@link Proposal#name}
{@code status}{@link Proposal#status}
{@code isArchived}{@link Proposal#isArchived}
{@code approvalStatus}{@link Proposal#approvalStatus}
{@code lastModifiedDateTime}{@link Proposal#lastModifiedDateTime}
{@code thirdPartyAdServerId}{@link Proposal#thirdPartyAdServerId}
{@code customThirdPartyAdServerName}{@link Proposal#customThirdPartyAdServerName}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposals - * @return the proposals that match the given filter - */ - public function getProposalsByStatement($filterStatement) { - $args = new GetProposalsByStatement($filterStatement); - $result = $this->__soapCall("getProposalsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link Proposal} objects that match the given {@link Statement#query}. - * - * The following fields are also required when submitting proposals for approval: - *
    - *
  • {@link Proposal#advertiser}
  • - *
  • {@link Proposal#primarySalesperson}
  • - *
  • {@link Proposal#primaryTraffickerId}
  • - *
- * - * @param proposalAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of proposals - * @return the result of the action performed - */ - public function performProposalAction($proposalAction, $filterStatement) { - $args = new PerformProposalAction($proposalAction, $filterStatement); - $result = $this->__soapCall("performProposalAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Proposal}. - * - * @param proposal the proposal to update - * @return the updated proposal - */ - public function updateProposal($proposal) { - $args = new UpdateProposal($proposal); - $result = $this->__soapCall("updateProposal", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Proposal} objects. - * - * @param proposals the proposals to update - * @return the updated proposals - */ - public function updateProposals($proposals) { - $args = new UpdateProposals($proposals); - $result = $this->__soapCall("updateProposals", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php deleted file mode 100755 index 19f82509c..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php +++ /dev/null @@ -1,4157 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ColumnType", false)) { - /** - * Contains information about a column in a {@link ResultSet}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ColumnType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ColumnType"; - - /** - * @access public - * @var string - */ - public $labelName; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelName = null) { - $this->labelName = $labelName; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitError"; - - /** - * @access public - * @var tnsInventoryUnitErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Caused by supplying a non-null value for an attribute that should be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderActionError", false)) { - /** - * Lists all errors associated with performing actions on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderActionError"; - - /** - * @access public - * @var tnsOrderActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ResultSet", false)) { - /** - * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link - * Statement}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ResultSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ResultSet"; - - /** - * @access public - * @var ColumnType[] - */ - public $columnTypes; - - /** - * @access public - * @var Row[] - */ - public $rows; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($columnTypes = null, $rows = null) { - $this->columnTypes = $columnTypes; - $this->rows = $rows; - } - - } -} - -if (!class_exists("Row", false)) { - /** - * Each {@link Row} object represents data about one entity in a - * {@link ResultSet}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Row { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Row"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null) { - $this->values = $values; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { - /** - * The supplied Afc size is not valid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitAfcSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitCodeErrorReason", false)) { - /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitCodeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitCodeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitHierarchyErrorReason", false)) { - /** - * The depth of the {@link AdUnit} in the inventory hierarchy is greater - * than is allowed. The maximum allowed depth is two below the effective - * root ad unit for Premium accounts and one level below effective root ad - * unit for Small Business accounts. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitHierarchyErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitHierarchyError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InventoryUnitErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryUnitError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Select", false)) { - /** - * Retrieves rows of data that satisfy the given {@link Statement#query} from - * the system. - * - * @param selectStatement a Publisher Query Language statement used to - * specify what data needs to returned - * - * @return a result set of data that matches the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Select { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $selectStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($selectStatement = null) { - $this->selectStatement = $selectStatement; - } - - } -} - -if (!class_exists("SelectResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SelectResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ResultSet - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("AdUnitAfcSizeError", false)) { - /** - * Caused by supplying sizes that are not compatible with the Afc sizes. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitAfcSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitAfcSizeError"; - - /** - * @access public - * @var tnsAdUnitAfcSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitCodeError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit#adUnitCode}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitCodeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitCodeError"; - - /** - * @access public - * @var tnsAdUnitCodeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitHierarchyError", false)) { - /** - * Caused by creating an {@link AdUnit} object with an invalid hierarchy. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitHierarchyError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitHierarchyError"; - - /** - * @access public - * @var tnsAdUnitHierarchyErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageService", false)) { - /** - * PublisherQueryLanguageService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageService extends DfpSoapClient { - - const SERVICE_NAME = "PublisherQueryLanguageService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/PublisherQueryLanguageService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/PublisherQueryLanguageService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitAfcSizeError" => "AdUnitAfcSizeError", - "AdUnitCodeError" => "AdUnitCodeError", - "AdUnitHierarchyError" => "AdUnitHierarchyError", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "ColumnType" => "ColumnType", - "CommonError" => "CommonError", - "CreativeError" => "CreativeError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargetingError" => "InventoryTargetingError", - "InventoryUnitError" => "InventoryUnitError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OrderActionError" => "OrderActionError", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegExError" => "RegExError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ResultSet" => "ResultSet", - "Row" => "Row", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", - "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", - "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "InventoryUnitError.Reason" => "InventoryUnitErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderActionError.Reason" => "OrderActionErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "select" => "Select", - "selectResponse" => "SelectResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Retrieves rows of data that satisfy the given {@link Statement#query} from - * the system. - * - * @param selectStatement a Publisher Query Language statement used to - * specify what data needs to returned - * - * @return a result set of data that matches the given filter - */ - public function select($selectStatement) { - $args = new Select($selectStatement); - $result = $this->__soapCall("select", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php deleted file mode 100755 index f3a4972f3..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/RateCardCustomizationService.php +++ /dev/null @@ -1,4044 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardCustomizationAction", false)) { - /** - * Represents the action that can be performed on {@link RateCardCustomization} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardCustomizationAction"; - - /** - * @access public - * @var string - */ - public $RateCardCustomizationActionType; - private $_parameterMap = array( - "RateCardCustomizationAction.Type" => "RateCardCustomizationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("RateCardCustomization", false)) { - /** - * A customization of a {@link RateCard} which could be applied to the line item - * and charges extra premiums. - * - *

Rate card customizations are referred to as premiums in the UI. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardCustomization"; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsRateCardCustomizationStatus - */ - public $status; - - /** - * @access public - * @var RateCardFeature - */ - public $rateCardFeature; - - /** - * @access public - * @var tnsRateCardCustomizationAdjustmentType - */ - public $adjustmentType; - - /** - * @access public - * @var integer - */ - public $adjustmentSize; - - /** - * @access public - * @var tnsRateType - */ - public $rateType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardId = null, $id = null, $status = null, $rateCardFeature = null, $adjustmentType = null, $adjustmentSize = null, $rateType = null) { - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->rateCardFeature = $rateCardFeature; - $this->adjustmentType = $adjustmentType; - $this->adjustmentSize = $adjustmentSize; - $this->rateType = $rateType; - } - - } -} - -if (!class_exists("RateCardCustomizationError", false)) { - /** - * An error having to do with {@link RateCardCustomization}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomizationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardCustomizationError"; - - /** - * @access public - * @var tnsRateCardCustomizationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardCustomizationPage", false)) { - /** - * Captures a page of {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomizationPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardCustomizationPage"; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("RateCardFeature", false)) { - /** - * The feature of a {@link RateCardCustomization} - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardFeature"; - - /** - * @access public - * @var string - */ - public $RateCardFeatureType; - private $_parameterMap = array( - "RateCardFeature.Type" => "RateCardFeatureType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UnknownRateCardFeature", false)) { - /** - * The {@link RateCardFeature} returned if the actual feature is not exposed by - * the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UnknownRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UnknownRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainRateCardFeature", false)) { - /** - * A rate customization applied to user domain targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UserDomainRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UserDomainRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardCustomizationAdjustmentType", false)) { - /** - * Describes how to apply the adjustment to the base rate. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomizationAdjustmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardCustomizationAdjustmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardCustomizationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomizationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardCustomizationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardCustomizationStatus", false)) { - /** - * The status of {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomizationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardCustomizationStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateType", false)) { - /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateRateCardCustomization", false)) { - /** - * Creates a new {@link RateCardCustomization} object. - * - * @param rateCardCustomization the {@link RateCardCustomization} to be - * created - * @return the {@link RateCardCustomization} with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rateCardCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomization = null) { - $this->rateCardCustomization = $rateCardCustomization; - } - - } -} - -if (!class_exists("CreateRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateRateCardCustomizations", false)) { - /** - * Creates a list of new {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be created - * @return the rate card customizations with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateRateCardCustomizations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rateCardCustomizations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizations = null) { - $this->rateCardCustomizations = $rateCardCustomizations; - } - - } -} - -if (!class_exists("CreateRateCardCustomizationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateRateCardCustomizationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardCustomization", false)) { - /** - * Returns the {@link RateCardCustomization} object uniquely identified by the - * given ID. - * - * @param rateCardCustomizationId the ID of the rate card customization, which - * must already exist. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $rateCardCustomizationId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationId = null) { - $this->rateCardCustomizationId = $rateCardCustomizationId; - } - - } -} - -if (!class_exists("GetRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardCustomizationsByStatement", false)) { - /** - * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} - * objects that satisfy the given {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code rateCardId}{@link RateCardCustomization#rateCardId}
{@code rateCardCustomizationGroupId}{@link RateCardCustomization#rateCardCustomizationGroupId}
{@code id}{@link RateCardCustomization#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the rate card customizations that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetRateCardCustomizationsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetRateCardCustomizationsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetRateCardCustomizationsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomizationPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformRateCardCustomizationAction", false)) { - /** - * Performs actions on {@link RateCardCustomization} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardCustomizationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformRateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomizationAction - */ - public $rateCardCustomizationAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationAction = null, $filterStatement = null) { - $this->rateCardCustomizationAction = $rateCardCustomizationAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformRateCardCustomizationActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformRateCardCustomizationActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCardCustomization", false)) { - /** - * Updates the specified {@link RateCardCustomization} object. - * - * @param rateCardCustomization the rate card customization to be updated - * @return the updated rate card customization - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rateCardCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomization = null) { - $this->rateCardCustomization = $rateCardCustomization; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizations", false)) { - /** - * Updates the specified {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be updated - * @return the updated rate card customizations - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateRateCardCustomizations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rateCardCustomizations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizations = null) { - $this->rateCardCustomizations = $rateCardCustomizations; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateRateCardCustomizationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateRateCardCustomizations", false)) { - /** - * The action used to activate {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ActivateRateCardCustomizations extends RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateRateCardCustomizations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - parent::__construct(); - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("AdUnitRateCardFeature", false)) { - /** - * A rate customization applied to ad unit targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BandwidthRateCardFeature", false)) { - /** - * A rate customization applied to bandwidth targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BandwidthRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BandwidthRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("BrowserRateCardFeature", false)) { - /** - * A rate customization applied to browser targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("BrowserLanguageRateCardFeature", false)) { - /** - * A rate customization applied to browser language targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BrowserLanguageRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BrowserLanguageRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("CustomTargetingRateCardFeature", false)) { - /** - * A rate customization applied to custom criteria targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingRateCardFeature"; - - /** - * @access public - * @var integer - */ - public $customTargetingKeyId; - - /** - * @access public - * @var integer - */ - public $customTargetingValueId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingKeyId = null, $customTargetingValueId = null, $RateCardFeatureType = null) { - parent::__construct(); - $this->customTargetingKeyId = $customTargetingKeyId; - $this->customTargetingValueId = $customTargetingValueId; - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateRateCardCustomizations", false)) { - /** - * The action used to deactivate {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DeactivateRateCardCustomizations extends RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeactivateRateCardCustomizations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - parent::__construct(); - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("FrequencyCapRateCardFeature", false)) { - /** - * A rate customization applied to frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FrequencyCapRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FrequencyCapRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("GeographyRateCardFeature", false)) { - /** - * A rate customization applied to geography targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GeographyRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "GeographyRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystemRateCardFeature", false)) { - /** - * A rate customization applied to operating system targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class OperatingSystemRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OperatingSystemRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("PlacementRateCardFeature", false)) { - /** - * A rate customization applied to placement targeting. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PlacementRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PlacementRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardCustomizationService", false)) { - /** - * RateCardCustomizationService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RateCardCustomizationService extends DfpSoapClient { - - const SERVICE_NAME = "RateCardCustomizationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/RateCardCustomizationService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/RateCardCustomizationService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateRateCardCustomizations" => "ActivateRateCardCustomizations", - "AdUnitRateCardFeature" => "AdUnitRateCardFeature", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthRateCardFeature" => "BandwidthRateCardFeature", - "BooleanValue" => "BooleanValue", - "BrowserRateCardFeature" => "BrowserRateCardFeature", - "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateRateCardCustomizations" => "DeactivateRateCardCustomizations", - "FeatureError" => "FeatureError", - "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", - "GeographyRateCardFeature" => "GeographyRateCardFeature", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystemRateCardFeature" => "OperatingSystemRateCardFeature", - "PermissionError" => "PermissionError", - "PlacementRateCardFeature" => "PlacementRateCardFeature", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RateCardCustomizationAction" => "RateCardCustomizationAction", - "RateCardCustomization" => "RateCardCustomization", - "RateCardCustomizationError" => "RateCardCustomizationError", - "RateCardCustomizationPage" => "RateCardCustomizationPage", - "RateCardFeature" => "RateCardFeature", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UnknownRateCardFeature" => "UnknownRateCardFeature", - "UpdateResult" => "UpdateResult", - "UserDomainRateCardFeature" => "UserDomainRateCardFeature", - "Value" => "Value", - "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateCardCustomizationError.Reason" => "RateCardCustomizationErrorReason", - "RateCardCustomizationStatus" => "RateCardCustomizationStatus", - "RateType" => "RateType", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createRateCardCustomization" => "CreateRateCardCustomization", - "createRateCardCustomizationResponse" => "CreateRateCardCustomizationResponse", - "createRateCardCustomizations" => "CreateRateCardCustomizations", - "createRateCardCustomizationsResponse" => "CreateRateCardCustomizationsResponse", - "getRateCardCustomization" => "GetRateCardCustomization", - "getRateCardCustomizationResponse" => "GetRateCardCustomizationResponse", - "getRateCardCustomizationsByStatement" => "GetRateCardCustomizationsByStatement", - "getRateCardCustomizationsByStatementResponse" => "GetRateCardCustomizationsByStatementResponse", - "performRateCardCustomizationAction" => "PerformRateCardCustomizationAction", - "performRateCardCustomizationActionResponse" => "PerformRateCardCustomizationActionResponse", - "updateRateCardCustomization" => "UpdateRateCardCustomization", - "updateRateCardCustomizationResponse" => "UpdateRateCardCustomizationResponse", - "updateRateCardCustomizations" => "UpdateRateCardCustomizations", - "updateRateCardCustomizationsResponse" => "UpdateRateCardCustomizationsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link RateCardCustomization} object. - * - * @param rateCardCustomization the {@link RateCardCustomization} to be - * created - * @return the {@link RateCardCustomization} with its ID filled in - */ - public function createRateCardCustomization($rateCardCustomization) { - $args = new CreateRateCardCustomization($rateCardCustomization); - $result = $this->__soapCall("createRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Creates a list of new {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be created - * @return the rate card customizations with their IDs filled in - */ - public function createRateCardCustomizations($rateCardCustomizations) { - $args = new CreateRateCardCustomizations($rateCardCustomizations); - $result = $this->__soapCall("createRateCardCustomizations", array($args)); - return $result->rval; - } - /** - * Returns the {@link RateCardCustomization} object uniquely identified by the - * given ID. - * - * @param rateCardCustomizationId the ID of the rate card customization, which - * must already exist. - */ - public function getRateCardCustomization($rateCardCustomizationId) { - $args = new GetRateCardCustomization($rateCardCustomizationId); - $result = $this->__soapCall("getRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} - * objects that satisfy the given {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code rateCardId}{@link RateCardCustomization#rateCardId}
{@code rateCardCustomizationGroupId}{@link RateCardCustomization#rateCardCustomizationGroupId}
{@code id}{@link RateCardCustomization#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the rate card customizations that match the given filter - */ - public function getRateCardCustomizationsByStatement($filterStatement) { - $args = new GetRateCardCustomizationsByStatement($filterStatement); - $result = $this->__soapCall("getRateCardCustomizationsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link RateCardCustomization} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardCustomizationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the result of the action performed - */ - public function performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement) { - $args = new PerformRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement); - $result = $this->__soapCall("performRateCardCustomizationAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCardCustomization} object. - * - * @param rateCardCustomization the rate card customization to be updated - * @return the updated rate card customization - */ - public function updateRateCardCustomization($rateCardCustomization) { - $args = new UpdateRateCardCustomization($rateCardCustomization); - $result = $this->__soapCall("updateRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be updated - * @return the updated rate card customizations - */ - public function updateRateCardCustomizations($rateCardCustomizations) { - $args = new UpdateRateCardCustomizations($rateCardCustomizations); - $result = $this->__soapCall("updateRateCardCustomizations", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php deleted file mode 100755 index 187dcb342..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportRowService.php +++ /dev/null @@ -1,3232 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationError", false)) { - /** - * Lists all errors associated with reconciliation. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReconciliationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReconciliationError"; - - /** - * @access public - * @var tnsReconciliationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationImportError", false)) { - /** - * The API errors for reconciliation CSV import. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReconciliationImportError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReconciliationImportError"; - - /** - * @access public - * @var tnsReconciliationImportErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationReportRow", false)) { - /** - * A {@code ReconciliationReportRow} represents each row in the reconciliation report. - * Each row is identified by its {@link #reconciliationReportId}, {@link #lineItemId}, - * {@link #creativeId}, and {@link #proposalLineItemId}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReconciliationReportRow { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReconciliationReportRow"; - - /** - * @access public - * @var integer - */ - public $reconciliationReportId; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var integer - */ - public $advertiserId; - - /** - * @access public - * @var tnsBillFrom - */ - public $billFrom; - - /** - * @access public - * @var tnsCostType - */ - public $lineItemCostType; - - /** - * @access public - * @var Money - */ - public $lineItemCostPerUnit; - - /** - * @access public - * @var integer - */ - public $lineItemContractedUnitsBought; - - /** - * @access public - * @var integer - */ - public $dfpClicks; - - /** - * @access public - * @var integer - */ - public $dfpImpressions; - - /** - * @access public - * @var integer - */ - public $dfpLineItemDays; - - /** - * @access public - * @var integer - */ - public $thirdPartyClicks; - - /** - * @access public - * @var integer - */ - public $thirdPartyImpressions; - - /** - * @access public - * @var integer - */ - public $thirdPartyLineItemDays; - - /** - * @access public - * @var integer - */ - public $manualClicks; - - /** - * @access public - * @var integer - */ - public $manualImpressions; - - /** - * @access public - * @var integer - */ - public $manualLineItemDays; - - /** - * @access public - * @var integer - */ - public $reconciledClicks; - - /** - * @access public - * @var integer - */ - public $reconciledImpressions; - - /** - * @access public - * @var integer - */ - public $reconciledLineItemDays; - - /** - * @access public - * @var Money - */ - public $contractedRevenue; - - /** - * @access public - * @var Money - */ - public $dfpRevenue; - - /** - * @access public - * @var Money - */ - public $thirdPartyRevenue; - - /** - * @access public - * @var Money - */ - public $manualRevenue; - - /** - * @access public - * @var Money - */ - public $reconciledRevenue; - - /** - * @access public - * @var string - */ - public $comments; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReportId = null, $lineItemId = null, $creativeId = null, $orderId = null, $advertiserId = null, $billFrom = null, $lineItemCostType = null, $lineItemCostPerUnit = null, $lineItemContractedUnitsBought = null, $dfpClicks = null, $dfpImpressions = null, $dfpLineItemDays = null, $thirdPartyClicks = null, $thirdPartyImpressions = null, $thirdPartyLineItemDays = null, $manualClicks = null, $manualImpressions = null, $manualLineItemDays = null, $reconciledClicks = null, $reconciledImpressions = null, $reconciledLineItemDays = null, $contractedRevenue = null, $dfpRevenue = null, $thirdPartyRevenue = null, $manualRevenue = null, $reconciledRevenue = null, $comments = null) { - $this->reconciliationReportId = $reconciliationReportId; - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - $this->orderId = $orderId; - $this->advertiserId = $advertiserId; - $this->billFrom = $billFrom; - $this->lineItemCostType = $lineItemCostType; - $this->lineItemCostPerUnit = $lineItemCostPerUnit; - $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; - $this->dfpClicks = $dfpClicks; - $this->dfpImpressions = $dfpImpressions; - $this->dfpLineItemDays = $dfpLineItemDays; - $this->thirdPartyClicks = $thirdPartyClicks; - $this->thirdPartyImpressions = $thirdPartyImpressions; - $this->thirdPartyLineItemDays = $thirdPartyLineItemDays; - $this->manualClicks = $manualClicks; - $this->manualImpressions = $manualImpressions; - $this->manualLineItemDays = $manualLineItemDays; - $this->reconciledClicks = $reconciledClicks; - $this->reconciledImpressions = $reconciledImpressions; - $this->reconciledLineItemDays = $reconciledLineItemDays; - $this->contractedRevenue = $contractedRevenue; - $this->dfpRevenue = $dfpRevenue; - $this->thirdPartyRevenue = $thirdPartyRevenue; - $this->manualRevenue = $manualRevenue; - $this->reconciledRevenue = $reconciledRevenue; - $this->comments = $comments; - } - - } -} - -if (!class_exists("ReconciliationReportRowPage", false)) { - /** - * Captures a page of {@link ReconciliationReportRow} objects - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReconciliationReportRowPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReconciliationReportRowPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ReconciliationReportRow[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillFrom", false)) { - /** - * Values for which to bill from. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BillFrom { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BillFrom"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReconciliationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReconciliationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationImportErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReconciliationImportErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ReconciliationImportError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReconciliationReportRowsByStatement", false)) { - /** - * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that - * satisfy the given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
{@code advertiserId}{@link ReconciliationReportRow#advertiserId}
{@code orderId}{@link ReconciliationReportRow#orderId}
{@code lineItemId}{@link ReconciliationReportRow#lineItemId}
{@code creativeId}{@link ReconciliationReportRow#creativeId}
{@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
{@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
{@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
{@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
{@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
{@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
{@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
{@code manualClicks}{@link ReconciliationReportRow#manualClicks}
{@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
{@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
{@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
{@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
{@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation report rows - * @return the reconciliation report rows that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetReconciliationReportRowsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetReconciliationReportRowsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetReconciliationReportRowsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportRowPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateReconciliationReportRows", false)) { - /** - * Updates a list of {@link ReconciliationReportRow} which belong to same - * {@link ReconciliationReport}. - * - * @param reconciliationReportRows a list of reconciliation report rows to update - * @return the updated reconciliation report rows - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateReconciliationReportRows { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportRow[] - */ - public $reconciliationReportRows; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReportRows = null) { - $this->reconciliationReportRows = $reconciliationReportRows; - } - - } -} - -if (!class_exists("UpdateReconciliationReportRowsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateReconciliationReportRowsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportRow[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReconciliationReportRowService", false)) { - /** - * ReconciliationReportRowService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ReconciliationReportRowService extends DfpSoapClient { - - const SERVICE_NAME = "ReconciliationReportRowService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ReconciliationReportRowService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ReconciliationReportRowService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "ReconciliationError" => "ReconciliationError", - "ReconciliationImportError" => "ReconciliationImportError", - "ReconciliationReportRow" => "ReconciliationReportRow", - "ReconciliationReportRowPage" => "ReconciliationReportRowPage", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BillFrom" => "BillFrom", - "CommonError.Reason" => "CommonErrorReason", - "CostType" => "CostType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "ReconciliationError.Reason" => "ReconciliationErrorReason", - "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReconciliationReportRowsByStatement" => "GetReconciliationReportRowsByStatement", - "getReconciliationReportRowsByStatementResponse" => "GetReconciliationReportRowsByStatementResponse", - "updateReconciliationReportRows" => "UpdateReconciliationReportRows", - "updateReconciliationReportRowsResponse" => "UpdateReconciliationReportRowsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that - * satisfy the given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
{@code advertiserId}{@link ReconciliationReportRow#advertiserId}
{@code orderId}{@link ReconciliationReportRow#orderId}
{@code lineItemId}{@link ReconciliationReportRow#lineItemId}
{@code creativeId}{@link ReconciliationReportRow#creativeId}
{@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
{@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
{@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
{@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
{@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
{@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
{@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
{@code manualClicks}{@link ReconciliationReportRow#manualClicks}
{@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
{@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
{@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
{@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
{@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation report rows - * @return the reconciliation report rows that match the given filter - */ - public function getReconciliationReportRowsByStatement($filterStatement) { - $args = new GetReconciliationReportRowsByStatement($filterStatement); - $result = $this->__soapCall("getReconciliationReportRowsByStatement", array($args)); - return $result->rval; - } - /** - * Updates a list of {@link ReconciliationReportRow} which belong to same - * {@link ReconciliationReport}. - * - * @param reconciliationReportRows a list of reconciliation report rows to update - * @return the updated reconciliation report rows - */ - public function updateReconciliationReportRows($reconciliationReportRows) { - $args = new UpdateReconciliationReportRows($reconciliationReportRows); - $result = $this->__soapCall("updateReconciliationReportRows", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php deleted file mode 100755 index 89f85aadd..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/SuggestedAdUnitService.php +++ /dev/null @@ -1,3328 +0,0 @@ -id = $id; - $this->name = $name; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitSize", false)) { - /** - * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting - * with v201108 this also represents the environment, and companions of a - * particular ad in an ad unit. In most cases, it is a simple size with just a - * width and a height (sometimes representing an aspect ratio). - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitSize { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnitSize"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var AdUnitSize[] - */ - public $companions; - - /** - * @access public - * @var string - */ - public $fullDisplayString; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $environmentType = null, $companions = null, $fullDisplayString = null) { - $this->size = $size; - $this->environmentType = $environmentType; - $this->companions = $companions; - $this->fullDisplayString = $fullDisplayString; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SuggestedAdUnitAction", false)) { - /** - * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SuggestedAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SuggestedAdUnitAction"; - - /** - * @access public - * @var string - */ - public $SuggestedAdUnitActionType; - private $_parameterMap = array( - "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($SuggestedAdUnitActionType = null) { - $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; - } - - } -} - -if (!class_exists("SuggestedAdUnit", false)) { - /** - * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has - * been served at least ten times in the past week, but which does not correspond to a defined ad - * unit. This type is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SuggestedAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SuggestedAdUnit"; - - /** - * @access public - * @var string - */ - public $id; - - /** - * @access public - * @var integer - */ - public $numRequests; - - /** - * @access public - * @var string[] - */ - public $path; - - /** - * @access public - * @var AdUnitParent[] - */ - public $parentPath; - - /** - * @access public - * @var tnsAdUnitTargetWindow - */ - public $targetWindow; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var AdUnitSize[] - */ - public $suggestedAdUnitSizes; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $numRequests = null, $path = null, $parentPath = null, $targetWindow = null, $targetPlatform = null, $suggestedAdUnitSizes = null) { - $this->id = $id; - $this->numRequests = $numRequests; - $this->path = $path; - $this->parentPath = $parentPath; - $this->targetWindow = $targetWindow; - $this->targetPlatform = $targetPlatform; - $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; - } - - } -} - -if (!class_exists("SuggestedAdUnitPage", false)) { - /** - * Contains a page of {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SuggestedAdUnitPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SuggestedAdUnitPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var SuggestedAdUnit[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("SuggestedAdUnitUpdateResult", false)) { - /** - * Represents the result of performing an action on {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SuggestedAdUnitUpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SuggestedAdUnitUpdateResult"; - - /** - * @access public - * @var string[] - */ - public $newAdUnitIds; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($newAdUnitIds = null, $numChanges = null) { - $this->newAdUnitIds = $newAdUnitIds; - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdUnitTargetWindow", false)) { - /** - * Corresponds to an HTML link's {@code target} attribute. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AdUnitTargetWindow { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AdUnit.TargetWindow"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetSuggestedAdUnit", false)) { - /** - * Returns the SuggestedAdUnit uniquely identified by the given ID. - * - * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetSuggestedAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $suggestedAdUnitId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($suggestedAdUnitId = null) { - $this->suggestedAdUnitId = $suggestedAdUnitId; - } - - } -} - -if (!class_exists("GetSuggestedAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetSuggestedAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetSuggestedAdUnitsByStatement", false)) { - /** - * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that - * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested - * ad units that are suggested at any one time. - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - *

Note: After API version 201311, the {@code id} field will only be - * numerical. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the suggested ad units that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetSuggestedAdUnitsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetSuggestedAdUnitsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetSuggestedAdUnitsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnitPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformSuggestedAdUnitAction", false)) { - /** - * Performs actions on {@link SuggestedAdUnit} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - * @param suggestedAdUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformSuggestedAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnitAction - */ - public $suggestedAdUnitAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($suggestedAdUnitAction = null, $filterStatement = null) { - $this->suggestedAdUnitAction = $suggestedAdUnitAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformSuggestedAdUnitActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PerformSuggestedAdUnitActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnitUpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ApproveSuggestedAdUnit", false)) { - /** - * Action to approve {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApproveSuggestedAdUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($SuggestedAdUnitActionType = null) { - parent::__construct(); - $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SuggestedAdUnitService", false)) { - /** - * SuggestedAdUnitService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SuggestedAdUnitService extends DfpSoapClient { - - const SERVICE_NAME = "SuggestedAdUnitService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/SuggestedAdUnitService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/SuggestedAdUnitService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitParent" => "AdUnitParent", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "AdUnitSize" => "AdUnitSize", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SuggestedAdUnitAction" => "SuggestedAdUnitAction", - "SuggestedAdUnit" => "SuggestedAdUnit", - "SuggestedAdUnitPage" => "SuggestedAdUnitPage", - "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "AdUnit.TargetWindow" => "AdUnitTargetWindow", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "TargetPlatform" => "TargetPlatform", - "getSuggestedAdUnit" => "GetSuggestedAdUnit", - "getSuggestedAdUnitResponse" => "GetSuggestedAdUnitResponse", - "getSuggestedAdUnitsByStatement" => "GetSuggestedAdUnitsByStatement", - "getSuggestedAdUnitsByStatementResponse" => "GetSuggestedAdUnitsByStatementResponse", - "performSuggestedAdUnitAction" => "PerformSuggestedAdUnitAction", - "performSuggestedAdUnitActionResponse" => "PerformSuggestedAdUnitActionResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the SuggestedAdUnit uniquely identified by the given ID. - * - * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. - */ - public function getSuggestedAdUnit($suggestedAdUnitId) { - $args = new GetSuggestedAdUnit($suggestedAdUnitId); - $result = $this->__soapCall("getSuggestedAdUnit", array($args)); - return $result->rval; - } - /** - * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that - * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested - * ad units that are suggested at any one time. - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - *

Note: After API version 201311, the {@code id} field will only be - * numerical. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the suggested ad units that match the given filter - */ - public function getSuggestedAdUnitsByStatement($filterStatement) { - $args = new GetSuggestedAdUnitsByStatement($filterStatement); - $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link SuggestedAdUnit} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - * @param suggestedAdUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the result of the action performed - */ - public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { - $args = new PerformSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); - $result = $this->__soapCall("performSuggestedAdUnitAction", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php b/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php deleted file mode 100755 index a5a4215e8..000000000 --- a/src/Google/Api/Ads/Dfp/v201308/WorkflowActionService.php +++ /dev/null @@ -1,2549 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("WorkflowAction", false)) { - /** - * A {@code WorkflowAction} represents an executable in a workflow, such as requesting approval or - * sending notification. When the workflow has executed to a round, all of its actions will start. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "WorkflowAction"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var WorkflowActionPerformer[] - */ - public $performers; - - /** - * @access public - * @var tnsWorkflowActionType - */ - public $type; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $performers = null, $type = null) { - $this->id = $id; - $this->name = $name; - $this->performers = $performers; - $this->type = $type; - } - - } -} - -if (!class_exists("WorkflowActionPage", false)) { - /** - * Captures a page of {@link WorkflowAction} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowActionPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "WorkflowActionPage"; - - /** - * @access public - * @var WorkflowAction[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("WorkflowActionPerformer", false)) { - /** - * A {@code WorkflowActionPerformer} represents a workflow action performer. The performer is either - * an individual user or a team. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowActionPerformer { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "WorkflowActionPerformer"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsWorkflowRoundActionPerformerType - */ - public $type; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $type = null, $userId = null, $teamId = null) { - $this->id = $id; - $this->type = $type; - $this->userId = $userId; - $this->teamId = $teamId; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("WorkflowActionType", false)) { - /** - * Represents the type of an workflow round action. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowActionType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "WorkflowActionType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("WorkflowRoundActionPerformerType", false)) { - /** - * The type of WorkflowRoundActionPerformer. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowRoundActionPerformerType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "WorkflowRoundActionPerformerType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetWorkflowAction", false)) { - /** - * Returns the {@link WorkflowAction} uniquely identified by the given ID. - * - * @param workflowActionId the ID of the workflow action, which must already exist - * @return the {@code WorkflowAction} uniquely identified by the given ID. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetWorkflowAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $workflowActionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($workflowActionId = null) { - $this->workflowActionId = $workflowActionId; - } - - } -} - -if (!class_exists("GetWorkflowActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetWorkflowActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var WorkflowAction - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetWorkflowActionsByStatement", false)) { - /** - * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
id{@link WorkflowAction#id}
name{@link WorkflowAction#name}
- * - * @param filterStatement a Publisher Query Language statement used to filter a set of workflow - * actions - * @return the {@link WorkflowAction workflow actions} that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetWorkflowActionsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetWorkflowActionsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetWorkflowActionsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var WorkflowActionPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("WorkflowActionService", false)) { - /** - * WorkflowActionService - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class WorkflowActionService extends DfpSoapClient { - - const SERVICE_NAME = "WorkflowActionService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/WorkflowActionService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/WorkflowActionService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "WorkflowAction" => "WorkflowAction", - "WorkflowActionPage" => "WorkflowActionPage", - "WorkflowActionPerformer" => "WorkflowActionPerformer", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "WorkflowActionType" => "WorkflowActionType", - "WorkflowRoundActionPerformerType" => "WorkflowRoundActionPerformerType", - "getWorkflowAction" => "GetWorkflowAction", - "getWorkflowActionResponse" => "GetWorkflowActionResponse", - "getWorkflowActionsByStatement" => "GetWorkflowActionsByStatement", - "getWorkflowActionsByStatementResponse" => "GetWorkflowActionsByStatementResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link WorkflowAction} uniquely identified by the given ID. - * - * @param workflowActionId the ID of the workflow action, which must already exist - * @return the {@code WorkflowAction} uniquely identified by the given ID. - */ - public function getWorkflowAction($workflowActionId) { - $args = new GetWorkflowAction($workflowActionId); - $result = $this->__soapCall("getWorkflowAction", array($args)); - return $result->rval; - } - /** - * Gets a {@link WorkflowActionPage} of {@link WorkflowAction} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
id{@link WorkflowAction#id}
name{@link WorkflowAction#name}
- * - * @param filterStatement a Publisher Query Language statement used to filter a set of workflow - * actions - * @return the {@link WorkflowAction workflow actions} that match the given filter - */ - public function getWorkflowActionsByStatement($filterStatement) { - $args = new GetWorkflowActionsByStatement($filterStatement); - $result = $this->__soapCall("getWorkflowActionsByStatement", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php deleted file mode 100755 index 33f383eeb..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ActivityGroupService.php +++ /dev/null @@ -1,3272 +0,0 @@ -id = $id; - $this->name = $name; - $this->companyIds = $companyIds; - $this->impressionsLookback = $impressionsLookback; - $this->clicksLookback = $clicksLookback; - $this->status = $status; - } - - } -} - -if (!class_exists("ActivityGroupPage", false)) { - /** - * Captures a page of {@link ActivityGroup} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivityGroupPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivityGroupPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ActivityGroup[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ActivityErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivityErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivityError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ActivityGroupStatus", false)) { - /** - * The activity group status. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivityGroupStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivityGroup.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateActivityGroup", false)) { - /** - * Creates a new {@link ActivityGroup}. - * - * @param activityGroup the activity group to be created. - * @return the created activity group with its ID filled in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $activityGroup; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroup = null) { - $this->activityGroup = $activityGroup; - } - - } -} - -if (!class_exists("CreateActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateActivityGroups", false)) { - /** - * Creates a new {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to be created. - * @return the created activity groups with their IDs filled in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateActivityGroups { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $activityGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroups = null) { - $this->activityGroups = $activityGroups; - } - - } -} - -if (!class_exists("CreateActivityGroupsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateActivityGroupsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetActivityGroup", false)) { - /** - * Returns the {@link ActivityGroup} uniquely identified by the given ID. - * - * @param activityGroupId the ID of the activity group, which must already exist. - * @return the {@code ActivityGroup} uniquely identified by the given ID. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $activityGroupId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroupId = null) { - $this->activityGroupId = $activityGroupId; - } - - } -} - -if (!class_exists("GetActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetActivityGroupsByStatement", false)) { - /** - * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ActivityGroup#id}
{@code name}{@link ActivityGroup#name}
{@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
{@code clicksLookback}{@link ActivityGroup#clicksLookback}
{@code status}{@link ActivityGroup#status}
- * - * @param filterStatement a statement used to filter a set of activity groups - * @return the activity groups that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetActivityGroupsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetActivityGroupsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetActivityGroupsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroupPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateActivityGroup", false)) { - /** - * Updates the specified {@link ActivityGroup}. - * - * @param activityGroup the activity group to update. - * @return the updated activity group. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $activityGroup; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroup = null) { - $this->activityGroup = $activityGroup; - } - - } -} - -if (!class_exists("UpdateActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateActivityGroups", false)) { - /** - * Updates the specified {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to update. - * @return the updated activity groups. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateActivityGroups { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $activityGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroups = null) { - $this->activityGroups = $activityGroups; - } - - } -} - -if (!class_exists("UpdateActivityGroupsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateActivityGroupsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivityError", false)) { - /** - * Errors relating to Activity and Activity Group services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivityError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivityError"; - - /** - * @access public - * @var tnsActivityErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ActivityGroupService", false)) { - /** - * ActivityGroupService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivityGroupService extends DfpSoapClient { - - const SERVICE_NAME = "ActivityGroupService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ActivityGroupService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ActivityGroupService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivityError" => "ActivityError", - "ActivityGroup" => "ActivityGroup", - "ActivityGroupPage" => "ActivityGroupPage", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ActivityError.Reason" => "ActivityErrorReason", - "ActivityGroup.Status" => "ActivityGroupStatus", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createActivityGroup" => "CreateActivityGroup", - "createActivityGroupResponse" => "CreateActivityGroupResponse", - "createActivityGroups" => "CreateActivityGroups", - "createActivityGroupsResponse" => "CreateActivityGroupsResponse", - "getActivityGroup" => "GetActivityGroup", - "getActivityGroupResponse" => "GetActivityGroupResponse", - "getActivityGroupsByStatement" => "GetActivityGroupsByStatement", - "getActivityGroupsByStatementResponse" => "GetActivityGroupsByStatementResponse", - "updateActivityGroup" => "UpdateActivityGroup", - "updateActivityGroupResponse" => "UpdateActivityGroupResponse", - "updateActivityGroups" => "UpdateActivityGroups", - "updateActivityGroupsResponse" => "UpdateActivityGroupsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ActivityGroup}. - * - * @param activityGroup the activity group to be created. - * @return the created activity group with its ID filled in. - */ - public function createActivityGroup($activityGroup) { - $args = new CreateActivityGroup($activityGroup); - $result = $this->__soapCall("createActivityGroup", array($args)); - return $result->rval; - } - /** - * Creates a new {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to be created. - * @return the created activity groups with their IDs filled in. - */ - public function createActivityGroups($activityGroups) { - $args = new CreateActivityGroups($activityGroups); - $result = $this->__soapCall("createActivityGroups", array($args)); - return $result->rval; - } - /** - * Returns the {@link ActivityGroup} uniquely identified by the given ID. - * - * @param activityGroupId the ID of the activity group, which must already exist. - * @return the {@code ActivityGroup} uniquely identified by the given ID. - */ - public function getActivityGroup($activityGroupId) { - $args = new GetActivityGroup($activityGroupId); - $result = $this->__soapCall("getActivityGroup", array($args)); - return $result->rval; - } - /** - * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ActivityGroup#id}
{@code name}{@link ActivityGroup#name}
{@code impressionsLookback}{@link ActivityGroup#impressionsLookback}
{@code clicksLookback}{@link ActivityGroup#clicksLookback}
{@code status}{@link ActivityGroup#status}
- * - * @param filterStatement a statement used to filter a set of activity groups - * @return the activity groups that match the given filter - */ - public function getActivityGroupsByStatement($filterStatement) { - $args = new GetActivityGroupsByStatement($filterStatement); - $result = $this->__soapCall("getActivityGroupsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ActivityGroup}. - * - * @param activityGroup the activity group to update. - * @return the updated activity group. - */ - public function updateActivityGroup($activityGroup) { - $args = new UpdateActivityGroup($activityGroup); - $result = $this->__soapCall("updateActivityGroup", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to update. - * @return the updated activity groups. - */ - public function updateActivityGroups($activityGroups) { - $args = new UpdateActivityGroups($activityGroups); - $result = $this->__soapCall("updateActivityGroups", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php deleted file mode 100755 index 857a2b62c..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/AudienceSegmentService.php +++ /dev/null @@ -1,4344 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AudienceSegmentDataProvider", false)) { - /** - * Data provider that owns this segment. For a {@link FirstPartyAudienceSegment}, it would be the - * publisher network. For a {@link SharedAudienceSegment} or a {@link ThirdPartyAudienceSegment}, it - * would be the entity that provides that {@link AudienceSegment}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentDataProvider { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentDataProvider"; - - /** - * @access public - * @var string - */ - public $name; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($name = null) { - $this->name = $name; - } - - } -} - -if (!class_exists("AudienceSegmentPage", false)) { - /** - * Represents a page of {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var AudienceSegment[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCriteriaNode", false)) { - /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaNode"; - - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FirstPartyAudienceSegmentRule", false)) { - /** - * Rule of a {@link FirstPartyAudienceSegment} that defines user's eligibility criteria to be part - * of a segment. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FirstPartyAudienceSegmentRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FirstPartyAudienceSegmentRule"; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryRule; - - /** - * @access public - * @var CustomCriteriaSet - */ - public $customCriteriaRule; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($inventoryRule = null, $customCriteriaRule = null) { - $this->inventoryRule = $inventoryRule; - $this->customCriteriaRule = $customCriteriaRule; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AudienceSegmentAction", false)) { - /** - * Action that can be performed on {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentAction"; - - /** - * @access public - * @var string - */ - public $AudienceSegmentActionType; - private $_parameterMap = array( - "AudienceSegmentAction.Type" => "AudienceSegmentActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AudienceSegmentActionType = null) { - $this->AudienceSegmentActionType = $AudienceSegmentActionType; - } - - } -} - -if (!class_exists("AudienceSegment", false)) { - /** - * An {@link AudienceSegment} represents audience segment object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegment"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var tnsAudienceSegmentStatus - */ - public $status; - - /** - * @access public - * @var integer - */ - public $size; - - /** - * @access public - * @var AudienceSegmentDataProvider - */ - public $dataProvider; - - /** - * @access public - * @var tnsAudienceSegmentAudienceSegmentType - */ - public $type; - - /** - * @access public - * @var string - */ - public $AudienceSegmentType; - private $_parameterMap = array( - "AudienceSegment.Type" => "AudienceSegmentType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->status = $status; - $this->size = $size; - $this->dataProvider = $dataProvider; - $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; - } - - } -} - -if (!class_exists("AudienceSegmentError", false)) { - /** - * Errors that could occur on audience segment related requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentError"; - - /** - * @access public - * @var tnsAudienceSegmentErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SharedAudienceSegment", false)) { - /** - * A {@link SharedAudienceSegment} is an {@link AudienceSegment} owned by another entity and shared - * with the publisher network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SharedAudienceSegment extends AudienceSegment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SharedAudienceSegment"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->status = $status; - $this->size = $size; - $this->dataProvider = $dataProvider; - $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { - /** - * Specifies the available logical operators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCriteriaSetLogicalOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { - /** - * Specifies the available comparison operators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", false)) { - /** - * Approval status values for {@link ThirdPartyAudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentAudienceSegmentType", false)) { - /** - * Specifies types for {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentAudienceSegmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegment.AudienceSegmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentStatus", false)) { - /** - * Specifies the statuses for {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegment.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceSegmentErrorReason", false)) { - /** - * Reason of the given {@link AudienceSegmentError}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateAudienceSegments", false)) { - /** - * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. - * - * @param segments first-party audience segments to create - * @return created first-party audience segments - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAudienceSegments { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var FirstPartyAudienceSegment[] - */ - public $segments; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($segments = null) { - $this->segments = $segments; - } - - } -} - -if (!class_exists("CreateAudienceSegmentsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAudienceSegmentsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var FirstPartyAudienceSegment[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAudienceSegmentsByStatement", false)) { - /** - * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link AudienceSegment#id}
{@code name}{@link AudienceSegment#name}
{@code status}{@link AudienceSegment#status}
{@code type}{@link AudienceSegment#type}
{@code size}{@link AudienceSegment#size}
{@code dataProviderName}{@link AudienceSegmentDataProvider#name}
{@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
{@code cost}{@link ThirdPartyAudienceSegment#cost}
{@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
{@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter a set of audience - * segments - * @return the audience segments that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAudienceSegmentsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetAudienceSegmentsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAudienceSegmentsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AudienceSegmentPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformAudienceSegmentAction", false)) { - /** - * Performs the given {@link AudienceSegmentAction} on the set of segments identified by the given - * statement. - * - * @param action {@link AudienceSegmentAction} to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of audience - * segments - * @return {@link UpdateResult} indicating the result - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformAudienceSegmentAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AudienceSegmentAction - */ - public $action; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($action = null, $filterStatement = null) { - $this->action = $action; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformAudienceSegmentActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformAudienceSegmentActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateAudienceSegments", false)) { - /** - * Updates the given {@link RuleBasedFirstPartyAudienceSegment} objects. - * - * @param segments first-party audience segments to update - * @return updated first-party audience segments - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateAudienceSegments { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var FirstPartyAudienceSegment[] - */ - public $segments; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($segments = null) { - $this->segments = $segments; - } - - } -} - -if (!class_exists("UpdateAudienceSegmentsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateAudienceSegmentsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var FirstPartyAudienceSegment[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateAudienceSegments", false)) { - /** - * Action that can be performed on {@link FirstPartyAudienceSegment} objects to activate them. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateAudienceSegments extends AudienceSegmentAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateAudienceSegments"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AudienceSegmentActionType = null) { - parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ApproveAudienceSegments", false)) { - /** - * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to approve them. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApproveAudienceSegments extends AudienceSegmentAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApproveAudienceSegments"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AudienceSegmentActionType = null) { - parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; - } - - } -} - -if (!class_exists("FirstPartyAudienceSegment", false)) { - /** - * A {@link FirstPartyAudienceSegment} is an {@link AudienceSegment} owned by the publisher network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FirstPartyAudienceSegment extends AudienceSegment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FirstPartyAudienceSegment"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->status = $status; - $this->size = $size; - $this->dataProvider = $dataProvider; - $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteriaSet", false)) { - /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; - - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { - parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("CustomCriteriaLeaf", false)) { - /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCriteriaLeaf extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaLeaf"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomCriteriaNodeType = null) { - parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; - } - - } -} - -if (!class_exists("AudienceSegmentCriteria", false)) { - /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; - - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($operator = null, $audienceSegmentIds = null) { - parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateAudienceSegments", false)) { - /** - * Action that can be performed on {@link FirstPartyAudienceSegment} objects to deactivate them. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateAudienceSegments extends AudienceSegmentAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateAudienceSegments"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AudienceSegmentActionType = null) { - parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; - } - - } -} - -if (!class_exists("ThirdPartyAudienceSegment", false)) { - /** - * A {@link ThirdPartyAudienceSegment} is an {@link AudienceSegment} owned by a data provider and - * licensed to the DFP publisher. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ThirdPartyAudienceSegment extends AudienceSegment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ThirdPartyAudienceSegment"; - - /** - * @access public - * @var tnsThirdPartyAudienceSegmentAudienceSegmentApprovalStatus - */ - public $approvalStatus; - - /** - * @access public - * @var Money - */ - public $cost; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($approvalStatus = null, $cost = null, $startDateTime = null, $endDateTime = null, $id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { - parent::__construct(); - $this->approvalStatus = $approvalStatus; - $this->cost = $cost; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->status = $status; - $this->size = $size; - $this->dataProvider = $dataProvider; - $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; - } - - } -} - -if (!class_exists("NonRuleBasedFirstPartyAudienceSegment", false)) { - /** - * A {@link NonRuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by - * the publisher network. It doesn't contain a rule. Cookies are usually added to this segment via - * cookie upload. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NonRuleBasedFirstPartyAudienceSegment extends FirstPartyAudienceSegment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NonRuleBasedFirstPartyAudienceSegment"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - parent::__construct(); - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("PopulateAudienceSegments", false)) { - /** - * Action that can be performed on {@link FirstPartyAudienceSegment} objects to populate them based - * on last 30 days of traffic. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PopulateAudienceSegments extends AudienceSegmentAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PopulateAudienceSegments"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AudienceSegmentActionType = null) { - parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; - } - - } -} - -if (!class_exists("RejectAudienceSegments", false)) { - /** - * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to reject them. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RejectAudienceSegments extends AudienceSegmentAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RejectAudienceSegments"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AudienceSegmentActionType = null) { - parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; - } - - } -} - -if (!class_exists("RuleBasedFirstPartyAudienceSegmentSummary", false)) { - /** - * A {@link RuleBasedFirstPartyAudienceSegmentSummary} is a {@link FirstPartyAudienceSegment} owned - * by the publisher network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RuleBasedFirstPartyAudienceSegmentSummary extends FirstPartyAudienceSegment { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RuleBasedFirstPartyAudienceSegmentSummary"; - - /** - * @access public - * @var integer - */ - public $pageViews; - - /** - * @access public - * @var integer - */ - public $recencyDays; - - /** - * @access public - * @var integer - */ - public $membershipExpirationDays; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($pageViews = null, $recencyDays = null, $membershipExpirationDays = null) { - parent::__construct(); - $this->pageViews = $pageViews; - $this->recencyDays = $recencyDays; - $this->membershipExpirationDays = $membershipExpirationDays; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomCriteria", false)) { - /** - * A {@link CustomCriteria} object is used to perform custom criteria targeting - * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} - * or {@link CustomTargetingKey.Type#FREEFORM}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteria"; - - /** - * @access public - * @var integer - */ - public $keyId; - - /** - * @access public - * @var integer[] - */ - public $valueIds; - - /** - * @access public - * @var tnsCustomCriteriaComparisonOperator - */ - public $operator; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keyId = null, $valueIds = null, $operator = null) { - parent::__construct(); - $this->keyId = $keyId; - $this->valueIds = $valueIds; - $this->operator = $operator; - } - - } -} - -if (!class_exists("RuleBasedFirstPartyAudienceSegment", false)) { - /** - * A {@link RuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by the - * publisher network. It contains a rule. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RuleBasedFirstPartyAudienceSegment extends RuleBasedFirstPartyAudienceSegmentSummary { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RuleBasedFirstPartyAudienceSegment"; - - /** - * @access public - * @var FirstPartyAudienceSegmentRule - */ - public $rule; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rule = null, $pageViews = null, $recencyDays = null, $membershipExpirationDays = null) { - parent::__construct(); - $this->rule = $rule; - $this->pageViews = $pageViews; - $this->recencyDays = $recencyDays; - $this->membershipExpirationDays = $membershipExpirationDays; - } - - } -} - -if (!class_exists("AudienceSegmentService", false)) { - /** - * AudienceSegmentService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceSegmentService extends DfpSoapClient { - - const SERVICE_NAME = "AudienceSegmentService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/AudienceSegmentService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/AudienceSegmentService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateAudienceSegments" => "ActivateAudienceSegments", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "ApproveAudienceSegments" => "ApproveAudienceSegments", - "AudienceSegmentDataProvider" => "AudienceSegmentDataProvider", - "AudienceSegmentPage" => "AudienceSegmentPage", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomCriteria" => "CustomCriteria", - "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomCriteriaLeaf" => "CustomCriteriaLeaf", - "CustomCriteriaNode" => "CustomCriteriaNode", - "AudienceSegmentCriteria" => "AudienceSegmentCriteria", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateAudienceSegments" => "DeactivateAudienceSegments", - "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "Money" => "Money", - "NonRuleBasedFirstPartyAudienceSegment" => "NonRuleBasedFirstPartyAudienceSegment", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PopulateAudienceSegments" => "PopulateAudienceSegments", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "FirstPartyAudienceSegmentRule" => "FirstPartyAudienceSegmentRule", - "QuotaError" => "QuotaError", - "RejectAudienceSegments" => "RejectAudienceSegments", - "RequiredError" => "RequiredError", - "RuleBasedFirstPartyAudienceSegment" => "RuleBasedFirstPartyAudienceSegment", - "RuleBasedFirstPartyAudienceSegmentSummary" => "RuleBasedFirstPartyAudienceSegmentSummary", - "AudienceSegmentAction" => "AudienceSegmentAction", - "AudienceSegment" => "AudienceSegment", - "AudienceSegmentError" => "AudienceSegmentError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SharedAudienceSegment" => "SharedAudienceSegment", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", - "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", - "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "AudienceSegment.AudienceSegmentType" => "AudienceSegmentAudienceSegmentType", - "AudienceSegment.Status" => "AudienceSegmentStatus", - "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createAudienceSegments" => "CreateAudienceSegments", - "createAudienceSegmentsResponse" => "CreateAudienceSegmentsResponse", - "getAudienceSegmentsByStatement" => "GetAudienceSegmentsByStatement", - "getAudienceSegmentsByStatementResponse" => "GetAudienceSegmentsByStatementResponse", - "performAudienceSegmentAction" => "PerformAudienceSegmentAction", - "performAudienceSegmentActionResponse" => "PerformAudienceSegmentActionResponse", - "updateAudienceSegments" => "UpdateAudienceSegments", - "updateAudienceSegmentsResponse" => "UpdateAudienceSegmentsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. - * - * @param segments first-party audience segments to create - * @return created first-party audience segments - */ - public function createAudienceSegments($segments) { - $args = new CreateAudienceSegments($segments); - $result = $this->__soapCall("createAudienceSegments", array($args)); - return $result->rval; - } - /** - * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link AudienceSegment#id}
{@code name}{@link AudienceSegment#name}
{@code status}{@link AudienceSegment#status}
{@code type}{@link AudienceSegment#type}
{@code size}{@link AudienceSegment#size}
{@code dataProviderName}{@link AudienceSegmentDataProvider#name}
{@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
{@code cost}{@link ThirdPartyAudienceSegment#cost}
{@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
{@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter a set of audience - * segments - * @return the audience segments that match the given filter - */ - public function getAudienceSegmentsByStatement($filterStatement) { - $args = new GetAudienceSegmentsByStatement($filterStatement); - $result = $this->__soapCall("getAudienceSegmentsByStatement", array($args)); - return $result->rval; - } - /** - * Performs the given {@link AudienceSegmentAction} on the set of segments identified by the given - * statement. - * - * @param action {@link AudienceSegmentAction} to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of audience - * segments - * @return {@link UpdateResult} indicating the result - */ - public function performAudienceSegmentAction($action, $filterStatement) { - $args = new PerformAudienceSegmentAction($action, $filterStatement); - $result = $this->__soapCall("performAudienceSegmentAction", array($args)); - return $result->rval; - } - /** - * Updates the given {@link RuleBasedFirstPartyAudienceSegment} objects. - * - * @param segments first-party audience segments to update - * @return updated first-party audience segments - */ - public function updateAudienceSegments($segments) { - $args = new UpdateAudienceSegments($segments); - $result = $this->__soapCall("updateAudienceSegments", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/CompanyService.php b/src/Google/Api/Ads/Dfp/v201311/CompanyService.php deleted file mode 100755 index ea441301b..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/CompanyService.php +++ /dev/null @@ -1,3884 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyCreditStatusError", false)) { - /** - * Lists all errors due to {@link Company#creditStatus}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyCreditStatusError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanyCreditStatusError"; - - /** - * @access public - * @var tnsCompanyCreditStatusErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Company", false)) { - /** - * A {@code Company} represents an agency, a single advertiser or an entire - * advertising network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Company { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Company"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsCompanyType - */ - public $type; - - /** - * @access public - * @var string - */ - public $address; - - /** - * @access public - * @var string - */ - public $email; - - /** - * @access public - * @var string - */ - public $faxPhone; - - /** - * @access public - * @var string - */ - public $primaryPhone; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $comment; - - /** - * @access public - * @var tnsCompanyCreditStatus - */ - public $creditStatus; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var boolean - */ - public $enableSameAdvertiserCompetitiveExclusion; - - /** - * @access public - * @var integer - */ - public $primaryContactId; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var integer - */ - public $thirdPartyCompanyId; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $type = null, $address = null, $email = null, $faxPhone = null, $primaryPhone = null, $externalId = null, $comment = null, $creditStatus = null, $appliedLabels = null, $enableSameAdvertiserCompetitiveExclusion = null, $primaryContactId = null, $appliedTeamIds = null, $thirdPartyCompanyId = null, $lastModifiedDateTime = null) { - $this->id = $id; - $this->name = $name; - $this->type = $type; - $this->address = $address; - $this->email = $email; - $this->faxPhone = $faxPhone; - $this->primaryPhone = $primaryPhone; - $this->externalId = $externalId; - $this->comment = $comment; - $this->creditStatus = $creditStatus; - $this->appliedLabels = $appliedLabels; - $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; - $this->primaryContactId = $primaryContactId; - $this->appliedTeamIds = $appliedTeamIds; - $this->thirdPartyCompanyId = $thirdPartyCompanyId; - $this->lastModifiedDateTime = $lastModifiedDateTime; - } - - } -} - -if (!class_exists("CompanyError", false)) { - /** - * A list of all errors associated with companies. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanyError"; - - /** - * @access public - * @var tnsCompanyErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CompanyPage", false)) { - /** - * Captures a page of {@link Company} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanyPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Company[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatusErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyCreditStatusErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyCreditStatus", false)) { - /** - * Specifies the credit-worthiness of the company for which the publisher runs - * an order. By doing so, the publisher can control the running of campaigns - * for the company. A publisher can choose between Basic and Advanced Credit - * Status settings. This feature needs to be enabled in the DoubleClick For - * Publishers web site. Also the kind of setting you need - Basic or Advanced - * must be configured. If Basic is enabled then, the values allowed are - * {@code ACTIVE} and {@code INACTIVE}. If Advanced is chosen, then all values - * are allowed. Choosing an Advanced setting when only the Basic feature has - * been enabled, or using the Basic setting without turning the feature on - * will result in an error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyCreditStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Company.CreditStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyType", false)) { - /** - * The type of the company. Once a company is created, it is not possible to - * change its type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Company.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CompanyErrorReason", false)) { - /** - * Enumerates all possible company specific errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanyError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCompanies", false)) { - /** - * Creates new {@link Company} objects. - * - * @param companies the companies to create - * @return the created companies with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCompanies { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $companies; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companies = null) { - $this->companies = $companies; - } - - } -} - -if (!class_exists("CreateCompaniesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCompaniesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCompany", false)) { - /** - * Creates a new {@link Company}. - * - * The following fields are required: - *
    - *
  • {@link Company#name}
  • - *
  • {@link Company#type}
  • - *
- * - * @param company the company to create - * @return the new company with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $company; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($company = null) { - $this->company = $company; - } - - } -} - -if (!class_exists("CreateCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCompaniesByStatement", false)) { - /** - * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Company#id}
{@code name}{@link Company#name}
{@code type}{@link Company#type}
{@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of companies - * @return the companies that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCompaniesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCompaniesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCompaniesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CompanyPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCompany", false)) { - /** - * Returns the {@link Company} uniquely identified by the given ID. - * - * @param companyId ID of the company, which must already exist - * @return the {@code Company} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $companyId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companyId = null) { - $this->companyId = $companyId; - } - - } -} - -if (!class_exists("GetCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCompanies", false)) { - /** - * Updates the specified {@link Company} objects. - * - * @param companies the companies to update - * @return the updated companies - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCompanies { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $companies; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companies = null) { - $this->companies = $companies; - } - - } -} - -if (!class_exists("UpdateCompaniesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCompaniesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCompany", false)) { - /** - * Updates the specified {@link Company}. - * - * @param company the company to update - * @return the updated company - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $company; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($company = null) { - $this->company = $company; - } - - } -} - -if (!class_exists("UpdateCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CompanyService", false)) { - /** - * CompanyService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CompanyService extends DfpSoapClient { - - const SERVICE_NAME = "CompanyService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/CompanyService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/CompanyService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CompanyCreditStatusError" => "CompanyCreditStatusError", - "Company" => "Company", - "CompanyError" => "CompanyError", - "CompanyPage" => "CompanyPage", - "CrossSellError" => "CrossSellError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", - "Company.CreditStatus" => "CompanyCreditStatus", - "Company.Type" => "CompanyType", - "CompanyError.Reason" => "CompanyErrorReason", - "CrossSellError.Reason" => "CrossSellErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "createCompanies" => "CreateCompanies", - "createCompaniesResponse" => "CreateCompaniesResponse", - "createCompany" => "CreateCompany", - "createCompanyResponse" => "CreateCompanyResponse", - "getCompaniesByStatement" => "GetCompaniesByStatement", - "getCompaniesByStatementResponse" => "GetCompaniesByStatementResponse", - "getCompany" => "GetCompany", - "getCompanyResponse" => "GetCompanyResponse", - "updateCompanies" => "UpdateCompanies", - "updateCompaniesResponse" => "UpdateCompaniesResponse", - "updateCompany" => "UpdateCompany", - "updateCompanyResponse" => "UpdateCompanyResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates new {@link Company} objects. - * - * @param companies the companies to create - * @return the created companies with their IDs filled in - */ - public function createCompanies($companies) { - $args = new CreateCompanies($companies); - $result = $this->__soapCall("createCompanies", array($args)); - return $result->rval; - } - /** - * Creates a new {@link Company}. - * - * The following fields are required: - *
    - *
  • {@link Company#name}
  • - *
  • {@link Company#type}
  • - *
- * - * @param company the company to create - * @return the new company with its ID filled in - */ - public function createCompany($company) { - $args = new CreateCompany($company); - $result = $this->__soapCall("createCompany", array($args)); - return $result->rval; - } - /** - * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Company#id}
{@code name}{@link Company#name}
{@code type}{@link Company#type}
{@code lastModifiedDateTime}{@link Company#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of companies - * @return the companies that match the given filter - */ - public function getCompaniesByStatement($filterStatement) { - $args = new GetCompaniesByStatement($filterStatement); - $result = $this->__soapCall("getCompaniesByStatement", array($args)); - return $result->rval; - } - /** - * Returns the {@link Company} uniquely identified by the given ID. - * - * @param companyId ID of the company, which must already exist - * @return the {@code Company} uniquely identified by the given ID - */ - public function getCompany($companyId) { - $args = new GetCompany($companyId); - $result = $this->__soapCall("getCompany", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Company} objects. - * - * @param companies the companies to update - * @return the updated companies - */ - public function updateCompanies($companies) { - $args = new UpdateCompanies($companies); - $result = $this->__soapCall("updateCompanies", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Company}. - * - * @param company the company to update - * @return the updated company - */ - public function updateCompany($company) { - $args = new UpdateCompany($company); - $result = $this->__soapCall("updateCompany", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ContactService.php b/src/Google/Api/Ads/Dfp/v201311/ContactService.php deleted file mode 100755 index ad2c40efd..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ContactService.php +++ /dev/null @@ -1,3439 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContactError", false)) { - /** - * Errors associated with {@code Contact}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContactError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContactError"; - - /** - * @access public - * @var tnsContactErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContactPage", false)) { - /** - * Captures a page of {@link Contact} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContactPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContactPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Contact[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("BaseContact", false)) { - /** - * Base class for a {@link Contact}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseContact"; - - /** - * @access public - * @var string - */ - public $BaseContactType; - private $_parameterMap = array( - "BaseContact.Type" => "BaseContactType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($BaseContactType = null) { - $this->BaseContactType = $BaseContactType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContactStatus", false)) { - /** - * Describes the contact statuses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContactStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Contact.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContactErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContactErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContactError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateContact", false)) { - /** - * Creates a new {@link Contact}. - * - * The following fields are required: - *
    - *
  • {@link Contact#companyId}
  • - *
  • {@link Contact#name}
  • - *
- * - * @param contact the contact to create - * @return the contact with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $contact; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contact = null) { - $this->contact = $contact; - } - - } -} - -if (!class_exists("CreateContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateContacts", false)) { - /** - * Creates new {@link Contact} objects. - * - * @param contacts the contacts to create - * @return the created contacts with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContacts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $contacts; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contacts = null) { - $this->contacts = $contacts; - } - - } -} - -if (!class_exists("CreateContactsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContactsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContact", false)) { - /** - * Returns the {@link Contact} uniquely identified by the given ID. - * - * @param contactId the ID of the contact, which must already exist - * @return the {@code Contact} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $contactId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contactId = null) { - $this->contactId = $contactId; - } - - } -} - -if (!class_exists("GetContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContactsByStatement", false)) { - /** - * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code name}{@link Contact#name}
{@code email}{@link Contact#email}
{@code id}{@link Contact#id}
{@code comment}{@link Contact#comment}
{@code companyId}{@link Contact#companyId}
{@code title}{@link Contact#title}
{@code cellPhone}{@link Contact#cellPhone}
{@code workPhone}{@link Contact#workPhone}
{@code faxPhone}{@link Contact#faxPhone}
{@code status}{@link Contact#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of contacts - * @return the contacts that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContactsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetContactsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContactsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContactPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContact", false)) { - /** - * Updates the specified {@link Contact}. - * - * @param contact the contact to update - * @return the updated contact - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $contact; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contact = null) { - $this->contact = $contact; - } - - } -} - -if (!class_exists("UpdateContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContacts", false)) { - /** - * Updates the specified {@link Contact} objects. - * - * @param contacts the contacts to update - * @return the updated contacts - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContacts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $contacts; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contacts = null) { - $this->contacts = $contacts; - } - - } -} - -if (!class_exists("UpdateContactsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContactsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Contact", false)) { - /** - * A {@code Contact} represents a person who is affiliated with a single - * {@link Company}. A contact can have a variety of contact information - * associated to it, and can be invited to view their company's orders, line - * items, creatives, and reports. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Contact extends BaseContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Contact"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var integer - */ - public $companyId; - - /** - * @access public - * @var tnsContactStatus - */ - public $status; - - /** - * @access public - * @var string - */ - public $address; - - /** - * @access public - * @var string - */ - public $cellPhone; - - /** - * @access public - * @var string - */ - public $comment; - - /** - * @access public - * @var string - */ - public $email; - - /** - * @access public - * @var string - */ - public $faxPhone; - - /** - * @access public - * @var string - */ - public $title; - - /** - * @access public - * @var string - */ - public $workPhone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $companyId = null, $status = null, $address = null, $cellPhone = null, $comment = null, $email = null, $faxPhone = null, $title = null, $workPhone = null, $BaseContactType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->companyId = $companyId; - $this->status = $status; - $this->address = $address; - $this->cellPhone = $cellPhone; - $this->comment = $comment; - $this->email = $email; - $this->faxPhone = $faxPhone; - $this->title = $title; - $this->workPhone = $workPhone; - $this->BaseContactType = $BaseContactType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ContactService", false)) { - /** - * ContactService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContactService extends DfpSoapClient { - - const SERVICE_NAME = "ContactService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ContactService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ContactService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Contact" => "Contact", - "ContactError" => "ContactError", - "ContactPage" => "ContactPage", - "BaseContact" => "BaseContact", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "Contact.Status" => "ContactStatus", - "ContactError.Reason" => "ContactErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createContact" => "CreateContact", - "createContactResponse" => "CreateContactResponse", - "createContacts" => "CreateContacts", - "createContactsResponse" => "CreateContactsResponse", - "getContact" => "GetContact", - "getContactResponse" => "GetContactResponse", - "getContactsByStatement" => "GetContactsByStatement", - "getContactsByStatementResponse" => "GetContactsByStatementResponse", - "updateContact" => "UpdateContact", - "updateContactResponse" => "UpdateContactResponse", - "updateContacts" => "UpdateContacts", - "updateContactsResponse" => "UpdateContactsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Contact}. - * - * The following fields are required: - *
    - *
  • {@link Contact#companyId}
  • - *
  • {@link Contact#name}
  • - *
- * - * @param contact the contact to create - * @return the contact with its ID filled in - */ - public function createContact($contact) { - $args = new CreateContact($contact); - $result = $this->__soapCall("createContact", array($args)); - return $result->rval; - } - /** - * Creates new {@link Contact} objects. - * - * @param contacts the contacts to create - * @return the created contacts with their IDs filled in - */ - public function createContacts($contacts) { - $args = new CreateContacts($contacts); - $result = $this->__soapCall("createContacts", array($args)); - return $result->rval; - } - /** - * Returns the {@link Contact} uniquely identified by the given ID. - * - * @param contactId the ID of the contact, which must already exist - * @return the {@code Contact} uniquely identified by the given ID - */ - public function getContact($contactId) { - $args = new GetContact($contactId); - $result = $this->__soapCall("getContact", array($args)); - return $result->rval; - } - /** - * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code name}{@link Contact#name}
{@code email}{@link Contact#email}
{@code id}{@link Contact#id}
{@code comment}{@link Contact#comment}
{@code companyId}{@link Contact#companyId}
{@code title}{@link Contact#title}
{@code cellPhone}{@link Contact#cellPhone}
{@code workPhone}{@link Contact#workPhone}
{@code faxPhone}{@link Contact#faxPhone}
{@code status}{@link Contact#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of contacts - * @return the contacts that match the given filter - */ - public function getContactsByStatement($statement) { - $args = new GetContactsByStatement($statement); - $result = $this->__soapCall("getContactsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Contact}. - * - * @param contact the contact to update - * @return the updated contact - */ - public function updateContact($contact) { - $args = new UpdateContact($contact); - $result = $this->__soapCall("updateContact", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Contact} objects. - * - * @param contacts the contacts to update - * @return the updated contacts - */ - public function updateContacts($contacts) { - $args = new UpdateContacts($contacts); - $result = $this->__soapCall("updateContacts", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php deleted file mode 100755 index 687850b5d..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ContentBundleService.php +++ /dev/null @@ -1,3480 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ContentBundleAction", false)) { - /** - * Represents the actions that can be performed on {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentBundleAction"; - - /** - * @access public - * @var string - */ - public $ContentBundleActionType; - private $_parameterMap = array( - "ContentBundleAction.Type" => "ContentBundleActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ContentBundleActionType = null) { - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("ContentBundle", false)) { - /** - * A {@code ContentBundle} is a grouping of individual {@link Content}. A {@code ContentBundle} is - * defined as including the {@code Content} that match certain filter rules, along with the - * option to explicitly include or exclude certain {@code Content} IDs. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentBundle"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var tnsContentBundleStatus - */ - public $status; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $status = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->status = $status; - } - - } -} - -if (!class_exists("ContentBundlePage", false)) { - /** - * Captures a page of {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentBundlePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentBundlePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ContentBundle[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateContentBundles", false)) { - /** - * The action used for deactivating {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateContentBundles extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateContentBundles"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ContentBundleActionType = null) { - parent::__construct(); - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("ExcludeContentFromContentBundle", false)) { - /** - * The action used for explicitly excluding specific content from a {@link ContentBundle} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ExcludeContentFromContentBundle extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ExcludeContentFromContentBundle"; - - /** - * @access public - * @var Statement - */ - public $contentStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentStatement = null, $ContentBundleActionType = null) { - parent::__construct(); - $this->contentStatement = $contentStatement; - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("IncludeContentInContentBundle", false)) { - /** - * The action used for explicitly including specific content in a {@link ContentBundle} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class IncludeContentInContentBundle extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "IncludeContentInContentBundle"; - - /** - * @access public - * @var Statement - */ - public $contentStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentStatement = null, $ContentBundleActionType = null) { - parent::__construct(); - $this->contentStatement = $contentStatement; - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementError", false)) { - /** - * Class defining all validation errors for a placement. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementError"; - - /** - * @access public - * @var tnsPlacementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentBundleStatus", false)) { - /** - * Status for {@code ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentBundleStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentBundleStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PlacementErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateContentBundle", false)) { - /** - * Creates a new {@link ContentBundle}. - * - * These fields are required: - *
    - *
  • {@link ContentBundle#name}
  • - *
  • {@link ContentBundle#description}
  • - *
- * - * @param contentBundle the content bundle to create - * @return the content bundle with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $contentBundle; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundle = null) { - $this->contentBundle = $contentBundle; - } - - } -} - -if (!class_exists("CreateContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateContentBundles", false)) { - /** - * Creates new {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to create - * @return the created content bundles with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContentBundles { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $contentBundles; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundles = null) { - $this->contentBundles = $contentBundles; - } - - } -} - -if (!class_exists("CreateContentBundlesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateContentBundlesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContentBundle", false)) { - /** - * Returns the {@link ContentBundle} uniquely identified by the given ID. - * - * @param contentBundleId the ID of the content bundle, which must already exist - * @return the {@code ContentBundle} uniquely identified by the given ID - * @throws ApiException if there were errors, such as invalid ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $contentBundleId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundleId = null) { - $this->contentBundleId = $contentBundleId; - } - - } -} - -if (!class_exists("GetContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContentBundlesByStatement", false)) { - /** - * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ContentBundle#id}
{@code name}{@link ContentBundle#name}
{@code status}{@link ContentBundle#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the content bundles that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentBundlesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetContentBundlesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentBundlesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundlePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformContentBundleAction", false)) { - /** - * Performs actions on {@link ContentBundle} objects that match the given - * {@link Statement#query}. - * - * @param contentBundleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundleAction - */ - public $contentBundleAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundleAction = null, $filterStatement = null) { - $this->contentBundleAction = $contentBundleAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformContentBundleActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformContentBundleActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContentBundle", false)) { - /** - * Updates the specified {@link ContentBundle}. - * - * @param contentBundle the content bundle to update - * @return the updated content bundle - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $contentBundle; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundle = null) { - $this->contentBundle = $contentBundle; - } - - } -} - -if (!class_exists("UpdateContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateContentBundles", false)) { - /** - * Updates the specified {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to update - * @return the updated content bundles - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContentBundles { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $contentBundles; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundles = null) { - $this->contentBundles = $contentBundles; - } - - } -} - -if (!class_exists("UpdateContentBundlesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateContentBundlesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateContentBundles", false)) { - /** - * The action used for activating {@link ContentBundle} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateContentBundles extends ContentBundleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateContentBundles"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ContentBundleActionType = null) { - parent::__construct(); - $this->ContentBundleActionType = $ContentBundleActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ContentBundleService", false)) { - /** - * ContentBundleService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentBundleService extends DfpSoapClient { - - const SERVICE_NAME = "ContentBundleService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ContentBundleService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ContentBundleService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateContentBundles" => "ActivateContentBundles", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ContentBundleAction" => "ContentBundleAction", - "ContentBundle" => "ContentBundle", - "ContentBundlePage" => "ContentBundlePage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateContentBundles" => "DeactivateContentBundles", - "ExcludeContentFromContentBundle" => "ExcludeContentFromContentBundle", - "FeatureError" => "FeatureError", - "IncludeContentInContentBundle" => "IncludeContentInContentBundle", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PlacementError" => "PlacementError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "ContentBundleStatus" => "ContentBundleStatus", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PlacementError.Reason" => "PlacementErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createContentBundle" => "CreateContentBundle", - "createContentBundleResponse" => "CreateContentBundleResponse", - "createContentBundles" => "CreateContentBundles", - "createContentBundlesResponse" => "CreateContentBundlesResponse", - "getContentBundle" => "GetContentBundle", - "getContentBundleResponse" => "GetContentBundleResponse", - "getContentBundlesByStatement" => "GetContentBundlesByStatement", - "getContentBundlesByStatementResponse" => "GetContentBundlesByStatementResponse", - "performContentBundleAction" => "PerformContentBundleAction", - "performContentBundleActionResponse" => "PerformContentBundleActionResponse", - "updateContentBundle" => "UpdateContentBundle", - "updateContentBundleResponse" => "UpdateContentBundleResponse", - "updateContentBundles" => "UpdateContentBundles", - "updateContentBundlesResponse" => "UpdateContentBundlesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ContentBundle}. - * - * These fields are required: - *
    - *
  • {@link ContentBundle#name}
  • - *
  • {@link ContentBundle#description}
  • - *
- * - * @param contentBundle the content bundle to create - * @return the content bundle with its ID filled in - */ - public function createContentBundle($contentBundle) { - $args = new CreateContentBundle($contentBundle); - $result = $this->__soapCall("createContentBundle", array($args)); - return $result->rval; - } - /** - * Creates new {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to create - * @return the created content bundles with their IDs filled in - */ - public function createContentBundles($contentBundles) { - $args = new CreateContentBundles($contentBundles); - $result = $this->__soapCall("createContentBundles", array($args)); - return $result->rval; - } - /** - * Returns the {@link ContentBundle} uniquely identified by the given ID. - * - * @param contentBundleId the ID of the content bundle, which must already exist - * @return the {@code ContentBundle} uniquely identified by the given ID - * @throws ApiException if there were errors, such as invalid ID - */ - public function getContentBundle($contentBundleId) { - $args = new GetContentBundle($contentBundleId); - $result = $this->__soapCall("getContentBundle", array($args)); - return $result->rval; - } - /** - * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ContentBundle#id}
{@code name}{@link ContentBundle#name}
{@code status}{@link ContentBundle#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the content bundles that match the given filter - */ - public function getContentBundlesByStatement($filterStatement) { - $args = new GetContentBundlesByStatement($filterStatement); - $result = $this->__soapCall("getContentBundlesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link ContentBundle} objects that match the given - * {@link Statement#query}. - * - * @param contentBundleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of content bundles - * @return the result of the action performed - */ - public function performContentBundleAction($contentBundleAction, $filterStatement) { - $args = new PerformContentBundleAction($contentBundleAction, $filterStatement); - $result = $this->__soapCall("performContentBundleAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ContentBundle}. - * - * @param contentBundle the content bundle to update - * @return the updated content bundle - */ - public function updateContentBundle($contentBundle) { - $args = new UpdateContentBundle($contentBundle); - $result = $this->__soapCall("updateContentBundle", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to update - * @return the updated content bundles - */ - public function updateContentBundles($contentBundles) { - $args = new UpdateContentBundles($contentBundles); - $result = $this->__soapCall("updateContentBundles", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentService.php b/src/Google/Api/Ads/Dfp/v201311/ContentService.php deleted file mode 100755 index 26b4a8112..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ContentService.php +++ /dev/null @@ -1,3132 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CmsContent", false)) { - /** - * Contains information about {@link Content} from the CMS it was ingested from. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CmsContent { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CmsContent"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var string - */ - public $cmsContentId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $displayName = null, $cmsContentId = null) { - $this->id = $id; - $this->displayName = $displayName; - $this->cmsContentId = $cmsContentId; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Content", false)) { - /** - * A {@code Content} represents video metadata from a publisher's - * Content Management System (CMS) that has been synced to DFP. - *

- * Video line items can be targeted to {@code Content} - * to indicate what ads should match when the {@code Content} is being played. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Content { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Content"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsContentStatus - */ - public $status; - - /** - * @access public - * @var tnsContentStatusDefinedBy - */ - public $statusDefinedBy; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var integer[] - */ - public $userDefinedCustomTargetingValueIds; - - /** - * @access public - * @var integer[] - */ - public $mappingRuleDefinedCustomTargetingValueIds; - - /** - * @access public - * @var CmsContent[] - */ - public $cmsSources; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $status = null, $statusDefinedBy = null, $lastModifiedDateTime = null, $userDefinedCustomTargetingValueIds = null, $mappingRuleDefinedCustomTargetingValueIds = null, $cmsSources = null) { - $this->id = $id; - $this->name = $name; - $this->status = $status; - $this->statusDefinedBy = $statusDefinedBy; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->userDefinedCustomTargetingValueIds = $userDefinedCustomTargetingValueIds; - $this->mappingRuleDefinedCustomTargetingValueIds = $mappingRuleDefinedCustomTargetingValueIds; - $this->cmsSources = $cmsSources; - } - - } -} - -if (!class_exists("ContentPage", false)) { - /** - * Captures a page of {@code Content} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Content[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ContentPartnerError", false)) { - /** - * The content partner related validation errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentPartnerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentPartnerError"; - - /** - * @access public - * @var tnsContentPartnerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentPartnerErrorReason", false)) { - /** - * Describes reason for {@code ContentPartnerError}s. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentPartnerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentPartnerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentStatus", false)) { - /** - * Describes the status of a {@link Content} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ContentStatusDefinedBy", false)) { - /** - * Describes who defined the effective status of the {@code Content}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentStatusDefinedBy { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentStatusDefinedBy"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetContentByStatement", false)) { - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @return the content that matches the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetContentByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetContentByStatementAndCustomTargetingValue", false)) { - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. Additionally, filters on the given value ID - * and key ID that the value belongs to. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @param customTargetingValueId the id of the value to match - * @return the content that matches the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentByStatementAndCustomTargetingValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * @access public - * @var integer - */ - public $customTargetingValueId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null, $customTargetingValueId = null) { - $this->filterStatement = $filterStatement; - $this->customTargetingValueId = $customTargetingValueId; - } - - } -} - -if (!class_exists("GetContentByStatementAndCustomTargetingValueResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetContentByStatementAndCustomTargetingValueResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ContentService", false)) { - /** - * ContentService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ContentService extends DfpSoapClient { - - const SERVICE_NAME = "ContentService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ContentService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ContentService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CmsContent" => "CmsContent", - "CommonError" => "CommonError", - "Content" => "Content", - "ContentPage" => "ContentPage", - "ContentPartnerError" => "ContentPartnerError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "ContentPartnerError.Reason" => "ContentPartnerErrorReason", - "ContentStatus" => "ContentStatus", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "ContentStatusDefinedBy" => "ContentStatusDefinedBy", - "StringLengthError.Reason" => "StringLengthErrorReason", - "getContentByStatement" => "GetContentByStatement", - "getContentByStatementResponse" => "GetContentByStatementResponse", - "getContentByStatementAndCustomTargetingValue" => "GetContentByStatementAndCustomTargetingValue", - "getContentByStatementAndCustomTargetingValueResponse" => "GetContentByStatementAndCustomTargetingValueResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @return the content that matches the given filter - */ - public function getContentByStatement($statement) { - $args = new GetContentByStatement($statement); - $result = $this->__soapCall("getContentByStatement", array($args)); - return $result->rval; - } - /** - * Gets a {@link ContentPage} of {@link Content} objects that satisfy the - * given {@link Statement#query}. Additionally, filters on the given value ID - * and key ID that the value belongs to. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Content#id}
{@code status}{@link Content#status}
{@code name}{@link Content#name}
{@code lastModifiedDateTime}{@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled.
- * - * @params filterStatement a Publisher Query Language statement used to - * filter a set of content - * @param customTargetingValueId the id of the value to match - * @return the content that matches the given filter - */ - public function getContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId) { - $args = new GetContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); - $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php deleted file mode 100755 index 7941194e7..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/CreativeTemplateService.php +++ /dev/null @@ -1,3687 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeTemplate", false)) { - /** - * A template upon which a creative can be created. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeTemplate"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var CreativeTemplateVariable[] - */ - public $variables; - - /** - * @access public - * @var tnsCreativeTemplateStatus - */ - public $status; - - /** - * @access public - * @var tnsCreativeTemplateType - */ - public $type; - - /** - * @access public - * @var boolean - */ - public $isInterstitial; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $variables = null, $status = null, $type = null, $isInterstitial = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->variables = $variables; - $this->status = $status; - $this->type = $type; - $this->isInterstitial = $isInterstitial; - } - - } -} - -if (!class_exists("CreativeTemplateError", false)) { - /** - * A catch-all error that lists all generic errors associated with CreativeTemplate. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeTemplateError"; - - /** - * @access public - * @var tnsCreativeTemplateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ListStringCreativeTemplateVariableVariableChoice", false)) { - /** - * Stores variable choices that users can select from - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ListStringCreativeTemplateVariableVariableChoice { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ListStringCreativeTemplateVariable.VariableChoice"; - - /** - * @access public - * @var string - */ - public $label; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($label = null, $value = null) { - $this->label = $label; - $this->value = $value; - } - - } -} - -if (!class_exists("CreativeTemplatePage", false)) { - /** - * Captures a page of {@link CreativeTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeTemplatePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CreativeTemplate[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CreativeTemplateVariable", false)) { - /** - * Represents a variable defined in a creative template. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeTemplateVariable"; - - /** - * @access public - * @var string - */ - public $label; - - /** - * @access public - * @var string - */ - public $uniqueName; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var boolean - */ - public $isRequired; - - /** - * @access public - * @var string - */ - public $CreativeTemplateVariableType; - private $_parameterMap = array( - "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AssetCreativeTemplateVariableMimeType", false)) { - /** - * Different mime type that the asset variable supports. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AssetCreativeTemplateVariableMimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AssetCreativeTemplateVariable.MimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeTemplateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeTemplateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeTemplateStatus", false)) { - /** - * Describes status of the creative template - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplateStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeTemplateStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeTemplateType", false)) { - /** - * Describes type of the creative template. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeTemplateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetCreativeTemplate", false)) { - /** - * Returns the {@link CreativeTemplate} uniquely identified by the given ID. - * - * @param creativeTemplateId the ID of the creative template, which must already exist - * @return the {@code CreativeTemplate} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeTemplateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeTemplateId = null) { - $this->creativeTemplateId = $creativeTemplateId; - } - - } -} - -if (!class_exists("GetCreativeTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeTemplatesByStatement", false)) { - /** - * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeTemplate#id}
{@code name}{@link CreativeTemplate#name}
{@code type}{@link CreativeTemplate#type}
{@code status}{@link CreativeTemplate#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative templates. - * @return the creative templates that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeTemplatesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCreativeTemplatesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeTemplatesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeTemplatePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AssetCreativeTemplateVariable", false)) { - /** - * Represents a file asset variable defined in a creative template. - *

- * Use {@link AssetCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AssetCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AssetCreativeTemplateVariable"; - - /** - * @access public - * @var tnsAssetCreativeTemplateVariableMimeType[] - */ - public $mimeTypes; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mimeTypes = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->mimeTypes = $mimeTypes; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("LongCreativeTemplateVariable", false)) { - /** - * Represents a long variable defined in a creative template. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LongCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LongCreativeTemplateVariable"; - - /** - * @access public - * @var integer - */ - public $defaultValue; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->defaultValue = $defaultValue; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("StringCreativeTemplateVariable", false)) { - /** - * Represents a string variable defined in a creative template. - *

- * Use {@link StringCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringCreativeTemplateVariable"; - - /** - * @access public - * @var string - */ - public $defaultValue; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->defaultValue = $defaultValue; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("UrlCreativeTemplateVariable", false)) { - /** - * Represents a url variable defined in a creative template. - *

- * Use {@link UrlCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UrlCreativeTemplateVariable extends CreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UrlCreativeTemplateVariable"; - - /** - * @access public - * @var string - */ - public $defaultValue; - - /** - * @access public - * @var boolean - */ - public $isTrackingUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($defaultValue = null, $isTrackingUrl = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { - parent::__construct(); - $this->defaultValue = $defaultValue; - $this->isTrackingUrl = $isTrackingUrl; - $this->label = $label; - $this->uniqueName = $uniqueName; - $this->description = $description; - $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ListStringCreativeTemplateVariable", false)) { - /** - * Represents a list variable defined in a creative template. This is similar to - * {@link StringCreativeTemplateVariable}, except that there are possible choices to - * choose from. - *

- * Use {@link StringCreativeTemplateVariableValue} to specify the value - * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ListStringCreativeTemplateVariable"; - - /** - * @access public - * @var ListStringCreativeTemplateVariableVariableChoice[] - */ - public $choices; - - /** - * @access public - * @var boolean - */ - public $allowOtherChoice; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($choices = null, $allowOtherChoice = null, $defaultValue = null) { - parent::__construct(); - $this->choices = $choices; - $this->allowOtherChoice = $allowOtherChoice; - $this->defaultValue = $defaultValue; - } - - } -} - -if (!class_exists("CreativeTemplateService", false)) { - /** - * CreativeTemplateService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeTemplateService extends DfpSoapClient { - - const SERVICE_NAME = "CreativeTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/CreativeTemplateService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/CreativeTemplateService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", - "CreativeTemplate" => "CreativeTemplate", - "CreativeTemplateError" => "CreativeTemplateError", - "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", - "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", - "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", - "CreativeTemplatePage" => "CreativeTemplatePage", - "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", - "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", - "CreativeTemplateVariable" => "CreativeTemplateVariable", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidUrlError" => "InvalidUrlError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UniqueError" => "UniqueError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", - "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", - "CreativeTemplateStatus" => "CreativeTemplateStatus", - "CreativeTemplateType" => "CreativeTemplateType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "getCreativeTemplate" => "GetCreativeTemplate", - "getCreativeTemplateResponse" => "GetCreativeTemplateResponse", - "getCreativeTemplatesByStatement" => "GetCreativeTemplatesByStatement", - "getCreativeTemplatesByStatementResponse" => "GetCreativeTemplatesByStatementResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link CreativeTemplate} uniquely identified by the given ID. - * - * @param creativeTemplateId the ID of the creative template, which must already exist - * @return the {@code CreativeTemplate} uniquely identified by the given ID - */ - public function getCreativeTemplate($creativeTemplateId) { - $args = new GetCreativeTemplate($creativeTemplateId); - $result = $this->__soapCall("getCreativeTemplate", array($args)); - return $result->rval; - } - /** - * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeTemplate#id}
{@code name}{@link CreativeTemplate#name}
{@code type}{@link CreativeTemplate#type}
{@code status}{@link CreativeTemplate#status}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative templates. - * @return the creative templates that match the given filter - */ - public function getCreativeTemplatesByStatement($filterStatement) { - $args = new GetCreativeTemplatesByStatement($filterStatement); - $result = $this->__soapCall("getCreativeTemplatesByStatement", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php deleted file mode 100755 index 46e5dca7a..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/CreativeWrapperService.php +++ /dev/null @@ -1,3892 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperAction", false)) { - /** - * Represents the actions that can be performed on {@link CreativeWrapper} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperAction"; - - /** - * @access public - * @var string - */ - public $CreativeWrapperActionType; - private $_parameterMap = array( - "CreativeWrapperAction.Type" => "CreativeWrapperActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CreativeWrapperActionType = null) { - $this->CreativeWrapperActionType = $CreativeWrapperActionType; - } - - } -} - -if (!class_exists("CreativeWrapper", false)) { - /** - * A {@code CreativeWrapper} allows the wrapping of HTML snippets to be - * served along with {@code Creative} objects. - *

- * Creative wrappers must be associated with a - * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by - * {@link AdUnit#appliedLabels}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapper"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var CreativeWrapperHtmlSnippet - */ - public $header; - - /** - * @access public - * @var CreativeWrapperHtmlSnippet - */ - public $footer; - - /** - * @access public - * @var tnsCreativeWrapperOrdering - */ - public $ordering; - - /** - * @access public - * @var tnsCreativeWrapperStatus - */ - public $status; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $labelId = null, $header = null, $footer = null, $ordering = null, $status = null) { - $this->id = $id; - $this->labelId = $labelId; - $this->header = $header; - $this->footer = $footer; - $this->ordering = $ordering; - $this->status = $status; - } - - } -} - -if (!class_exists("CreativeWrapperError", false)) { - /** - * Errors specific to creative wrappers. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperError"; - - /** - * @access public - * @var tnsCreativeWrapperErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperPage", false)) { - /** - * Captures a page of {@link CreativeWrapper} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateCreativeWrappers", false)) { - /** - * The action used for deactivating {@link CreativeWrapper} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateCreativeWrappers extends CreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateCreativeWrappers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CreativeWrapperActionType = null) { - parent::__construct(); - $this->CreativeWrapperActionType = $CreativeWrapperActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperHtmlSnippet", false)) { - /** - * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is - * delivered as the header or footer. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperHtmlSnippet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperHtmlSnippet"; - - /** - * @access public - * @var string - */ - public $htmlSnippet; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($htmlSnippet = null) { - $this->htmlSnippet = $htmlSnippet; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelError", false)) { - /** - * Errors specific to labels. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelError"; - - /** - * @access public - * @var tnsLabelErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperErrorReason", false)) { - /** - * The reasons for the creative wrapper error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperOrdering", false)) { - /** - * Defines the order in which the header and footer HTML snippets will be - * wrapped around the served creative. {@code INNER} snippets will be wrapped - * first, followed by {@code NO_PREFERENCE} and finally {@code OUTER}. If the - * creative needs to be wrapped with more than one snippet with the same - * {@link CreativeWrapperOrdering}, then the order is unspecified. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperOrdering { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperOrdering"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperStatus", false)) { - /** - * Indicates whether the {@code CreativeWrapper} is active. HTML snippets - * are served to creatives only when the creative wrapper is active. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCreativeWrapper", false)) { - /** - * Creates a new {@code CreativeWrapper}. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrapper the creative wrapper to create - * @return the creative wrapper with its ID filled in - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $creativeWrapper; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapper = null) { - $this->creativeWrapper = $creativeWrapper; - } - - } -} - -if (!class_exists("CreateCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCreativeWrappers", false)) { - /** - * Creates a new {@code CreativeWrapper} objects. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrappers the creative wrappers to create - * @return the creative wrappers with their IDs filled in - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCreativeWrappers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $creativeWrappers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrappers = null) { - $this->creativeWrappers = $creativeWrappers; - } - - } -} - -if (!class_exists("CreateCreativeWrappersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCreativeWrappersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeWrapper", false)) { - /** - * Returns the {@link CreativeWrapper} uniquely identified by the given - * ID. - * - * @param creativeWrapperId the ID of the creative wrapper, which - * must already exist - * @return the {@code CreativeWrapper} uniquely identified by the given - * ID - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeWrapperId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapperId = null) { - $this->creativeWrapperId = $creativeWrapperId; - } - - } -} - -if (!class_exists("GetCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeWrappersByStatement", false)) { - /** - * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeWrapper#id}
{@code labelId}{@link CreativeWrapper#labelId}
{@code status}{@link CreativeWrapper#status}
{@code ordering}{@link CreativeWrapper#ordering}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative wrappers. - * @return the creative wrappers that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeWrappersByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCreativeWrappersByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCreativeWrappersByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapperPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCreativeWrapperAction", false)) { - /** - * Performs actions on {@link CreativeWrapper} objects that match the - * given {@link Statement#query}. - * - * @param creativeWrapperAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapperAction - */ - public $creativeWrapperAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapperAction = null, $filterStatement = null) { - $this->creativeWrapperAction = $creativeWrapperAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCreativeWrapperActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCreativeWrapperActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreativeWrapper", false)) { - /** - * Updates the specified {@code CreativeWrapper}. - * - * @param creativeWrapper the creative wrapper to update - * @return the updated creative wrapper - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $creativeWrapper; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapper = null) { - $this->creativeWrapper = $creativeWrapper; - } - - } -} - -if (!class_exists("UpdateCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCreativeWrappers", false)) { - /** - * Updates the specified {@code CreativeWrapper} objects. - * - * @param creativeWrappers the creative wrappers to update - * @return the updated creative wrapper objects - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCreativeWrappers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $creativeWrappers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrappers = null) { - $this->creativeWrappers = $creativeWrappers; - } - - } -} - -if (!class_exists("UpdateCreativeWrappersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCreativeWrappersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateCreativeWrappers", false)) { - /** - * The action used for activating {@link CreativeWrapper} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateCreativeWrappers extends CreativeWrapperAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateCreativeWrappers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CreativeWrapperActionType = null) { - parent::__construct(); - $this->CreativeWrapperActionType = $CreativeWrapperActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CreativeWrapperService", false)) { - /** - * CreativeWrapperService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperService extends DfpSoapClient { - - const SERVICE_NAME = "CreativeWrapperService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/CreativeWrapperService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/CreativeWrapperService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateCreativeWrappers" => "ActivateCreativeWrappers", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativeWrapperAction" => "CreativeWrapperAction", - "CreativeWrapper" => "CreativeWrapper", - "CreativeWrapperError" => "CreativeWrapperError", - "CreativeWrapperPage" => "CreativeWrapperPage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateCreativeWrappers" => "DeactivateCreativeWrappers", - "FeatureError" => "FeatureError", - "CreativeWrapperHtmlSnippet" => "CreativeWrapperHtmlSnippet", - "InternalApiError" => "InternalApiError", - "LabelError" => "LabelError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "CreativeWrapperOrdering" => "CreativeWrapperOrdering", - "CreativeWrapperStatus" => "CreativeWrapperStatus", - "LabelError.Reason" => "LabelErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createCreativeWrapper" => "CreateCreativeWrapper", - "createCreativeWrapperResponse" => "CreateCreativeWrapperResponse", - "createCreativeWrappers" => "CreateCreativeWrappers", - "createCreativeWrappersResponse" => "CreateCreativeWrappersResponse", - "getCreativeWrapper" => "GetCreativeWrapper", - "getCreativeWrapperResponse" => "GetCreativeWrapperResponse", - "getCreativeWrappersByStatement" => "GetCreativeWrappersByStatement", - "getCreativeWrappersByStatementResponse" => "GetCreativeWrappersByStatementResponse", - "performCreativeWrapperAction" => "PerformCreativeWrapperAction", - "performCreativeWrapperActionResponse" => "PerformCreativeWrapperActionResponse", - "updateCreativeWrapper" => "UpdateCreativeWrapper", - "updateCreativeWrapperResponse" => "UpdateCreativeWrapperResponse", - "updateCreativeWrappers" => "UpdateCreativeWrappers", - "updateCreativeWrappersResponse" => "UpdateCreativeWrappersResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@code CreativeWrapper}. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrapper the creative wrapper to create - * @return the creative wrapper with its ID filled in - * @throws ApiException - */ - public function createCreativeWrapper($creativeWrapper) { - $args = new CreateCreativeWrapper($creativeWrapper); - $result = $this->__soapCall("createCreativeWrapper", array($args)); - return $result->rval; - } - /** - * Creates a new {@code CreativeWrapper} objects. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrappers the creative wrappers to create - * @return the creative wrappers with their IDs filled in - * @throws ApiException - */ - public function createCreativeWrappers($creativeWrappers) { - $args = new CreateCreativeWrappers($creativeWrappers); - $result = $this->__soapCall("createCreativeWrappers", array($args)); - return $result->rval; - } - /** - * Returns the {@link CreativeWrapper} uniquely identified by the given - * ID. - * - * @param creativeWrapperId the ID of the creative wrapper, which - * must already exist - * @return the {@code CreativeWrapper} uniquely identified by the given - * ID - * @throws ApiException - */ - public function getCreativeWrapper($creativeWrapperId) { - $args = new GetCreativeWrapper($creativeWrapperId); - $result = $this->__soapCall("getCreativeWrapper", array($args)); - return $result->rval; - } - /** - * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CreativeWrapper#id}
{@code labelId}{@link CreativeWrapper#labelId}
{@code status}{@link CreativeWrapper#status}
{@code ordering}{@link CreativeWrapper#ordering}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative wrappers. - * @return the creative wrappers that match the given filter - */ - public function getCreativeWrappersByStatement($filterStatement) { - $args = new GetCreativeWrappersByStatement($filterStatement); - $result = $this->__soapCall("getCreativeWrappersByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CreativeWrapper} objects that match the - * given {@link Statement#query}. - * - * @param creativeWrapperAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels - * @return the result of the action performed - */ - public function performCreativeWrapperAction($creativeWrapperAction, $filterStatement) { - $args = new PerformCreativeWrapperAction($creativeWrapperAction, $filterStatement); - $result = $this->__soapCall("performCreativeWrapperAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@code CreativeWrapper}. - * - * @param creativeWrapper the creative wrapper to update - * @return the updated creative wrapper - * @throws ApiException - */ - public function updateCreativeWrapper($creativeWrapper) { - $args = new UpdateCreativeWrapper($creativeWrapper); - $result = $this->__soapCall("updateCreativeWrapper", array($args)); - return $result->rval; - } - /** - * Updates the specified {@code CreativeWrapper} objects. - * - * @param creativeWrappers the creative wrappers to update - * @return the updated creative wrapper objects - * @throws ApiException - */ - public function updateCreativeWrappers($creativeWrappers) { - $args = new UpdateCreativeWrappers($creativeWrappers); - $result = $this->__soapCall("updateCreativeWrappers", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php deleted file mode 100755 index 47ff8f074..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/CustomFieldService.php +++ /dev/null @@ -1,4407 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldAction", false)) { - /** - * Represents the actions that can be performed on {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldAction"; - - /** - * @access public - * @var string - */ - public $CustomFieldActionType; - private $_parameterMap = array( - "CustomFieldAction.Type" => "CustomFieldActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomFieldActionType = null) { - $this->CustomFieldActionType = $CustomFieldActionType; - } - - } -} - -if (!class_exists("CustomField", false)) { - /** - * An additional, user-created field on an entity. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomField"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var boolean - */ - public $isActive; - - /** - * @access public - * @var tnsCustomFieldEntityType - */ - public $entityType; - - /** - * @access public - * @var tnsCustomFieldDataType - */ - public $dataType; - - /** - * @access public - * @var tnsCustomFieldVisibility - */ - public $visibility; - - /** - * @access public - * @var string - */ - public $CustomFieldType; - private $_parameterMap = array( - "CustomField.Type" => "CustomFieldType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null, $CustomFieldType = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->isActive = $isActive; - $this->entityType = $entityType; - $this->dataType = $dataType; - $this->visibility = $visibility; - $this->CustomFieldType = $CustomFieldType; - } - - } -} - -if (!class_exists("CustomFieldError", false)) { - /** - * Errors specific to editing custom fields - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldError"; - - /** - * @access public - * @var tnsCustomFieldErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldOption", false)) { - /** - * An option represents a permitted value for a custom field that - * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldOption"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $customFieldId = null, $displayName = null) { - $this->id = $id; - $this->customFieldId = $customFieldId; - $this->displayName = $displayName; - } - - } -} - -if (!class_exists("CustomFieldPage", false)) { - /** - * Captures a page of {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CustomField[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateCustomFields", false)) { - /** - * The action used for deactivating {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateCustomFields extends CustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateCustomFields"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomFieldActionType = null) { - parent::__construct(); - $this->CustomFieldActionType = $CustomFieldActionType; - } - - } -} - -if (!class_exists("DropDownCustomField", false)) { - /** - * A custom field that has the drop-down data type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DropDownCustomField extends CustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DropDownCustomField"; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $options; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($options = null, $id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null, $CustomFieldType = null) { - parent::__construct(); - $this->options = $options; - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->isActive = $isActive; - $this->entityType = $entityType; - $this->dataType = $dataType; - $this->visibility = $visibility; - $this->CustomFieldType = $CustomFieldType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldDataType", false)) { - /** - * The data types allowed for {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldDataType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldDataType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldEntityType", false)) { - /** - * Entity types recognized by custom fields - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldEntityType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldEntityType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldVisibility", false)) { - /** - * The visibility levels of a custom field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldVisibility { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldVisibility"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCustomField", false)) { - /** - * Creates a new {@link CustomField}. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customField the custom field to create - * @return the custom field with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $customField; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customField = null) { - $this->customField = $customField; - } - - } -} - -if (!class_exists("CreateCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomFieldOption", false)) { - /** - * Creates a new {@link CustomFieldOption}. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOption the custom field to create - * @return the custom field option with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $customFieldOption; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOption = null) { - $this->customFieldOption = $customFieldOption; - } - - } -} - -if (!class_exists("CreateCustomFieldOptionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomFieldOptionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomFieldOptions", false)) { - /** - * Creates new {@link CustomFieldOption} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOptions the custom fields to create - * @return the created custom field options with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomFieldOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $customFieldOptions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptions = null) { - $this->customFieldOptions = $customFieldOptions; - } - - } -} - -if (!class_exists("CreateCustomFieldOptionsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomFieldOptionsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomFields", false)) { - /** - * Creates new {@link CustomField} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customFields the custom fields to create - * @return the created custom fields with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomFields { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $customFields; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFields = null) { - $this->customFields = $customFields; - } - - } -} - -if (!class_exists("CreateCustomFieldsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomFieldsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomField", false)) { - /** - * Returns the {@link CustomField} uniquely identified by the given ID. - * - * @param customFieldId the ID of the custom field, which must already exist - * @return the {@code CustomField} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null) { - $this->customFieldId = $customFieldId; - } - - } -} - -if (!class_exists("GetCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomFieldOption", false)) { - /** - * Returns the {@link CustomFieldOption} uniquely identified by the given ID. - * - * @param customFieldOptionId the ID of the custom field option, which must already exist - * @return the {@code CustomFieldOption} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null) { - $this->customFieldOptionId = $customFieldOptionId; - } - - } -} - -if (!class_exists("GetCustomFieldOptionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomFieldOptionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomFieldsByStatement", false)) { - /** - * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the - * given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomField#id}
{@code entityType}{@link CustomField#entityType}
{@code name}{@link CustomField#name}
{@code isActive}{@link CustomField#isActive}
{@code visibility}{@link CustomField#visibility}
- * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields. - * @return the custom fields that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomFieldsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCustomFieldsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomFieldsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCustomFieldAction", false)) { - /** - * Performs actions on {@link CustomField} objects that match the given - * {@link Statement#query}. - * - * @param customFieldAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldAction - */ - public $customFieldAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldAction = null, $filterStatement = null) { - $this->customFieldAction = $customFieldAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCustomFieldActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCustomFieldActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomField", false)) { - /** - * Updates the specified {@link CustomField}. - * - * @param customField the custom field to update - * @return the updated customField - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $customField; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customField = null) { - $this->customField = $customField; - } - - } -} - -if (!class_exists("UpdateCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomFieldOption", false)) { - /** - * Updates the specified {@link CustomFieldOption}. - * - * @param customFieldOption the custom field option to update - * @return the updated customFieldOption - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomFieldOption { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $customFieldOption; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOption = null) { - $this->customFieldOption = $customFieldOption; - } - - } -} - -if (!class_exists("UpdateCustomFieldOptionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomFieldOptionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomFieldOptions", false)) { - /** - * Updates the specified {@link CustomFieldOption} objects. - * - * @param customFieldOptions the custom field options to update - * @return the updated custom field options - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomFieldOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $customFieldOptions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptions = null) { - $this->customFieldOptions = $customFieldOptions; - } - - } -} - -if (!class_exists("UpdateCustomFieldOptionsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomFieldOptionsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomFields", false)) { - /** - * Updates the specified {@link CustomField} objects. - * - * @param customFields the custom fields to update - * @return the updated custom fields - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomFields { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $customFields; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFields = null) { - $this->customFields = $customFields; - } - - } -} - -if (!class_exists("UpdateCustomFieldsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomFieldsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateCustomFields", false)) { - /** - * The action used for activating {@link CustomField} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateCustomFields extends CustomFieldAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateCustomFields"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomFieldActionType = null) { - parent::__construct(); - $this->CustomFieldActionType = $CustomFieldActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomFieldService", false)) { - /** - * CustomFieldService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldService extends DfpSoapClient { - - const SERVICE_NAME = "CustomFieldService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/CustomFieldService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/CustomFieldService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateCustomFields" => "ActivateCustomFields", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomFieldAction" => "CustomFieldAction", - "CustomField" => "CustomField", - "CustomFieldError" => "CustomFieldError", - "CustomFieldOption" => "CustomFieldOption", - "CustomFieldPage" => "CustomFieldPage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateCustomFields" => "DeactivateCustomFields", - "DropDownCustomField" => "DropDownCustomField", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomFieldDataType" => "CustomFieldDataType", - "CustomFieldEntityType" => "CustomFieldEntityType", - "CustomFieldError.Reason" => "CustomFieldErrorReason", - "CustomFieldVisibility" => "CustomFieldVisibility", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createCustomField" => "CreateCustomField", - "createCustomFieldResponse" => "CreateCustomFieldResponse", - "createCustomFieldOption" => "CreateCustomFieldOption", - "createCustomFieldOptionResponse" => "CreateCustomFieldOptionResponse", - "createCustomFieldOptions" => "CreateCustomFieldOptions", - "createCustomFieldOptionsResponse" => "CreateCustomFieldOptionsResponse", - "createCustomFields" => "CreateCustomFields", - "createCustomFieldsResponse" => "CreateCustomFieldsResponse", - "getCustomField" => "GetCustomField", - "getCustomFieldResponse" => "GetCustomFieldResponse", - "getCustomFieldOption" => "GetCustomFieldOption", - "getCustomFieldOptionResponse" => "GetCustomFieldOptionResponse", - "getCustomFieldsByStatement" => "GetCustomFieldsByStatement", - "getCustomFieldsByStatementResponse" => "GetCustomFieldsByStatementResponse", - "performCustomFieldAction" => "PerformCustomFieldAction", - "performCustomFieldActionResponse" => "PerformCustomFieldActionResponse", - "updateCustomField" => "UpdateCustomField", - "updateCustomFieldResponse" => "UpdateCustomFieldResponse", - "updateCustomFieldOption" => "UpdateCustomFieldOption", - "updateCustomFieldOptionResponse" => "UpdateCustomFieldOptionResponse", - "updateCustomFieldOptions" => "UpdateCustomFieldOptions", - "updateCustomFieldOptionsResponse" => "UpdateCustomFieldOptionsResponse", - "updateCustomFields" => "UpdateCustomFields", - "updateCustomFieldsResponse" => "UpdateCustomFieldsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link CustomField}. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customField the custom field to create - * @return the custom field with its ID filled in - */ - public function createCustomField($customField) { - $args = new CreateCustomField($customField); - $result = $this->__soapCall("createCustomField", array($args)); - return $result->rval; - } - /** - * Creates a new {@link CustomFieldOption}. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOption the custom field to create - * @return the custom field option with its ID filled in - */ - public function createCustomFieldOption($customFieldOption) { - $args = new CreateCustomFieldOption($customFieldOption); - $result = $this->__soapCall("createCustomFieldOption", array($args)); - return $result->rval; - } - /** - * Creates new {@link CustomFieldOption} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOptions the custom fields to create - * @return the created custom field options with their IDs filled in - */ - public function createCustomFieldOptions($customFieldOptions) { - $args = new CreateCustomFieldOptions($customFieldOptions); - $result = $this->__soapCall("createCustomFieldOptions", array($args)); - return $result->rval; - } - /** - * Creates new {@link CustomField} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customFields the custom fields to create - * @return the created custom fields with their IDs filled in - */ - public function createCustomFields($customFields) { - $args = new CreateCustomFields($customFields); - $result = $this->__soapCall("createCustomFields", array($args)); - return $result->rval; - } - /** - * Returns the {@link CustomField} uniquely identified by the given ID. - * - * @param customFieldId the ID of the custom field, which must already exist - * @return the {@code CustomField} uniquely identified by the given ID - */ - public function getCustomField($customFieldId) { - $args = new GetCustomField($customFieldId); - $result = $this->__soapCall("getCustomField", array($args)); - return $result->rval; - } - /** - * Returns the {@link CustomFieldOption} uniquely identified by the given ID. - * - * @param customFieldOptionId the ID of the custom field option, which must already exist - * @return the {@code CustomFieldOption} uniquely identified by the given ID - */ - public function getCustomFieldOption($customFieldOptionId) { - $args = new GetCustomFieldOption($customFieldOptionId); - $result = $this->__soapCall("getCustomFieldOption", array($args)); - return $result->rval; - } - /** - * Gets a {@link CustomFieldPage} of {@link CustomField} objects that satisfy the - * given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomField#id}
{@code entityType}{@link CustomField#entityType}
{@code name}{@link CustomField#name}
{@code isActive}{@link CustomField#isActive}
{@code visibility}{@link CustomField#visibility}
- * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields. - * @return the custom fields that match the given filter - */ - public function getCustomFieldsByStatement($filterStatement) { - $args = new GetCustomFieldsByStatement($filterStatement); - $result = $this->__soapCall("getCustomFieldsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CustomField} objects that match the given - * {@link Statement#query}. - * - * @param customFieldAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom fields - * @return the result of the action performed - */ - public function performCustomFieldAction($customFieldAction, $filterStatement) { - $args = new PerformCustomFieldAction($customFieldAction, $filterStatement); - $result = $this->__soapCall("performCustomFieldAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomField}. - * - * @param customField the custom field to update - * @return the updated customField - */ - public function updateCustomField($customField) { - $args = new UpdateCustomField($customField); - $result = $this->__soapCall("updateCustomField", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomFieldOption}. - * - * @param customFieldOption the custom field option to update - * @return the updated customFieldOption - */ - public function updateCustomFieldOption($customFieldOption) { - $args = new UpdateCustomFieldOption($customFieldOption); - $result = $this->__soapCall("updateCustomFieldOption", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomFieldOption} objects. - * - * @param customFieldOptions the custom field options to update - * @return the updated custom field options - */ - public function updateCustomFieldOptions($customFieldOptions) { - $args = new UpdateCustomFieldOptions($customFieldOptions); - $result = $this->__soapCall("updateCustomFieldOptions", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomField} objects. - * - * @param customFields the custom fields to update - * @return the updated custom fields - */ - public function updateCustomFields($customFields) { - $args = new UpdateCustomFields($customFields); - $result = $this->__soapCall("updateCustomFields", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php deleted file mode 100755 index 13a9243c4..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/CustomTargetingService.php +++ /dev/null @@ -1,4142 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CollectionSizeError", false)) { - /** - * Errors associated with the size of the given collection being - * out of bounds. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CollectionSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CollectionSizeError"; - - /** - * @access public - * @var tnsCollectionSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingKeyAction", false)) { - /** - * Represents the actions that can be performed on {@link CustomTargetingKey} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingKeyAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingKeyAction"; - - /** - * @access public - * @var string - */ - public $CustomTargetingKeyActionType; - private $_parameterMap = array( - "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingKeyActionType = null) { - $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; - } - - } -} - -if (!class_exists("CustomTargetingKey", false)) { - /** - * {@code CustomTargetingKey} represents a key used for custom targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingKey { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingKey"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var tnsCustomTargetingKeyType - */ - public $type; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $displayName = null, $type = null) { - $this->id = $id; - $this->name = $name; - $this->displayName = $displayName; - $this->type = $type; - } - - } -} - -if (!class_exists("CustomTargetingKeyPage", false)) { - /** - * Captures a page of {@link CustomTargetingKey} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingKeyPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingKeyPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("CustomTargetingValueAction", false)) { - /** - * Represents the actions that can be performed on {@link CustomTargetingValue} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingValueAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingValueAction"; - - /** - * @access public - * @var string - */ - public $CustomTargetingValueActionType; - private $_parameterMap = array( - "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingValueActionType = null) { - $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; - } - - } -} - -if (!class_exists("CustomTargetingValue", false)) { - /** - * {@code CustomTargetingValue} represents a value used for custom targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingValue"; - - /** - * @access public - * @var integer - */ - public $customTargetingKeyId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var tnsCustomTargetingValueMatchType - */ - public $matchType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingKeyId = null, $id = null, $name = null, $displayName = null, $matchType = null) { - $this->customTargetingKeyId = $customTargetingKeyId; - $this->id = $id; - $this->name = $name; - $this->displayName = $displayName; - $this->matchType = $matchType; - } - - } -} - -if (!class_exists("CustomTargetingValuePage", false)) { - /** - * Captures a page of {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingValuePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingValuePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeleteCustomTargetingKeys", false)) { - /** - * Represents the delete action that can be performed on - * {@link CustomTargetingKey} objects. Deleting a key will not delete the - * {@link CustomTargetingValue} objects associated with it. Also, if a custom - * targeting key that has been deleted is recreated, any previous custom - * targeting values associated with it that were not deleted will continue to - * exist. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeleteCustomTargetingKeys"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingKeyActionType = null) { - parent::__construct(); - $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; - } - - } -} - -if (!class_exists("DeleteCustomTargetingValues", false)) { - /** - * Represents the delete action that can be performed on - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeleteCustomTargetingValues extends CustomTargetingValueAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeleteCustomTargetingValues"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($CustomTargetingValueActionType = null) { - parent::__construct(); - $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CollectionSizeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CollectionSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CollectionSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingKeyType", false)) { - /** - * Specifies the types for {@code CustomTargetingKey} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingKeyType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingKey.Type"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingValueMatchType", false)) { - /** - * Represents the ways in which {@link CustomTargetingValue#name} strings will - * be matched with ad requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingValueMatchType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingValue.MatchType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateCustomTargetingKeys", false)) { - /** - * Creates new {@link CustomTargetingKey} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingKey#name}
  • - *
  • {@link CustomTargetingKey#type}
  • - *
- * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomTargetingKeys { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $keys; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keys = null) { - $this->keys = $keys; - } - - } -} - -if (!class_exists("CreateCustomTargetingKeysResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomTargetingKeysResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomTargetingValues", false)) { - /** - * Creates new {@link CustomTargetingValue} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingValue#customTargetingKeyId}
  • - *
  • {@link CustomTargetingValue#name}
  • - *
- * - * @param values the custom targeting values to update - * @return the updated custom targeting keys - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomTargetingValues { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null) { - $this->values = $values; - } - - } -} - -if (!class_exists("CreateCustomTargetingValuesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateCustomTargetingValuesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomTargetingKeysByStatement", false)) { - /** - * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomTargetingKey#id}
{@code name}{@link CustomTargetingKey#name}
{@code displayName}{@link CustomTargetingKey#displayName}
{@code type}{@link CustomTargetingKey#type}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the custom targeting keys that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomTargetingKeysByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCustomTargetingKeysByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomTargetingKeysByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKeyPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomTargetingValuesByStatement", false)) { - /** - * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} - * objects that satisfy the given {@link Statement#query}. - *

- * The {@code WHERE} clause in the {@link Statement#query} must always contain - * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in - * a way that it is AND'ed with the rest of the query. So, if you want to - * retrieve values for a known set of key ids, valid {@link Statement#query} - * would look like: - *

- *
    - *
  1. - * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that - * are associated with keys having ids 17, 18, 19. - *
  2. - *
  3. - * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that - * are associated with keys having id 17 and value name is 'red'. - *
  4. - *
- *

- *

- * The following fields are supported for filtering: - *

- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link CustomTargetingValue#id}
{@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
{@code name}{@link CustomTargetingValue#name}
{@code displayName}{@link CustomTargetingValue#displayName}
{@code matchType}{@link CustomTargetingValue#matchType}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting values - * @return the custom targeting values that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomTargetingValuesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetCustomTargetingValuesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCustomTargetingValuesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValuePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCustomTargetingKeyAction", false)) { - /** - * Performs actions on {@link CustomTargetingKey} objects that match the given - * {@link Statement#query}. - * - * @param customTargetingKeyAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCustomTargetingKeyAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKeyAction - */ - public $customTargetingKeyAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingKeyAction = null, $filterStatement = null) { - $this->customTargetingKeyAction = $customTargetingKeyAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCustomTargetingKeyActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCustomTargetingKeyActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformCustomTargetingValueAction", false)) { - /** - * Performs actions on {@link CustomTargetingValue} objects that match the - * given {@link Statement#query}. - * - * @param customTargetingValueAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCustomTargetingValueAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValueAction - */ - public $customTargetingValueAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingValueAction = null, $filterStatement = null) { - $this->customTargetingValueAction = $customTargetingValueAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformCustomTargetingValueActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformCustomTargetingValueActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomTargetingKeys", false)) { - /** - * Updates the specified {@link CustomTargetingKey} objects. - * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomTargetingKeys { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $keys; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($keys = null) { - $this->keys = $keys; - } - - } -} - -if (!class_exists("UpdateCustomTargetingKeysResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomTargetingKeysResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingKey[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomTargetingValues", false)) { - /** - * Updates the specified {@link CustomTargetingValue} objects. - * - * @param values the custom targeting values to update - * @return the updated custom targeting values - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomTargetingValues { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null) { - $this->values = $values; - } - - } -} - -if (!class_exists("UpdateCustomTargetingValuesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCustomTargetingValuesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomTargetingValue[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("CustomTargetingService", false)) { - /** - * CustomTargetingService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingService extends DfpSoapClient { - - const SERVICE_NAME = "CustomTargetingService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/CustomTargetingService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/CustomTargetingService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CollectionSizeError" => "CollectionSizeError", - "CommonError" => "CommonError", - "CustomTargetingError" => "CustomTargetingError", - "CustomTargetingKeyAction" => "CustomTargetingKeyAction", - "CustomTargetingKey" => "CustomTargetingKey", - "CustomTargetingKeyPage" => "CustomTargetingKeyPage", - "CustomTargetingValueAction" => "CustomTargetingValueAction", - "CustomTargetingValue" => "CustomTargetingValue", - "CustomTargetingValuePage" => "CustomTargetingValuePage", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", - "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CollectionSizeError.Reason" => "CollectionSizeErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "CustomTargetingKey.Type" => "CustomTargetingKeyType", - "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createCustomTargetingKeys" => "CreateCustomTargetingKeys", - "createCustomTargetingKeysResponse" => "CreateCustomTargetingKeysResponse", - "createCustomTargetingValues" => "CreateCustomTargetingValues", - "createCustomTargetingValuesResponse" => "CreateCustomTargetingValuesResponse", - "getCustomTargetingKeysByStatement" => "GetCustomTargetingKeysByStatement", - "getCustomTargetingKeysByStatementResponse" => "GetCustomTargetingKeysByStatementResponse", - "getCustomTargetingValuesByStatement" => "GetCustomTargetingValuesByStatement", - "getCustomTargetingValuesByStatementResponse" => "GetCustomTargetingValuesByStatementResponse", - "performCustomTargetingKeyAction" => "PerformCustomTargetingKeyAction", - "performCustomTargetingKeyActionResponse" => "PerformCustomTargetingKeyActionResponse", - "performCustomTargetingValueAction" => "PerformCustomTargetingValueAction", - "performCustomTargetingValueActionResponse" => "PerformCustomTargetingValueActionResponse", - "updateCustomTargetingKeys" => "UpdateCustomTargetingKeys", - "updateCustomTargetingKeysResponse" => "UpdateCustomTargetingKeysResponse", - "updateCustomTargetingValues" => "UpdateCustomTargetingValues", - "updateCustomTargetingValuesResponse" => "UpdateCustomTargetingValuesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates new {@link CustomTargetingKey} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingKey#name}
  • - *
  • {@link CustomTargetingKey#type}
  • - *
- * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - */ - public function createCustomTargetingKeys($keys) { - $args = new CreateCustomTargetingKeys($keys); - $result = $this->__soapCall("createCustomTargetingKeys", array($args)); - return $result->rval; - } - /** - * Creates new {@link CustomTargetingValue} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomTargetingValue#customTargetingKeyId}
  • - *
  • {@link CustomTargetingValue#name}
  • - *
- * - * @param values the custom targeting values to update - * @return the updated custom targeting keys - */ - public function createCustomTargetingValues($values) { - $args = new CreateCustomTargetingValues($values); - $result = $this->__soapCall("createCustomTargetingValues", array($args)); - return $result->rval; - } - /** - * Gets a {@link CustomTargetingKeyPage} of {@link CustomTargetingKey} objects - * that satisfy the given {@link Statement#query}. The following fields are - * supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link CustomTargetingKey#id}
{@code name}{@link CustomTargetingKey#name}
{@code displayName}{@link CustomTargetingKey#displayName}
{@code type}{@link CustomTargetingKey#type}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the custom targeting keys that match the given filter - */ - public function getCustomTargetingKeysByStatement($filterStatement) { - $args = new GetCustomTargetingKeysByStatement($filterStatement); - $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($args)); - return $result->rval; - } - /** - * Gets a {@link CustomTargetingValuePage} of {@link CustomTargetingValue} - * objects that satisfy the given {@link Statement#query}. - *

- * The {@code WHERE} clause in the {@link Statement#query} must always contain - * {@link CustomTargetingValue#customTargetingKeyId} as one of its columns in - * a way that it is AND'ed with the rest of the query. So, if you want to - * retrieve values for a known set of key ids, valid {@link Statement#query} - * would look like: - *

- *
    - *
  1. - * "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that - * are associated with keys having ids 17, 18, 19. - *
  2. - *
  3. - * "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that - * are associated with keys having id 17 and value name is 'red'. - *
  4. - *
- *

- *

- * The following fields are supported for filtering: - *

- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code id}{@link CustomTargetingValue#id}
{@code customTargetingKeyId}{@link CustomTargetingValue#customTargetingKeyId}
{@code name}{@link CustomTargetingValue#name}
{@code displayName}{@link CustomTargetingValue#displayName}
{@code matchType}{@link CustomTargetingValue#matchType}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting values - * @return the custom targeting values that match the given filter - */ - public function getCustomTargetingValuesByStatement($filterStatement) { - $args = new GetCustomTargetingValuesByStatement($filterStatement); - $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CustomTargetingKey} objects that match the given - * {@link Statement#query}. - * - * @param customTargetingKeyAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of custom targeting keys - * @return the result of the action performed - */ - public function performCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement) { - $args = new PerformCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); - $result = $this->__soapCall("performCustomTargetingKeyAction", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link CustomTargetingValue} objects that match the - * given {@link Statement#query}. - * - * @param customTargetingValueAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - */ - public function performCustomTargetingValueAction($customTargetingValueAction, $filterStatement) { - $args = new PerformCustomTargetingValueAction($customTargetingValueAction, $filterStatement); - $result = $this->__soapCall("performCustomTargetingValueAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomTargetingKey} objects. - * - * @param keys the custom targeting keys to update - * @return the updated custom targeting keys - */ - public function updateCustomTargetingKeys($keys) { - $args = new UpdateCustomTargetingKeys($keys); - $result = $this->__soapCall("updateCustomTargetingKeys", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomTargetingValue} objects. - * - * @param values the custom targeting values to update - * @return the updated custom targeting values - */ - public function updateCustomTargetingValues($values) { - $args = new UpdateCustomTargetingValues($values); - $result = $this->__soapCall("updateCustomTargetingValues", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/InventoryService.php b/src/Google/Api/Ads/Dfp/v201311/InventoryService.php deleted file mode 100755 index fcdb0828b..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/InventoryService.php +++ /dev/null @@ -1,6211 +0,0 @@ -adSenseEnabled = $adSenseEnabled; - $this->borderColor = $borderColor; - $this->titleColor = $titleColor; - $this->backgroundColor = $backgroundColor; - $this->textColor = $textColor; - $this->urlColor = $urlColor; - $this->adType = $adType; - $this->borderStyle = $borderStyle; - $this->fontFamily = $fontFamily; - $this->fontSize = $fontSize; - $this->afcFormats = $afcFormats; - } - - } -} - -if (!class_exists("AdSenseSettingsInheritedProperty", false)) { - /** - * The property of the AdUnit that specifies how and from where the - * AdSenseSettings are inherited. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseSettingsInheritedProperty { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseSettingsInheritedProperty"; - - /** - * @access public - * @var AdSenseSettings - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null) { - $this->value = $value; - } - - } -} - -if (!class_exists("AdUnitAction", false)) { - /** - * Represents the actions that can be performed on {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitAction"; - - /** - * @access public - * @var string - */ - public $AdUnitActionType; - private $_parameterMap = array( - "AdUnitAction.Type" => "AdUnitActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("AdUnit", false)) { - /** - * An {@code AdUnit} represents a chunk of identified inventory for the - * publisher. It contains all the settings that need to be associated with - * inventory in order to serve ads to it. An {@code AdUnit} can also be the - * parent of other ad units in the inventory hierarchy. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnit"; - - /** - * @access public - * @var string - */ - public $id; - - /** - * @access public - * @var string - */ - public $parentId; - - /** - * @access public - * @var boolean - */ - public $hasChildren; - - /** - * @access public - * @var AdUnitParent[] - */ - public $parentPath; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var tnsAdUnitTargetWindow - */ - public $targetWindow; - - /** - * @access public - * @var tnsInventoryStatus - */ - public $status; - - /** - * @access public - * @var string - */ - public $adUnitCode; - - /** - * @access public - * @var AdUnitSize[] - */ - public $adUnitSizes; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var tnsMobilePlatform - */ - public $mobilePlatform; - - /** - * @access public - * @var boolean - */ - public $explicitlyTargeted; - - /** - * @access public - * @var AdSenseSettingsInheritedProperty - */ - public $inheritedAdSenseSettings; - - /** - * @access public - * @var integer - */ - public $partnerId; - - /** - * @access public - * @var LabelFrequencyCap[] - */ - public $appliedLabelFrequencyCaps; - - /** - * @access public - * @var LabelFrequencyCap[] - */ - public $effectiveLabelFrequencyCaps; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer[] - */ - public $effectiveTeamIds; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var tnsSmartSizeMode - */ - public $smartSizeMode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $parentId = null, $hasChildren = null, $parentPath = null, $name = null, $description = null, $targetWindow = null, $status = null, $adUnitCode = null, $adUnitSizes = null, $targetPlatform = null, $mobilePlatform = null, $explicitlyTargeted = null, $inheritedAdSenseSettings = null, $partnerId = null, $appliedLabelFrequencyCaps = null, $effectiveLabelFrequencyCaps = null, $appliedLabels = null, $effectiveAppliedLabels = null, $effectiveTeamIds = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $smartSizeMode = null) { - $this->id = $id; - $this->parentId = $parentId; - $this->hasChildren = $hasChildren; - $this->parentPath = $parentPath; - $this->name = $name; - $this->description = $description; - $this->targetWindow = $targetWindow; - $this->status = $status; - $this->adUnitCode = $adUnitCode; - $this->adUnitSizes = $adUnitSizes; - $this->targetPlatform = $targetPlatform; - $this->mobilePlatform = $mobilePlatform; - $this->explicitlyTargeted = $explicitlyTargeted; - $this->inheritedAdSenseSettings = $inheritedAdSenseSettings; - $this->partnerId = $partnerId; - $this->appliedLabelFrequencyCaps = $appliedLabelFrequencyCaps; - $this->effectiveLabelFrequencyCaps = $effectiveLabelFrequencyCaps; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->effectiveTeamIds = $effectiveTeamIds; - $this->appliedTeamIds = $appliedTeamIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->smartSizeMode = $smartSizeMode; - } - - } -} - -if (!class_exists("AdUnitPage", false)) { - /** - * Captures a page of {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var AdUnit[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("AdUnitParent", false)) { - /** - * The summary of a parent {@link AdUnit}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitParent { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitParent"; - - /** - * @access public - * @var string - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $adUnitCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $adUnitCode = null) { - $this->id = $id; - $this->name = $name; - $this->adUnitCode = $adUnitCode; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("ArchiveAdUnits", false)) { - /** - * The action used for archiving {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ArchiveAdUnits extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ArchiveAdUnits"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("AssignAdUnitsToPlacement", false)) { - /** - * The action used for assigning a group of {@link AdUnit} objects to a - * {@link Placement}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AssignAdUnitsToPlacement extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AssignAdUnitsToPlacement"; - - /** - * @access public - * @var integer - */ - public $placementId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementId = null, $AdUnitActionType = null) { - parent::__construct(); - $this->placementId = $placementId; - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeWrapperError", false)) { - /** - * Errors specific to creative wrappers. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperError"; - - /** - * @access public - * @var tnsCreativeWrapperErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CrossSellError", false)) { - /** - * Lists all errors associated with cross selling. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CrossSellError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CrossSellError"; - - /** - * @access public - * @var tnsCrossSellErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateAdUnits", false)) { - /** - * The action used for deactivating {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateAdUnits extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateAdUnits"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidColorError", false)) { - /** - * A list of all errors associated with a color attribute. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidColorError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidColorError"; - - /** - * @access public - * @var tnsInvalidColorErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitError"; - - /** - * @access public - * @var tnsInventoryUnitErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitPartnerAssociationError", false)) { - /** - * Errors relating to the association of partner companies with inventory units. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitPartnerAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitPartnerAssociationError"; - - /** - * @access public - * @var tnsInventoryUnitPartnerAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitSize", false)) { - /** - * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting - * with v201108 this also represents the environment, and companions of a - * particular ad in an ad unit. In most cases, it is a simple size with just a - * width and a height (sometimes representing an aspect ratio). - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitSize { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitSize"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var AdUnitSize[] - */ - public $companions; - - /** - * @access public - * @var string - */ - public $fullDisplayString; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $environmentType = null, $companions = null, $fullDisplayString = null) { - $this->size = $size; - $this->environmentType = $environmentType; - $this->companions = $companions; - $this->fullDisplayString = $fullDisplayString; - } - - } -} - -if (!class_exists("InventoryUnitSizesError", false)) { - /** - * An error specifically for InventoryUnitSizes. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitSizesError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitSizesError"; - - /** - * @access public - * @var tnsInventoryUnitSizesErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitTypeError", false)) { - /** - * Lists the errors associated with the type of {@link AdUnit} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitTypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitTypeError"; - - /** - * @access public - * @var tnsAdUnitTypeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelFrequencyCap", false)) { - /** - * A {@code LabelFrequencyCap} assigns a frequency cap to a label. The - * frequency cap will limit the cumulative number of impressions of any ad - * units with this label that may be shown to a particular user over a time - * unit. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelFrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelFrequencyCap"; - - /** - * @access public - * @var FrequencyCap - */ - public $frequencyCap; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($frequencyCap = null, $labelId = null) { - $this->frequencyCap = $frequencyCap; - $this->labelId = $labelId; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RemoveAdUnitsFromPlacement", false)) { - /** - * The action used for removing a group of {@link AdUnit} objects - * from a {@link Placement}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RemoveAdUnitsFromPlacement extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RemoveAdUnitsFromPlacement"; - - /** - * @access public - * @var integer - */ - public $placementId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementId = null, $AdUnitActionType = null) { - parent::__construct(); - $this->placementId = $placementId; - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("Size_StringMapEntry", false)) { - /** - * This represents an entry in a map with a key of type Size - * and value of type String. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Size_StringMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size_StringMapEntry"; - - /** - * @access public - * @var Size - */ - public $key; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdSenseAccountErrorReason", false)) { - /** - * An error occured while trying to associate an AdSense account with GFP. Unable to create an - * association with AdSense or Ad Exchange account. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseAccountErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseAccountError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsAdType", false)) { - /** - * Specifies the type of ads that can be served through this {@link AdUnit}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseSettingsAdType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseSettings.AdType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsBorderStyle", false)) { - /** - * Describes the border of the HTML elements used to surround an ad - * displayed by the {@link AdUnit}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseSettingsBorderStyle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseSettings.BorderStyle"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsFontFamily", false)) { - /** - * List of all possible font families. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseSettingsFontFamily { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseSettings.FontFamily"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdSenseSettingsFontSize", false)) { - /** - * List of all possible font sizes the user can choose. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseSettingsFontSize { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseSettings.FontSize"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { - /** - * The supplied Afc size is not valid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitAfcSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitCodeErrorReason", false)) { - /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitCodeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitCodeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitTargetWindow", false)) { - /** - * Corresponds to an HTML link's {@code target} attribute. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitTargetWindow { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnit.TargetWindow"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitHierarchyErrorReason", false)) { - /** - * The depth of the {@link AdUnit} in the inventory hierarchy is greater - * than is allowed. The maximum allowed depth is two below the effective - * root ad unit for Premium accounts and one level below effective root ad - * unit for Small Business accounts. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitHierarchyErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitHierarchyError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeWrapperErrorReason", false)) { - /** - * The reasons for the creative wrapper error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeWrapperErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CrossSellErrorReason", false)) { - /** - * The reason of the error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CrossSellErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CrossSellError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidColorErrorReason", false)) { - /** - * The provided value is not a valid hexadecimal color. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidColorErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidColorError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryStatus", false)) { - /** - * Represents the status of objects that represent inventory - ad units and - * placements. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitPartnerAssociationErrorReason", false)) { - /** - * Partner association error reason types. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitPartnerAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitPartnerAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitSizesErrorReason", false)) { - /** - * All possible reasons the error can be thrown. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitSizesErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitSizesError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitTypeErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitTypeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitTypeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MobilePlatform", false)) { - /** - * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit - * appears in a mobile application or in a mobile web site. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MobilePlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobilePlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("SmartSizeMode", false)) { - /** - * Represents smart size modes. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SmartSizeMode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SmartSizeMode"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateAdUnit", false)) { - /** - * Creates a new {@link AdUnit}. - * - * The following fields are required: - *
    - *
  • {@link AdUnit#name}
  • - *
  • {@link AdUnit#parentId}
  • - *
- * - * @param adUnit the ad unit to create - * @return the new ad unit with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $adUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnit = null) { - $this->adUnit = $adUnit; - } - - } -} - -if (!class_exists("CreateAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateAdUnits", false)) { - /** - * Creates new {@link AdUnit} objects. - * - * @param adUnits the ad units to create - * @return the created ad units, with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAdUnits { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $adUnits; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnits = null) { - $this->adUnits = $adUnits; - } - - } -} - -if (!class_exists("CreateAdUnitsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAdUnitsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdUnit", false)) { - /** - * Returns the {@link AdUnit} uniquely identified by the given ID. - * - * @param adUnitId ID of the ad unit, which must already exist - * @return the {@code AdUnit} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $adUnitId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnitId = null) { - $this->adUnitId = $adUnitId; - } - - } -} - -if (!class_exists("GetAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdUnitSizesByStatement", false)) { - /** - * Gets a set of {@link AdUnitSize} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code targetPlatform}{@link TargetPlatform}
- * An exception will be thrown for queries with unsupported fields. - * - * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. - * - * Only "=" operator is supported. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad unit sizes - * @return the ad unit sizes that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdUnitSizesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetAdUnitSizesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdUnitSizesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnitSize[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAdUnitsByStatement", false)) { - /** - * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code adUnitCode}{@link AdUnit#adUnitCode}
{@code id}{@link AdUnit#id}
{@code name}{@link AdUnit#name}
{@code parentId}{@link AdUnit#parentId}
{@code status}{@link AdUnit#status}
{@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the ad units that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdUnitsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetAdUnitsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdUnitsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnitPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformAdUnitAction", false)) { - /** - * Performs actions on {@link AdUnit} objects that match the given - * {@link Statement#query}. - * - * @param adUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnitAction - */ - public $adUnitAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnitAction = null, $filterStatement = null) { - $this->adUnitAction = $adUnitAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformAdUnitActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformAdUnitActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateAdUnit", false)) { - /** - * Updates the specified {@link AdUnit}. - * - * @param adUnit the ad unit to update - * @return the updated ad unit - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $adUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnit = null) { - $this->adUnit = $adUnit; - } - - } -} - -if (!class_exists("UpdateAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateAdUnits", false)) { - /** - * Updates the specified {@link AdUnit} objects. - * - * @param adUnits the ad units to update - * @return the updated ad units - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateAdUnits { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $adUnits; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnits = null) { - $this->adUnits = $adUnits; - } - - } -} - -if (!class_exists("UpdateAdUnitsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateAdUnitsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateAdUnits", false)) { - /** - * The action used for activating {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateAdUnits extends AdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateAdUnits"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AdUnitActionType = null) { - parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; - } - - } -} - -if (!class_exists("AdSenseAccountError", false)) { - /** - * Error for AdSense related API calls. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseAccountError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseAccountError"; - - /** - * @access public - * @var tnsAdSenseAccountErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitAfcSizeError", false)) { - /** - * Caused by supplying sizes that are not compatible with the Afc sizes. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitAfcSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitAfcSizeError"; - - /** - * @access public - * @var tnsAdUnitAfcSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitCodeError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit#adUnitCode}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitCodeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitCodeError"; - - /** - * @access public - * @var tnsAdUnitCodeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitHierarchyError", false)) { - /** - * Caused by creating an {@link AdUnit} object with an invalid hierarchy. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitHierarchyError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitHierarchyError"; - - /** - * @access public - * @var tnsAdUnitHierarchyErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("InventoryService", false)) { - /** - * InventoryService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryService extends DfpSoapClient { - - const SERVICE_NAME = "InventoryService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/InventoryService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/InventoryService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateAdUnits" => "ActivateAdUnits", - "AdSenseAccountError" => "AdSenseAccountError", - "AdSenseSettings" => "AdSenseSettings", - "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", - "AdUnitAction" => "AdUnitAction", - "AdUnitAfcSizeError" => "AdUnitAfcSizeError", - "AdUnitCodeError" => "AdUnitCodeError", - "AdUnit" => "AdUnit", - "AdUnitHierarchyError" => "AdUnitHierarchyError", - "AdUnitPage" => "AdUnitPage", - "AdUnitParent" => "AdUnitParent", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveAdUnits" => "ArchiveAdUnits", - "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativeWrapperError" => "CreativeWrapperError", - "CrossSellError" => "CrossSellError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateAdUnits" => "DeactivateAdUnits", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "InternalApiError" => "InternalApiError", - "InvalidColorError" => "InvalidColorError", - "InventoryUnitError" => "InventoryUnitError", - "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", - "AdUnitSize" => "AdUnitSize", - "InventoryUnitSizesError" => "InventoryUnitSizesError", - "AdUnitTypeError" => "AdUnitTypeError", - "LabelFrequencyCap" => "LabelFrequencyCap", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RegExError" => "RegExError", - "RemoveAdUnitsFromPlacement" => "RemoveAdUnitsFromPlacement", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "Size" => "Size", - "Size_StringMapEntry" => "Size_StringMapEntry", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", - "AdSenseSettings.AdType" => "AdSenseSettingsAdType", - "AdSenseSettings.BorderStyle" => "AdSenseSettingsBorderStyle", - "AdSenseSettings.FontFamily" => "AdSenseSettingsFontFamily", - "AdSenseSettings.FontSize" => "AdSenseSettingsFontSize", - "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", - "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", - "AdUnit.TargetWindow" => "AdUnitTargetWindow", - "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", - "CrossSellError.Reason" => "CrossSellErrorReason", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidColorError.Reason" => "InvalidColorErrorReason", - "InventoryStatus" => "InventoryStatus", - "InventoryUnitError.Reason" => "InventoryUnitErrorReason", - "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", - "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", - "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", - "MobilePlatform" => "MobilePlatform", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "SmartSizeMode" => "SmartSizeMode", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TargetPlatform" => "TargetPlatform", - "TeamError.Reason" => "TeamErrorReason", - "TimeUnit" => "TimeUnit", - "createAdUnit" => "CreateAdUnit", - "createAdUnitResponse" => "CreateAdUnitResponse", - "createAdUnits" => "CreateAdUnits", - "createAdUnitsResponse" => "CreateAdUnitsResponse", - "getAdUnit" => "GetAdUnit", - "getAdUnitResponse" => "GetAdUnitResponse", - "getAdUnitSizesByStatement" => "GetAdUnitSizesByStatement", - "getAdUnitSizesByStatementResponse" => "GetAdUnitSizesByStatementResponse", - "getAdUnitsByStatement" => "GetAdUnitsByStatement", - "getAdUnitsByStatementResponse" => "GetAdUnitsByStatementResponse", - "performAdUnitAction" => "PerformAdUnitAction", - "performAdUnitActionResponse" => "PerformAdUnitActionResponse", - "updateAdUnit" => "UpdateAdUnit", - "updateAdUnitResponse" => "UpdateAdUnitResponse", - "updateAdUnits" => "UpdateAdUnits", - "updateAdUnitsResponse" => "UpdateAdUnitsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link AdUnit}. - * - * The following fields are required: - *
    - *
  • {@link AdUnit#name}
  • - *
  • {@link AdUnit#parentId}
  • - *
- * - * @param adUnit the ad unit to create - * @return the new ad unit with its ID set - */ - public function createAdUnit($adUnit) { - $args = new CreateAdUnit($adUnit); - $result = $this->__soapCall("createAdUnit", array($args)); - return $result->rval; - } - /** - * Creates new {@link AdUnit} objects. - * - * @param adUnits the ad units to create - * @return the created ad units, with their IDs filled in - */ - public function createAdUnits($adUnits) { - $args = new CreateAdUnits($adUnits); - $result = $this->__soapCall("createAdUnits", array($args)); - return $result->rval; - } - /** - * Returns the {@link AdUnit} uniquely identified by the given ID. - * - * @param adUnitId ID of the ad unit, which must already exist - * @return the {@code AdUnit} uniquely identified by the given ID - */ - public function getAdUnit($adUnitId) { - $args = new GetAdUnit($adUnitId); - $result = $this->__soapCall("getAdUnit", array($args)); - return $result->rval; - } - /** - * Gets a set of {@link AdUnitSize} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code targetPlatform}{@link TargetPlatform}
- * An exception will be thrown for queries with unsupported fields. - * - * Paging is not supported, as aren't the LIMIT and OFFSET PQL keywords. - * - * Only "=" operator is supported. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad unit sizes - * @return the ad unit sizes that match the given filter - */ - public function getAdUnitSizesByStatement($filterStatement) { - $args = new GetAdUnitSizesByStatement($filterStatement); - $result = $this->__soapCall("getAdUnitSizesByStatement", array($args)); - return $result->rval; - } - /** - * Gets a {@link AdUnitPage} of {@link AdUnit} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code adUnitCode}{@link AdUnit#adUnitCode}
{@code id}{@link AdUnit#id}
{@code name}{@link AdUnit#name}
{@code parentId}{@link AdUnit#parentId}
{@code status}{@link AdUnit#status}
{@code lastModifiedDateTime}{@link AdUnit#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the ad units that match the given filter - */ - public function getAdUnitsByStatement($filterStatement) { - $args = new GetAdUnitsByStatement($filterStatement); - $result = $this->__soapCall("getAdUnitsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link AdUnit} objects that match the given - * {@link Statement#query}. - * - * @param adUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad units - * @return the result of the action performed - */ - public function performAdUnitAction($adUnitAction, $filterStatement) { - $args = new PerformAdUnitAction($adUnitAction, $filterStatement); - $result = $this->__soapCall("performAdUnitAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link AdUnit}. - * - * @param adUnit the ad unit to update - * @return the updated ad unit - */ - public function updateAdUnit($adUnit) { - $args = new UpdateAdUnit($adUnit); - $result = $this->__soapCall("updateAdUnit", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link AdUnit} objects. - * - * @param adUnits the ad units to update - * @return the updated ad units - */ - public function updateAdUnits($adUnits) { - $args = new UpdateAdUnits($adUnits); - $result = $this->__soapCall("updateAdUnits", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php deleted file mode 100755 index c4bbc4b8b..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/LineItemCreativeAssociationService.php +++ /dev/null @@ -1,6015 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AssetError", false)) { - /** - * Lists all errors associated with assets. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AssetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AssetError"; - - /** - * @access public - * @var tnsAssetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AudienceExtensionError", false)) { - /** - * Errors associated with audience extension enabled line items - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceExtensionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceExtensionError"; - - /** - * @access public - * @var tnsAudienceExtensionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeAssetMacroError", false)) { - /** - * Lists all errors associated with creative asset macros. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeAssetMacroError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeAssetMacroError"; - - /** - * @access public - * @var tnsCreativeAssetMacroErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeSetError", false)) { - /** - * Errors relating to creative sets & subclasses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeSetError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSetError"; - - /** - * @access public - * @var tnsCreativeSetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomCreativeError", false)) { - /** - * Lists all errors associated with custom creatives. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCreativeError"; - - /** - * @access public - * @var tnsCustomCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ImageError", false)) { - /** - * Lists all errors associated with images. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ImageError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ImageError"; - - /** - * @access public - * @var tnsImageErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidPhoneNumberError", false)) { - /** - * Lists all errors associated with phone numbers. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidPhoneNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidPhoneNumberError"; - - /** - * @access public - * @var tnsInvalidPhoneNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationAction", false)) { - /** - * Represents the actions that can be performed on - * {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationAction"; - - /** - * @access public - * @var string - */ - public $LineItemCreativeAssociationActionType; - private $_parameterMap = array( - "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemCreativeAssociationActionType = null) { - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociation", false)) { - /** - * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a - * {@link LineItem} so that the creative can be served in ad units targeted by the line item. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociation"; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * @access public - * @var integer - */ - public $creativeSetId; - - /** - * @access public - * @var double - */ - public $manualCreativeRotationWeight; - - /** - * @access public - * @var integer - */ - public $sequentialCreativeRotationIndex; - - /** - * @access public - * @var DateTime - */ - public $startDateTime; - - /** - * @access public - * @var tnsStartDateTimeType - */ - public $startDateTimeType; - - /** - * @access public - * @var DateTime - */ - public $endDateTime; - - /** - * @access public - * @var string - */ - public $destinationUrl; - - /** - * @access public - * @var Size[] - */ - public $sizes; - - /** - * @access public - * @var tnsLineItemCreativeAssociationStatus - */ - public $status; - - /** - * @access public - * @var LineItemCreativeAssociationStats - */ - public $stats; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $creativeId = null, $creativeSetId = null, $manualCreativeRotationWeight = null, $sequentialCreativeRotationIndex = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $destinationUrl = null, $sizes = null, $status = null, $stats = null, $lastModifiedDateTime = null) { - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - $this->creativeSetId = $creativeSetId; - $this->manualCreativeRotationWeight = $manualCreativeRotationWeight; - $this->sequentialCreativeRotationIndex = $sequentialCreativeRotationIndex; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->destinationUrl = $destinationUrl; - $this->sizes = $sizes; - $this->status = $status; - $this->stats = $stats; - $this->lastModifiedDateTime = $lastModifiedDateTime; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationError", false)) { - /** - * Lists all errors associated with line item-to-creative association dates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationOperationError", false)) { - /** - * Lists all errors for executing operations on - * line item-to-creative associations - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationOperationError"; - - /** - * @access public - * @var tnsLineItemCreativeAssociationOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationPage", false)) { - /** - * Captures a page of {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationStats", false)) { - /** - * Contains statistics such as impressions, clicks delivered and cost - * for {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationStats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationStats"; - - /** - * @access public - * @var Stats - */ - public $stats; - - /** - * @access public - * @var Long_StatsMapEntry[] - */ - public $creativeSetStats; - - /** - * @access public - * @var Money - */ - public $costInOrderCurrency; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($stats = null, $creativeSetStats = null, $costInOrderCurrency = null) { - $this->stats = $stats; - $this->creativeSetStats = $creativeSetStats; - $this->costInOrderCurrency = $costInOrderCurrency; - } - - } -} - -if (!class_exists("LineItemError", false)) { - /** - * A catch-all error that lists all generic errors associated with LineItem. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemError"; - - /** - * @access public - * @var tnsLineItemErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Long_StatsMapEntry", false)) { - /** - * This represents an entry in a map with a key of type Long - * and value of type Stats. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Long_StatsMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Long_StatsMapEntry"; - - /** - * @access public - * @var integer - */ - public $key; - - /** - * @access public - * @var Stats - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RichMediaStudioCreativeError", false)) { - /** - * Lists all errors associated with Rich Media Studio creatives. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RichMediaStudioCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RichMediaStudioCreativeError"; - - /** - * @access public - * @var tnsRichMediaStudioCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Stats", false)) { - /** - * {@code Stats} contains trafficking statistics for {@link LineItem} and - * {@link LineItemCreativeAssociation} objects - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Stats { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Stats"; - - /** - * @access public - * @var integer - */ - public $impressionsDelivered; - - /** - * @access public - * @var integer - */ - public $clicksDelivered; - - /** - * @access public - * @var integer - */ - public $videoCompletionsDelivered; - - /** - * @access public - * @var integer - */ - public $videoStartsDelivered; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($impressionsDelivered = null, $clicksDelivered = null, $videoCompletionsDelivered = null, $videoStartsDelivered = null) { - $this->impressionsDelivered = $impressionsDelivered; - $this->clicksDelivered = $clicksDelivered; - $this->videoCompletionsDelivered = $videoCompletionsDelivered; - $this->videoStartsDelivered = $videoStartsDelivered; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SwiffyConversionError", false)) { - /** - * Error for converting flash to swiffy asset. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SwiffyConversionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SwiffyConversionError"; - - /** - * @access public - * @var tnsSwiffyConversionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeError", false)) { - /** - * Lists all errors associated with template instantiated creatives. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TemplateInstantiatedCreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; - - /** - * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdSenseAccountErrorReason", false)) { - /** - * An error occured while trying to associate an AdSense account with GFP. Unable to create an - * association with AdSense or Ad Exchange account. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseAccountErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseAccountError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AssetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AssetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AssetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AudienceExtensionErrorReason", false)) { - /** - * Specific audience extension error reasons. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AudienceExtensionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceExtensionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeAssetMacroErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeAssetMacroErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeAssetMacroError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSetErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeSetErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSetError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ImageErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ImageErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ImageError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidPhoneNumberErrorReason", false)) { - /** - * The phone number is invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidPhoneNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidPhoneNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationStatus", false)) { - /** - * Describes the status of the association. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociation.Status"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemCreativeAssociationOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RichMediaStudioCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StartDateTimeType", false)) { - /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StartDateTimeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StartDateTimeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("SwiffyConversionErrorReason", false)) { - /** - * Error reason for {@link SwiffyConversionError}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SwiffyConversionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SwiffyConversionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { - /** - * The reason for the error - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TemplateInstantiatedCreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociation", false)) { - /** - * Creates a new {@link LineItemCreativeAssociation}. - * - * The following fields are required: - *
    - *
  • {@link LineItemCreativeAssociation#creativeId}
  • - *
  • {@link LineItemCreativeAssociation#lineItemId}
  • - *
- * - * @param lineItemCreativeAssociation the line item creative association to - * create - * @return the new line item creative association with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $lineItemCreativeAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociation = null) { - $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociations", false)) { - /** - * Creates new {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * create - * @return the created line item creative associations with their IDs filled - * in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateLineItemCreativeAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $lineItemCreativeAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociations = null) { - $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateLineItemCreativeAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociation", false)) { - /** - * Returns the {@link LineItemCreativeAssociation} uniquely identified by the - * given line item and creative IDs. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @return the {@code LineItemCreativeAssociation} uniquely identified by the - * line item and creative IDs - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $creativeId = null) { - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociationsByStatement", false)) { - /** - * Gets a {@link LineItemCreativeAssociationPage} of - * {@link LineItemCreativeAssociation} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code creativeId}{@link LineItemCreativeAssociation#creativeId}
{@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
{@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
{@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
{@code status}{@link LineItemCreativeAssociation#status}
{@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the line item creative associations that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetLineItemCreativeAssociationsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociationsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetLineItemCreativeAssociationsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociationPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetPreviewUrl", false)) { - /** - * Returns an insite preview URL that references the specified site URL with - * the specified creative from the association served to it. For Creative Set - * previewing you may specify the master creative Id. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @param siteUrl the URL of the site that the creative should be previewed in - * @return a URL that references the specified site URL with the specified - * creative served to it - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetPreviewUrl { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * @access public - * @var string - */ - public $siteUrl; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $creativeId = null, $siteUrl = null) { - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - $this->siteUrl = $siteUrl; - } - - } -} - -if (!class_exists("GetPreviewUrlResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetPreviewUrlResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformLineItemCreativeAssociationAction", false)) { - /** - * Performs actions on {@link LineItemCreativeAssociation} objects that match - * the given {@link Statement#query}. - * - * @param lineItemCreativeAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformLineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociationAction - */ - public $lineItemCreativeAssociationAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociationAction = null, $filterStatement = null) { - $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformLineItemCreativeAssociationActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformLineItemCreativeAssociationActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociation", false)) { - /** - * Updates the specified {@link LineItemCreativeAssociation}. - * - * @param lineItemCreativeAssociation the line item creative association to - * update - * @return the updated line item creative association - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $lineItemCreativeAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociation = null) { - $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociations", false)) { - /** - * Updates the specified {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * update - * @return the updated line item creative associations - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateLineItemCreativeAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $lineItemCreativeAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociations = null) { - $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateLineItemCreativeAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateLineItemCreativeAssociations", false)) { - /** - * The action used for activating {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateLineItemCreativeAssociations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemCreativeAssociationActionType = null) { - parent::__construct(); - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; - } - - } -} - -if (!class_exists("AdSenseAccountError", false)) { - /** - * Error for AdSense related API calls. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdSenseAccountError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdSenseAccountError"; - - /** - * @access public - * @var tnsAdSenseAccountErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateLineItemCreativeAssociations", false)) { - /** - * The action used for deactivating {@link LineItemCreativeAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateLineItemCreativeAssociations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($LineItemCreativeAssociationActionType = null) { - parent::__construct(); - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("LineItemCreativeAssociationService", false)) { - /** - * LineItemCreativeAssociationService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemCreativeAssociationService extends DfpSoapClient { - - const SERVICE_NAME = "LineItemCreativeAssociationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/LineItemCreativeAssociationService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/LineItemCreativeAssociationService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", - "AdSenseAccountError" => "AdSenseAccountError", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AssetError" => "AssetError", - "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativeAssetMacroError" => "CreativeAssetMacroError", - "CreativeError" => "CreativeError", - "CreativeSetError" => "CreativeSetError", - "CustomCreativeError" => "CustomCreativeError", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "ImageError" => "ImageError", - "InternalApiError" => "InternalApiError", - "InvalidPhoneNumberError" => "InvalidPhoneNumberError", - "InvalidUrlError" => "InvalidUrlError", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", - "LineItemCreativeAssociation" => "LineItemCreativeAssociation", - "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", - "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", - "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", - "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", - "LineItemError" => "LineItemError", - "Long_StatsMapEntry" => "Long_StatsMapEntry", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "Stats" => "Stats", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SwiffyConversionError" => "SwiffyConversionError", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AssetError.Reason" => "AssetErrorReason", - "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeSetError.Reason" => "CreativeSetErrorReason", - "CustomCreativeError.Reason" => "CustomCreativeErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "ImageError.Reason" => "ImageErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", - "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", - "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", - "LineItemError.Reason" => "LineItemErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "createLineItemCreativeAssociation" => "CreateLineItemCreativeAssociation", - "createLineItemCreativeAssociationResponse" => "CreateLineItemCreativeAssociationResponse", - "createLineItemCreativeAssociations" => "CreateLineItemCreativeAssociations", - "createLineItemCreativeAssociationsResponse" => "CreateLineItemCreativeAssociationsResponse", - "getLineItemCreativeAssociation" => "GetLineItemCreativeAssociation", - "getLineItemCreativeAssociationResponse" => "GetLineItemCreativeAssociationResponse", - "getLineItemCreativeAssociationsByStatement" => "GetLineItemCreativeAssociationsByStatement", - "getLineItemCreativeAssociationsByStatementResponse" => "GetLineItemCreativeAssociationsByStatementResponse", - "getPreviewUrl" => "GetPreviewUrl", - "getPreviewUrlResponse" => "GetPreviewUrlResponse", - "performLineItemCreativeAssociationAction" => "PerformLineItemCreativeAssociationAction", - "performLineItemCreativeAssociationActionResponse" => "PerformLineItemCreativeAssociationActionResponse", - "updateLineItemCreativeAssociation" => "UpdateLineItemCreativeAssociation", - "updateLineItemCreativeAssociationResponse" => "UpdateLineItemCreativeAssociationResponse", - "updateLineItemCreativeAssociations" => "UpdateLineItemCreativeAssociations", - "updateLineItemCreativeAssociationsResponse" => "UpdateLineItemCreativeAssociationsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link LineItemCreativeAssociation}. - * - * The following fields are required: - *
    - *
  • {@link LineItemCreativeAssociation#creativeId}
  • - *
  • {@link LineItemCreativeAssociation#lineItemId}
  • - *
- * - * @param lineItemCreativeAssociation the line item creative association to - * create - * @return the new line item creative association with its ID set - */ - public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { - $args = new CreateLineItemCreativeAssociation($lineItemCreativeAssociation); - $result = $this->__soapCall("createLineItemCreativeAssociation", array($args)); - return $result->rval; - } - /** - * Creates new {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * create - * @return the created line item creative associations with their IDs filled - * in - */ - public function createLineItemCreativeAssociations($lineItemCreativeAssociations) { - $args = new CreateLineItemCreativeAssociations($lineItemCreativeAssociations); - $result = $this->__soapCall("createLineItemCreativeAssociations", array($args)); - return $result->rval; - } - /** - * Returns the {@link LineItemCreativeAssociation} uniquely identified by the - * given line item and creative IDs. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @return the {@code LineItemCreativeAssociation} uniquely identified by the - * line item and creative IDs - */ - public function getLineItemCreativeAssociation($lineItemId, $creativeId) { - $args = new GetLineItemCreativeAssociation($lineItemId, $creativeId); - $result = $this->__soapCall("getLineItemCreativeAssociation", array($args)); - return $result->rval; - } - /** - * Gets a {@link LineItemCreativeAssociationPage} of - * {@link LineItemCreativeAssociation} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code creativeId}{@link LineItemCreativeAssociation#creativeId}
{@code manualCreativeRotationWeight}{@link LineItemCreativeAssociation#manualCreativeRotationWeight}
{@code destinationUrl}{@link LineItemCreativeAssociation#destinationUrl}
{@code lineItemId}{@link LineItemCreativeAssociation#lineItemId}
{@code status}{@link LineItemCreativeAssociation#status}
{@code lastModifiedDateTime}{@link LineItemCreativeAssociation#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the line item creative associations that match the given filter - */ - public function getLineItemCreativeAssociationsByStatement($filterStatement) { - $args = new GetLineItemCreativeAssociationsByStatement($filterStatement); - $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($args)); - return $result->rval; - } - /** - * Returns an insite preview URL that references the specified site URL with - * the specified creative from the association served to it. For Creative Set - * previewing you may specify the master creative Id. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @param siteUrl the URL of the site that the creative should be previewed in - * @return a URL that references the specified site URL with the specified - * creative served to it - */ - public function getPreviewUrl($lineItemId, $creativeId, $siteUrl) { - $args = new GetPreviewUrl($lineItemId, $creativeId, $siteUrl); - $result = $this->__soapCall("getPreviewUrl", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link LineItemCreativeAssociation} objects that match - * the given {@link Statement#query}. - * - * @param lineItemCreativeAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of line item creative associations - * @return the result of the action performed - */ - public function performLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement) { - $args = new PerformLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); - $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItemCreativeAssociation}. - * - * @param lineItemCreativeAssociation the line item creative association to - * update - * @return the updated line item creative association - */ - public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { - $args = new UpdateLineItemCreativeAssociation($lineItemCreativeAssociation); - $result = $this->__soapCall("updateLineItemCreativeAssociation", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * update - * @return the updated line item creative associations - */ - public function updateLineItemCreativeAssociations($lineItemCreativeAssociations) { - $args = new UpdateLineItemCreativeAssociations($lineItemCreativeAssociations); - $result = $this->__soapCall("updateLineItemCreativeAssociations", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/NetworkService.php b/src/Google/Api/Ads/Dfp/v201311/NetworkService.php deleted file mode 100755 index 4f8caa985..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/NetworkService.php +++ /dev/null @@ -1,2846 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ExchangeRateError", false)) { - /** - * Lists all errors associated with {@link ExchangeRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ExchangeRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ExchangeRateError"; - - /** - * @access public - * @var tnsExchangeRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Network", false)) { - /** - * {@code Network} represents a network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Network { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Network"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $propertyCode; - - /** - * @access public - * @var string - */ - public $timeZone; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var string[] - */ - public $secondaryCurrencyCodes; - - /** - * @access public - * @var string - */ - public $effectiveRootAdUnitId; - - /** - * @access public - * @var integer - */ - public $contentBrowseCustomTargetingKeyId; - - /** - * @access public - * @var boolean - */ - public $isTest; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $displayName = null, $networkCode = null, $propertyCode = null, $timeZone = null, $currencyCode = null, $secondaryCurrencyCodes = null, $effectiveRootAdUnitId = null, $contentBrowseCustomTargetingKeyId = null, $isTest = null) { - $this->id = $id; - $this->displayName = $displayName; - $this->networkCode = $networkCode; - $this->propertyCode = $propertyCode; - $this->timeZone = $timeZone; - $this->currencyCode = $currencyCode; - $this->secondaryCurrencyCodes = $secondaryCurrencyCodes; - $this->effectiveRootAdUnitId = $effectiveRootAdUnitId; - $this->contentBrowseCustomTargetingKeyId = $contentBrowseCustomTargetingKeyId; - $this->isTest = $isTest; - } - - } -} - -if (!class_exists("NetworkError", false)) { - /** - * An error for a network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NetworkError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NetworkError"; - - /** - * @access public - * @var tnsNetworkErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PrecisionError", false)) { - /** - * List all errors associated with number precisions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PrecisionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PrecisionError"; - - /** - * @access public - * @var tnsPrecisionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ExchangeRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ExchangeRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ExchangeRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NetworkErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NetworkErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NetworkError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PrecisionErrorReason", false)) { - /** - * Describes reasons for precision errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PrecisionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PrecisionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetAllNetworks", false)) { - /** - * Returns the list of {@link Network} objects to which the current login has - * access. - *

- * Intended to be used without a network code in the SOAP header when the - * login may have more than one network associated with it. - *

- * - * @return the networks to which the current login has access - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAllNetworks { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetAllNetworksResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAllNetworksResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCurrentNetwork", false)) { - /** - * Returns the current network for which requests are being made. - * - * @return the network for which the user is currently making the request - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCurrentNetwork { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetCurrentNetworkResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCurrentNetworkResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("MakeTestNetwork", false)) { - /** - * Creates a new blank network for testing purposes using the current login. - *

- * Each login(i.e. email address) can only have one test network. Data from - * any of your existing networks will not be transferred to the new test network. - * Once the test network is created, the test network can be used in the API - * by supplying the {@link Network#networkCode} in the SOAP header or by - * logging into the DFP UI. - *

- * Test networks are limited in the following ways: - *

    - *
  • Test networks cannot serve ads.
  • - *
  • Because test networks cannot serve ads, reports will always come - * back without data.
  • - *
  • Since forecasting requires serving history, forecast service results - * will be faked. See {@link ForecastService} for more info.
  • - *
  • Test networks are, by default, small business networks and do not have any - * premium features. To have additional features turned on, please contact your - * account manager.
  • - *
  • Test networks are limited to 10,000 objects per entity type.
  • - *
- *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MakeTestNetwork { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("MakeTestNetworkResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MakeTestNetworkResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateNetwork", false)) { - /** - * Updates the specified network. Currently, only the network display name can - * be updated. - * - * @param network the network that needs to be updated - * @return the updated network - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateNetwork { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $network; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($network = null) { - $this->network = $network; - } - - } -} - -if (!class_exists("UpdateNetworkResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateNetworkResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Network - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("NetworkService", false)) { - /** - * NetworkService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NetworkService extends DfpSoapClient { - - const SERVICE_NAME = "NetworkService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/NetworkService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/NetworkService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "ExchangeRateError" => "ExchangeRateError", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "Network" => "Network", - "NetworkError" => "NetworkError", - "NotNullError" => "NotNullError", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PrecisionError" => "PrecisionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "ExchangeRateError.Reason" => "ExchangeRateErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "NetworkError.Reason" => "NetworkErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PrecisionError.Reason" => "PrecisionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "getAllNetworks" => "GetAllNetworks", - "getAllNetworksResponse" => "GetAllNetworksResponse", - "getCurrentNetwork" => "GetCurrentNetwork", - "getCurrentNetworkResponse" => "GetCurrentNetworkResponse", - "makeTestNetwork" => "MakeTestNetwork", - "makeTestNetworkResponse" => "MakeTestNetworkResponse", - "updateNetwork" => "UpdateNetwork", - "updateNetworkResponse" => "UpdateNetworkResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the list of {@link Network} objects to which the current login has - * access. - *

- * Intended to be used without a network code in the SOAP header when the - * login may have more than one network associated with it. - *

- * - * @return the networks to which the current login has access - */ - public function getAllNetworks() { - $args = new GetAllNetworks(); - $result = $this->__soapCall("getAllNetworks", array($args)); - return $result->rval; - } - /** - * Returns the current network for which requests are being made. - * - * @return the network for which the user is currently making the request - */ - public function getCurrentNetwork() { - $args = new GetCurrentNetwork(); - $result = $this->__soapCall("getCurrentNetwork", array($args)); - return $result->rval; - } - /** - * Creates a new blank network for testing purposes using the current login. - *

- * Each login(i.e. email address) can only have one test network. Data from - * any of your existing networks will not be transferred to the new test network. - * Once the test network is created, the test network can be used in the API - * by supplying the {@link Network#networkCode} in the SOAP header or by - * logging into the DFP UI. - *

- * Test networks are limited in the following ways: - *

    - *
  • Test networks cannot serve ads.
  • - *
  • Because test networks cannot serve ads, reports will always come - * back without data.
  • - *
  • Since forecasting requires serving history, forecast service results - * will be faked. See {@link ForecastService} for more info.
  • - *
  • Test networks are, by default, small business networks and do not have any - * premium features. To have additional features turned on, please contact your - * account manager.
  • - *
  • Test networks are limited to 10,000 objects per entity type.
  • - *
- *

- */ - public function makeTestNetwork() { - $args = new MakeTestNetwork(); - $result = $this->__soapCall("makeTestNetwork", array($args)); - return $result->rval; - } - /** - * Updates the specified network. Currently, only the network display name can - * be updated. - * - * @param network the network that needs to be updated - * @return the updated network - */ - public function updateNetwork($network) { - $args = new UpdateNetwork($network); - $result = $this->__soapCall("updateNetwork", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/PlacementService.php b/src/Google/Api/Ads/Dfp/v201311/PlacementService.php deleted file mode 100755 index ed78fc8a8..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/PlacementService.php +++ /dev/null @@ -1,4162 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("EntityLimitReachedError", false)) { - /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class EntityLimitReachedError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EntityLimitReachedError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementAction", false)) { - /** - * Represents the actions that can be performed on {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementAction"; - - /** - * @access public - * @var string - */ - public $PlacementActionType; - private $_parameterMap = array( - "PlacementAction.Type" => "PlacementActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("PlacementError", false)) { - /** - * Class defining all validation errors for a placement. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementError"; - - /** - * @access public - * @var tnsPlacementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementPage", false)) { - /** - * Captures a page of {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Placement[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SiteTargetingInfo", false)) { - /** - * Contains information required for AdWords advertisers to place their ads. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SiteTargetingInfo { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SiteTargetingInfo"; - - /** - * @access public - * @var string - */ - public $targetingDescription; - - /** - * @access public - * @var string - */ - public $targetingSiteName; - - /** - * @access public - * @var string - */ - public $targetingAdLocation; - - /** - * @access public - * @var string - */ - public $SiteTargetingInfoType; - private $_parameterMap = array( - "SiteTargetingInfo.Type" => "SiteTargetingInfoType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null, $SiteTargetingInfoType = null) { - $this->targetingDescription = $targetingDescription; - $this->targetingSiteName = $targetingSiteName; - $this->targetingAdLocation = $targetingAdLocation; - $this->SiteTargetingInfoType = $SiteTargetingInfoType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryStatus", false)) { - /** - * Represents the status of objects that represent inventory - ad units and - * placements. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PlacementErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreatePlacement", false)) { - /** - * Creates a new {@link Placement}. - * - * The following fields are required: - *
    - *
  • {@link Placement#name}
  • - *
  • {@link Placement#description}
  • - *
- * - * @param placement the placement to create - * @return the new placement with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreatePlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $placement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placement = null) { - $this->placement = $placement; - } - - } -} - -if (!class_exists("CreatePlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreatePlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreatePlacements", false)) { - /** - * Creates new {@link Placement} objects. - * - * @param placements the placements to create - * @return the new placements, with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreatePlacements { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $placements; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placements = null) { - $this->placements = $placements; - } - - } -} - -if (!class_exists("CreatePlacementsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreatePlacementsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetPlacement", false)) { - /** - * Returns the {@link Placement} uniquely identified by the given ID. - * - * @param placementId ID of the placement, which must already exist - * @return the {@code Placement} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetPlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $placementId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementId = null) { - $this->placementId = $placementId; - } - - } -} - -if (!class_exists("GetPlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetPlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetPlacementsByStatement", false)) { - /** - * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code description}{@link Placement#description}
{@code id}{@link Placement#id}
{@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
{@code name}{@link Placement#name}
{@code placementCode}{@link Placement#placementCode}
{@code status}{@link Placement#status}
{@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the placements that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetPlacementsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetPlacementsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetPlacementsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var PlacementPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformPlacementAction", false)) { - /** - * Performs actions on {@link Placement} objects that match the given - * {@link Statement#query}. - * - * @param placementAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformPlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var PlacementAction - */ - public $placementAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementAction = null, $filterStatement = null) { - $this->placementAction = $placementAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformPlacementActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformPlacementActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdatePlacement", false)) { - /** - * Updates the specified {@link Placement}. - * - * @param placement the placement to update - * @return the updated placement - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdatePlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $placement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placement = null) { - $this->placement = $placement; - } - - } -} - -if (!class_exists("UpdatePlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdatePlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdatePlacements", false)) { - /** - * Updates the specified {@link Placement} objects. - * - * @param placements the placements to update - * @return the updated placements - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdatePlacements { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $placements; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placements = null) { - $this->placements = $placements; - } - - } -} - -if (!class_exists("UpdatePlacementsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdatePlacementsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivatePlacements", false)) { - /** - * The action used for activating {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivatePlacements extends PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivatePlacements"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - parent::__construct(); - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchivePlacements", false)) { - /** - * The action used for archiving {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ArchivePlacements extends PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ArchivePlacements"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - parent::__construct(); - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivatePlacements", false)) { - /** - * The action used for deactivating {@link Placement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivatePlacements extends PlacementAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivatePlacements"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($PlacementActionType = null) { - parent::__construct(); - $this->PlacementActionType = $PlacementActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Placement", false)) { - /** - * A {@code Placement} groups related {@code AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Placement extends SiteTargetingInfo { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Placement"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var string - */ - public $placementCode; - - /** - * @access public - * @var tnsInventoryStatus - */ - public $status; - - /** - * @access public - * @var boolean - */ - public $isAdSenseTargetingEnabled; - - /** - * @access public - * @var boolean - */ - public $isAdPlannerTargetingEnabled; - - /** - * @access public - * @var string - */ - public $adSenseTargetingLocale; - - /** - * @access public - * @var string[] - */ - public $targetedAdUnitIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null, $placementCode = null, $status = null, $isAdSenseTargetingEnabled = null, $isAdPlannerTargetingEnabled = null, $adSenseTargetingLocale = null, $targetedAdUnitIds = null, $lastModifiedDateTime = null, $targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null, $SiteTargetingInfoType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->placementCode = $placementCode; - $this->status = $status; - $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; - $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; - $this->adSenseTargetingLocale = $adSenseTargetingLocale; - $this->targetedAdUnitIds = $targetedAdUnitIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->targetingDescription = $targetingDescription; - $this->targetingSiteName = $targetingSiteName; - $this->targetingAdLocation = $targetingAdLocation; - $this->SiteTargetingInfoType = $SiteTargetingInfoType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("PlacementService", false)) { - /** - * PlacementService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementService extends DfpSoapClient { - - const SERVICE_NAME = "PlacementService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/PlacementService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/PlacementService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivatePlacements" => "ActivatePlacements", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "ArchivePlacements" => "ArchivePlacements", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivatePlacements" => "DeactivatePlacements", - "EntityLimitReachedError" => "EntityLimitReachedError", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PlacementAction" => "PlacementAction", - "Placement" => "Placement", - "PlacementError" => "PlacementError", - "PlacementPage" => "PlacementPage", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegExError" => "RegExError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SiteTargetingInfo" => "SiteTargetingInfo", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InventoryStatus" => "InventoryStatus", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PlacementError.Reason" => "PlacementErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "createPlacement" => "CreatePlacement", - "createPlacementResponse" => "CreatePlacementResponse", - "createPlacements" => "CreatePlacements", - "createPlacementsResponse" => "CreatePlacementsResponse", - "getPlacement" => "GetPlacement", - "getPlacementResponse" => "GetPlacementResponse", - "getPlacementsByStatement" => "GetPlacementsByStatement", - "getPlacementsByStatementResponse" => "GetPlacementsByStatementResponse", - "performPlacementAction" => "PerformPlacementAction", - "performPlacementActionResponse" => "PerformPlacementActionResponse", - "updatePlacement" => "UpdatePlacement", - "updatePlacementResponse" => "UpdatePlacementResponse", - "updatePlacements" => "UpdatePlacements", - "updatePlacementsResponse" => "UpdatePlacementsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link Placement}. - * - * The following fields are required: - *
    - *
  • {@link Placement#name}
  • - *
  • {@link Placement#description}
  • - *
- * - * @param placement the placement to create - * @return the new placement with its ID set - */ - public function createPlacement($placement) { - $args = new CreatePlacement($placement); - $result = $this->__soapCall("createPlacement", array($args)); - return $result->rval; - } - /** - * Creates new {@link Placement} objects. - * - * @param placements the placements to create - * @return the new placements, with their IDs filled in - */ - public function createPlacements($placements) { - $args = new CreatePlacements($placements); - $result = $this->__soapCall("createPlacements", array($args)); - return $result->rval; - } - /** - * Returns the {@link Placement} uniquely identified by the given ID. - * - * @param placementId ID of the placement, which must already exist - * @return the {@code Placement} uniquely identified by the given ID - */ - public function getPlacement($placementId) { - $args = new GetPlacement($placementId); - $result = $this->__soapCall("getPlacement", array($args)); - return $result->rval; - } - /** - * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code description}{@link Placement#description}
{@code id}{@link Placement#id}
{@code isAdSenseTargetingEnabled}{@link Placement#isAdSenseTargetingEnabled}
{@code name}{@link Placement#name}
{@code placementCode}{@link Placement#placementCode}
{@code status}{@link Placement#status}
{@code lastModifiedDateTime}{@link Placement#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the placements that match the given filter - */ - public function getPlacementsByStatement($filterStatement) { - $args = new GetPlacementsByStatement($filterStatement); - $result = $this->__soapCall("getPlacementsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link Placement} objects that match the given - * {@link Statement#query}. - * - * @param placementAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of placements - * @return the result of the action performed - */ - public function performPlacementAction($placementAction, $filterStatement) { - $args = new PerformPlacementAction($placementAction, $filterStatement); - $result = $this->__soapCall("performPlacementAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Placement}. - * - * @param placement the placement to update - * @return the updated placement - */ - public function updatePlacement($placement) { - $args = new UpdatePlacement($placement); - $result = $this->__soapCall("updatePlacement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Placement} objects. - * - * @param placements the placements to update - * @return the updated placements - */ - public function updatePlacements($placements) { - $args = new UpdatePlacements($placements); - $result = $this->__soapCall("updatePlacements", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ProductService.php b/src/Google/Api/Ads/Dfp/v201311/ProductService.php deleted file mode 100755 index f77a31fbf..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ProductService.php +++ /dev/null @@ -1,5852 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BaseRateError", false)) { - /** - * An error having to do with {@link BaseRate}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError"; - - /** - * @access public - * @var tnsBaseRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $type; - - /** - * @access public - * @var integer - */ - public $canonicalParentId; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null, $LocationType = null) { - $this->id = $id; - $this->type = $type; - $this->canonicalParentId = $canonicalParentId; - $this->displayName = $displayName; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductAction", false)) { - /** - * Represents the actions that can be performed on products. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductAction"; - - /** - * @access public - * @var string - */ - public $ProductActionType; - private $_parameterMap = array( - "ProductAction.Type" => "ProductActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("ProductActionError", false)) { - /** - * An error lists all error reasons associated with performing action on {@link Product} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductActionError"; - - /** - * @access public - * @var tnsProductActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Product", false)) { - /** - * {@link ProposalLineItem Proposal line items} are created from products, - * from which their properties are copied. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Product { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Product"; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var tnsProductStatus - */ - public $status; - - /** - * @access public - * @var tnsProductType - */ - public $productType; - - /** - * @access public - * @var integer - */ - public $productTemplateId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * @access public - * @var string - */ - public $productTemplateDescription; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var tnsRateType - */ - public $rateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var boolean - */ - public $allowFrequencyCapsCustomization; - - /** - * @access public - * @var ProductTemplateTargeting - */ - public $targeting; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($name = null, $status = null, $productType = null, $productTemplateId = null, $id = null, $notes = null, $productTemplateDescription = null, $lastModifiedDateTime = null, $rateType = null, $roadblockingType = null, $creativePlaceholders = null, $lineItemType = null, $priority = null, $frequencyCaps = null, $allowFrequencyCapsCustomization = null, $targeting = null, $customFieldValues = null) { - $this->name = $name; - $this->status = $status; - $this->productType = $productType; - $this->productTemplateId = $productTemplateId; - $this->id = $id; - $this->notes = $notes; - $this->productTemplateDescription = $productTemplateDescription; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->rateType = $rateType; - $this->roadblockingType = $roadblockingType; - $this->creativePlaceholders = $creativePlaceholders; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->frequencyCaps = $frequencyCaps; - $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; - $this->targeting = $targeting; - $this->customFieldValues = $customFieldValues; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductPage", false)) { - /** - * Captures a page of {@link ProductDto} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var Product[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ProductTemplateTargeting", false)) { - /** - * Contains targeting criteria for {@link ProductTemplate} objects. - * {@link ProposalLineItem Proposal line items} created from {@link Product products} - * of this template will have this criteria added to {@link ProposalLineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateTargeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var boolean - */ - public $allowGeoTargetingCustomization; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var boolean - */ - public $allowAdUnitTargetingCustomization; - - /** - * @access public - * @var boolean - */ - public $allowPlacementTargetingCustomization; - - /** - * @access public - * @var integer[] - */ - public $customizableCustomTargetingKeyIds; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var boolean - */ - public $allowUserDomainTargetingCustomization; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBandwidthGroupTargetingCustomization; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserTargetingCustomization; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserLanguageTargetingCustomization; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var boolean - */ - public $allowOperatingSystemTargetingCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customizableCustomTargetingKeyIds = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null) { - $this->geoTargeting = $geoTargeting; - $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; - $this->inventoryTargeting = $inventoryTargeting; - $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; - $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; - $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; - $this->userDomainTargeting = $userDomainTargeting; - $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; - $this->browserTargeting = $browserTargeting; - $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductStatus", false)) { - /** - * Describes the different statuses for {@link Product}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductType", false)) { - /** - * Describes the type of {@link Product}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateType", false)) { - /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetProductsByStatement", false)) { - /** - * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by - * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject PropertyFilterableSortable
{@code rateCardId}Rate card ID which the product is associated withYesNo
{@code status}{@link Product#status}YesYes
{@code lineItemType}{@link Product#lineItemType}YesYes
{@code productType}{@link Product#productType}YesYes
{@code rateType}{@link Product#rateType}YesYes
{@code productTemplateId}{@link Product#productTemplateId}YesNo
{@code name}{@link Product#name}YesYes
{@code description}{@link Product#description}YesNo
{@code id}{@link Product#id}YesYes
{@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}YesYes
- * - * @param statement a Publisher Query Language statement which specifies the filtering - * criteria over products - * @return the products that match the given statement - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProductsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetProductsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProductsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProductAction", false)) { - /** - * Performs action on {@link Product} objects that satisfy the given {@link Statement}. - * - * @param productAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of products. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductAction - */ - public $productAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productAction = null, $filterStatement = null) { - $this->productAction = $productAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProductActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformProductActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProduct", false)) { - /** - * Updates the specified {@link Product}. - * Note non-updatable fields will not be backfilled. - * - * @param product the product to update - * @return the updated product - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProduct { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product - */ - public $product; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($product = null) { - $this->product = $product; - } - - } -} - -if (!class_exists("UpdateProductResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProductResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProducts", false)) { - /** - * Updates the specified {@link Product} objects. - * Note non-updatable fields will not be backfilled. - * - * @param products the products to update - * @return the updated products - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProducts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product[] - */ - public $products; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($products = null) { - $this->products = $products; - } - - } -} - -if (!class_exists("UpdateProductsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProductsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateProducts", false)) { - /** - * The action used to activate products. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateProducts extends ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateProducts"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - parent::__construct(); - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveProducts", false)) { - /** - * The action used to archive products. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ArchiveProducts extends ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ArchiveProducts"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - parent::__construct(); - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateProducts", false)) { - /** - * The action used to deactivate products. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateProducts extends ProductAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateProducts"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductActionType = null) { - parent::__construct(); - $this->ProductActionType = $ProductActionType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ProductService", false)) { - /** - * ProductService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductService extends DfpSoapClient { - - const SERVICE_NAME = "ProductService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ProductService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ProductService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateProducts" => "ActivateProducts", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveProducts" => "ArchiveProducts", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BaseRateError" => "BaseRateError", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativePlaceholder" => "CreativePlaceholder", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateProducts" => "DeactivateProducts", - "DeviceCapability" => "DeviceCapability", - "DeviceCategory" => "DeviceCategory", - "DeviceManufacturer" => "DeviceManufacturer", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "GeoTargeting" => "GeoTargeting", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "Location" => "DfpLocation", - "MobileCarrier" => "MobileCarrier", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "PermissionError" => "PermissionError", - "ProductAction" => "ProductAction", - "ProductActionError" => "ProductActionError", - "Product" => "Product", - "ProductError" => "ProductError", - "ProductPage" => "ProductPage", - "ProductTemplateTargeting" => "ProductTemplateTargeting", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Technology" => "Technology", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeSizeType" => "CreativeSizeType", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "LineItemType" => "LineItemType", - "NotNullError.Reason" => "NotNullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "ProductActionError.Reason" => "ProductActionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "ProductStatus" => "ProductStatus", - "ProductType" => "ProductType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateType" => "RateType", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TimeUnit" => "TimeUnit", - "getProductsByStatement" => "GetProductsByStatement", - "getProductsByStatementResponse" => "GetProductsByStatementResponse", - "performProductAction" => "PerformProductAction", - "performProductActionResponse" => "PerformProductActionResponse", - "updateProduct" => "UpdateProduct", - "updateProductResponse" => "UpdateProductResponse", - "updateProducts" => "UpdateProducts", - "updateProductsResponse" => "UpdateProductsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by - * given {@link Statement#query}. The following fields are supported for filtering and/or sorting: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject PropertyFilterableSortable
{@code rateCardId}Rate card ID which the product is associated withYesNo
{@code status}{@link Product#status}YesYes
{@code lineItemType}{@link Product#lineItemType}YesYes
{@code productType}{@link Product#productType}YesYes
{@code rateType}{@link Product#rateType}YesYes
{@code productTemplateId}{@link Product#productTemplateId}YesNo
{@code name}{@link Product#name}YesYes
{@code description}{@link Product#description}YesNo
{@code id}{@link Product#id}YesYes
{@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}YesYes
- * - * @param statement a Publisher Query Language statement which specifies the filtering - * criteria over products - * @return the products that match the given statement - */ - public function getProductsByStatement($statement) { - $args = new GetProductsByStatement($statement); - $result = $this->__soapCall("getProductsByStatement", array($args)); - return $result->rval; - } - /** - * Performs action on {@link Product} objects that satisfy the given {@link Statement}. - * - * @param productAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of products. - * @return the result of the action performed - */ - public function performProductAction($productAction, $filterStatement) { - $args = new PerformProductAction($productAction, $filterStatement); - $result = $this->__soapCall("performProductAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Product}. - * Note non-updatable fields will not be backfilled. - * - * @param product the product to update - * @return the updated product - */ - public function updateProduct($product) { - $args = new UpdateProduct($product); - $result = $this->__soapCall("updateProduct", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Product} objects. - * Note non-updatable fields will not be backfilled. - * - * @param products the products to update - * @return the updated products - */ - public function updateProducts($products) { - $args = new UpdateProducts($products); - $result = $this->__soapCall("updateProducts", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php deleted file mode 100755 index ef1623b6c..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ProductTemplateService.php +++ /dev/null @@ -1,6759 +0,0 @@ -adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AppliedLabel", false)) { - /** - * Represents a {@link Label} that can be applied to an entity. To negate an - * inherited label, create an {@code AppliedLabel} with {@code labelId} as the - * inherited label's ID and {@code isNegated} set to true. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AppliedLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AppliedLabel"; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * @access public - * @var boolean - */ - public $isNegated; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null, $isNegated = null) { - $this->labelId = $labelId; - $this->isNegated = $isNegated; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BandwidthGroupTargeting", false)) { - /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BandwidthGroupTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BandwidthGroupTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $bandwidthGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("BaseRateError", false)) { - /** - * An error having to do with {@link BaseRate}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError"; - - /** - * @access public - * @var tnsBaseRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BrowserLanguageTargeting", false)) { - /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserLanguageTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserLanguageTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browserLanguages; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; - } - - } -} - -if (!class_exists("BrowserTargeting", false)) { - /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $browsers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativePlaceholder", false)) { - /** - * A {@code CreativePlaceholder} describes a slot that a creative is expected to - * fill. This is used primarily to help in forecasting, and also to validate - * that the correct creatives are associated with the line item. A - * {@code CreativePlaceholder} must contain a size, and it can optionally - * contain companions. Companions are only valid if the line item's environment - * type is {@link EnvironmentType#VIDEO_PLAYER}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativePlaceholder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativePlaceholder"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $companions; - - /** - * @access public - * @var AppliedLabel[] - */ - public $appliedLabels; - - /** - * @access public - * @var AppliedLabel[] - */ - public $effectiveAppliedLabels; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $expectedCreativeCount; - - /** - * @access public - * @var tnsCreativeSizeType - */ - public $creativeSizeType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $companions = null, $appliedLabels = null, $effectiveAppliedLabels = null, $id = null, $expectedCreativeCount = null, $creativeSizeType = null) { - $this->size = $size; - $this->companions = $companions; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->id = $id; - $this->expectedCreativeCount = $expectedCreativeCount; - $this->creativeSizeType = $creativeSizeType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FrequencyCap", false)) { - /** - * Represents a limit on the number of times a single viewer can be exposed to - * the same {@link LineItem} in a specified time period. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCap { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCap"; - - /** - * @access public - * @var integer - */ - public $maxImpressions; - - /** - * @access public - * @var integer - */ - public $numTimeUnits; - - /** - * @access public - * @var tnsTimeUnit - */ - public $timeUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($maxImpressions = null, $numTimeUnits = null, $timeUnit = null) { - $this->maxImpressions = $maxImpressions; - $this->numTimeUnits = $numTimeUnits; - $this->timeUnit = $timeUnit; - } - - } -} - -if (!class_exists("FrequencyCapError", false)) { - /** - * Lists all errors associated with frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCapError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapError"; - - /** - * @access public - * @var tnsFrequencyCapErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GenericTargetingError", false)) { - /** - * Targeting validation errors that can be used by different targeting types. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GenericTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GenericTargetingError"; - - /** - * @access public - * @var tnsGenericTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("GeoTargeting", false)) { - /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

- * The following rules apply for geographical targeting: - *

- *
    - *
  • You cannot target and exclude the same location
  • - *
  • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
  • - *
  • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
  • - *
- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GeoTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeoTargeting"; - - /** - * @access public - * @var Location[] - */ - public $targetedLocations; - - /** - * @access public - * @var Location[] - */ - public $excludedLocations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; - } - - } -} - -if (!class_exists("GeoTargetingError", false)) { - /** - * Lists all errors associated with geographical targeting for a - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GeoTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeoTargetingError"; - - /** - * @access public - * @var tnsGeoTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargeting", false)) { - /** - * A collection of targeted and excluded ad units and placements. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpLocation", false)) { - /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Location"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $type; - - /** - * @access public - * @var integer - */ - public $canonicalParentId; - - /** - * @access public - * @var string - */ - public $displayName; - - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null, $LocationType = null) { - $this->id = $id; - $this->type = $type; - $this->canonicalParentId = $canonicalParentId; - $this->displayName = $displayName; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PlacementTargeting", false)) { - /** - * Specifies what {@link Placement placements} are targeted. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedPlacementIds; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($targetedPlacementIds = null) { - $this->targetedPlacementIds = $targetedPlacementIds; - } - - } -} - -if (!class_exists("ProductTemplateAction", false)) { - /** - * Represents the actions that can be performed on product templates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateAction"; - - /** - * @access public - * @var string - */ - public $ProductTemplateActionType; - private $_parameterMap = array( - "ProductTemplateAction.Type" => "ProductTemplateActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("ProductTemplateActionError", false)) { - /** - * An error lists all error reasons associated with performing action on - * {@link ProductTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateActionError"; - - /** - * @access public - * @var tnsProductTemplateActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductTemplate", false)) { - /** - * {@code ProductTemplate} is used to generate products. All generated products will - * inherit all attributes from their {@code ProductTemplate}, except for segmentation, - * which will be included in the {@link Product#targeting}. The generated products in turn will be - * used to create {@link ProposalLineItem proposal line items} so that almost all attributes - * in the product template are properties of the proposal line item. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplate"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var DateTime - */ - public $creationDateTime; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * @access public - * @var string - */ - public $description; - - /** - * @access public - * @var string - */ - public $nameMacro; - - /** - * @access public - * @var tnsProductTemplateStatus - */ - public $status; - - /** - * @access public - * @var tnsProductType - */ - public $productType; - - /** - * @access public - * @var integer - */ - public $creatorId; - - /** - * @access public - * @var tnsRateType - */ - public $rateType; - - /** - * @access public - * @var tnsRoadblockingType - */ - public $roadblockingType; - - /** - * @access public - * @var CreativePlaceholder[] - */ - public $creativePlaceholders; - - /** - * @access public - * @var tnsLineItemType - */ - public $lineItemType; - - /** - * @access public - * @var integer - */ - public $priority; - - /** - * @access public - * @var FrequencyCap[] - */ - public $frequencyCaps; - - /** - * @access public - * @var boolean - */ - public $allowFrequencyCapsCustomization; - - /** - * @access public - * @var ProductSegmentation - */ - public $productSegmentation; - - /** - * @access public - * @var ProductTemplateTargeting - */ - public $targeting; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $creationDateTime = null, $lastModifiedDateTime = null, $description = null, $nameMacro = null, $status = null, $productType = null, $creatorId = null, $rateType = null, $roadblockingType = null, $creativePlaceholders = null, $lineItemType = null, $priority = null, $frequencyCaps = null, $allowFrequencyCapsCustomization = null, $productSegmentation = null, $targeting = null, $customFieldValues = null) { - $this->id = $id; - $this->name = $name; - $this->creationDateTime = $creationDateTime; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->description = $description; - $this->nameMacro = $nameMacro; - $this->status = $status; - $this->productType = $productType; - $this->creatorId = $creatorId; - $this->rateType = $rateType; - $this->roadblockingType = $roadblockingType; - $this->creativePlaceholders = $creativePlaceholders; - $this->lineItemType = $lineItemType; - $this->priority = $priority; - $this->frequencyCaps = $frequencyCaps; - $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; - $this->productSegmentation = $productSegmentation; - $this->targeting = $targeting; - $this->customFieldValues = $customFieldValues; - } - - } -} - -if (!class_exists("ProductTemplateError", false)) { - /** - * A catch-all error that lists all generic errors associated with ProductTemplate. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateError"; - - /** - * @access public - * @var tnsProductTemplateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductTemplatePage", false)) { - /** - * Captures a page of {@link ProductTemplate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplatePage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ProductTemplate[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("ProductSegmentation", false)) { - /** - * Segmentations used to create products. Within a product template, for each segmentation, - * a product will be created for the combination of all other segments within other segmentations. - *

- * For example, a product with 3 segmentations with only 1 segment for each will produce - * {@code 1 x 1 x 1 = 1} product. - * A product with 3 segmentations with 2 segments for each will produce {@code 2 x 2 x 2 = 8} - * products. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductSegmentation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductSegmentation"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoSegment; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $adUnitSegments; - - /** - * @access public - * @var PlacementTargeting - */ - public $placementSegment; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainSegment; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthSegment; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserSegment; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageSegment; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemSegment; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoSegment = null, $adUnitSegments = null, $placementSegment = null, $userDomainSegment = null, $bandwidthSegment = null, $browserSegment = null, $browserLanguageSegment = null, $operatingSystemSegment = null) { - $this->geoSegment = $geoSegment; - $this->adUnitSegments = $adUnitSegments; - $this->placementSegment = $placementSegment; - $this->userDomainSegment = $userDomainSegment; - $this->bandwidthSegment = $bandwidthSegment; - $this->browserSegment = $browserSegment; - $this->browserLanguageSegment = $browserLanguageSegment; - $this->operatingSystemSegment = $operatingSystemSegment; - } - - } -} - -if (!class_exists("ProductTemplateTargeting", false)) { - /** - * Contains targeting criteria for {@link ProductTemplate} objects. - * {@link ProposalLineItem Proposal line items} created from {@link Product products} - * of this template will have this criteria added to {@link ProposalLineItem#targeting}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateTargeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var boolean - */ - public $allowGeoTargetingCustomization; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; - - /** - * @access public - * @var boolean - */ - public $allowAdUnitTargetingCustomization; - - /** - * @access public - * @var boolean - */ - public $allowPlacementTargetingCustomization; - - /** - * @access public - * @var integer[] - */ - public $customizableCustomTargetingKeyIds; - - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; - - /** - * @access public - * @var boolean - */ - public $allowUserDomainTargetingCustomization; - - /** - * @access public - * @var BandwidthGroupTargeting - */ - public $bandwidthGroupTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBandwidthGroupTargetingCustomization; - - /** - * @access public - * @var BrowserTargeting - */ - public $browserTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserTargetingCustomization; - - /** - * @access public - * @var BrowserLanguageTargeting - */ - public $browserLanguageTargeting; - - /** - * @access public - * @var boolean - */ - public $allowBrowserLanguageTargetingCustomization; - - /** - * @access public - * @var OperatingSystemTargeting - */ - public $operatingSystemTargeting; - - /** - * @access public - * @var boolean - */ - public $allowOperatingSystemTargetingCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customizableCustomTargetingKeyIds = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null) { - $this->geoTargeting = $geoTargeting; - $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; - $this->inventoryTargeting = $inventoryTargeting; - $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; - $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; - $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; - $this->userDomainTargeting = $userDomainTargeting; - $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; - $this->browserTargeting = $browserTargeting; - $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Technology", false)) { - /** - * Represents a technology entity that can be targeted. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainTargeting", false)) { - /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; - } - - } -} - -if (!class_exists("UserDomainTargetingError", false)) { - /** - * Lists all errors related to user domain targeting for a line item. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargetingError"; - - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeSizeType", false)) { - /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeSizeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSizeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FrequencyCapErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GenericTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GenericTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GenericTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GeoTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GeoTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeoTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemType", false)) { - /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductTemplateActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductTemplateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductTemplateStatus", false)) { - /** - * Describes the different statuses for ProductTemplate. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductType", false)) { - /** - * Describes the type of {@link Product}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateType", false)) { - /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RoadblockingType", false)) { - /** - * Describes the roadblocking types. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RoadblockingType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RoadblockingType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TimeUnit", false)) { - /** - * Represent the possible time units for frequency capping. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TimeUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TimeUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("UserDomainTargetingErrorReason", false)) { - /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateProductTemplate", false)) { - /** - * Creates a new {@link ProductTemplate}. - * - * The following fields are required: - *
    - *
  • {@link ProductTemplate#name}
  • - *
  • {@link ProductTemplate#nameMacro}
  • - *
  • {@link ProductTemplate#productType}
  • - *
  • {@link ProductTemplate#rateType}
  • - *
  • {@link ProductTemplate#creativePlaceholders} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#lineItemType} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is - * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} - * is not specified)
  • - *
- * - * @param productTemplate the product template to create - * @return the persisted product template with tis ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $productTemplate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplate = null) { - $this->productTemplate = $productTemplate; - } - - } -} - -if (!class_exists("CreateProductTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateProductTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateProductTemplates", false)) { - /** - * Creates new {@link ProductTemplate} objects. - * - * @param productTemplates the productTemplates to create - * @return the persisted product templates with their Ids filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateProductTemplates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $productTemplates; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplates = null) { - $this->productTemplates = $productTemplates; - } - - } -} - -if (!class_exists("CreateProductTemplatesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateProductTemplatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProductTemplate", false)) { - /** - * Returns the {@link ProductTemplate} uniquely identified by the given ID. - * - * @param productTemplateId the ID of the product template, which must already - * exist - * @return the {@code ProductTemplate} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $productTemplateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplateId = null) { - $this->productTemplateId = $productTemplateId; - } - - } -} - -if (!class_exists("GetProductTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProductTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetProductTemplatesByStatement", false)) { - /** - * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects - * that satisfy the filtering criteria specified by given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProductTemplate#id}
{@code name}{@link ProductTemplate#name}
{@code nameMacro}{@link ProductTemplate#nameMacro}
{@code description}{@link ProductTemplate#description}
{@code status}{@link ProductTemplate#status}
{@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
{@code lineItemType}{@link LineItemType}
{@code productType}{@link ProductType}
{@code rateType}{@link RateType}
- * - * @param statement a Publisher Query Language statement which specifies the - * filtering criteria over productTemplates - * @return the productTemplates that match the given statement - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProductTemplatesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($statement = null) { - $this->statement = $statement; - } - - } -} - -if (!class_exists("GetProductTemplatesByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProductTemplatesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplatePage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformProductTemplateAction", false)) { - /** - * Performs action on {@link ProductTemplate} objects that satisfy the given - * {@link Statement#query}. - * - * @param action the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of product templates - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplateAction - */ - public $action; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($action = null, $filterStatement = null) { - $this->action = $action; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformProductTemplateActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformProductTemplateActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProductTemplate", false)) { - /** - * Updates the specified {@link ProductTemplate}. - * - * @param productTemplate the product template to update - * @return the updated product template - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $productTemplate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplate = null) { - $this->productTemplate = $productTemplate; - } - - } -} - -if (!class_exists("UpdateProductTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProductTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateProductTemplates", false)) { - /** - * Updates the specified {@link ProductTemplate} objects. - * - * @param productTemplates the product templates to update - * @return the updated product templates - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProductTemplates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $productTemplates; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplates = null) { - $this->productTemplates = $productTemplates; - } - - } -} - -if (!class_exists("UpdateProductTemplatesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProductTemplatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateProductTemplates", false)) { - /** - * The action used for activating product templates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateProductTemplates extends ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateProductTemplates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ArchiveProducTemplates", false)) { - /** - * The action used for archiving product template. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ArchiveProducTemplates extends ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ArchiveProducTemplates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("BandwidthGroup", false)) { - /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BandwidthGroup extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BandwidthGroup"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("Browser", false)) { - /** - * Represents an internet browser. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; - - /** - * @access public - * @var string - */ - public $minorVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("BrowserLanguage", false)) { - /** - * Represents a Browser's language. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserLanguage extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserLanguage"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateProductTemplates", false)) { - /** - * The action used for deactivating product templates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateProductTemplates extends ProductTemplateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateProductTemplates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ProductTemplateActionType = null) { - parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; - } - - } -} - -if (!class_exists("DeviceCapability", false)) { - /** - * Represents a capability of a physical device. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeviceCapability extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCapability"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceCategory", false)) { - /** - * Represents the category of a device. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeviceCategory extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCategory"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("DeviceManufacturer", false)) { - /** - * Represents a mobile device's manufacturer. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeviceManufacturer extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceManufacturer"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileCarrier", false)) { - /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MobileCarrier extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileCarrier"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDevice", false)) { - /** - * Represents a Mobile Device. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MobileDevice extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileDevice"; - - /** - * @access public - * @var integer - */ - public $manufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->manufacturerCriterionId = $manufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("MobileDeviceSubmodel", false)) { - /** - * Represents a mobile device submodel. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class MobileDeviceSubmodel extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileDeviceSubmodel"; - - /** - * @access public - * @var integer - */ - public $mobileDeviceCriterionId; - - /** - * @access public - * @var integer - */ - public $deviceManufacturerCriterionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; - $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystem", false)) { - /** - * Represents an Operating System, such as Linux, Mac OS or Windows. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystem extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystem"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("OperatingSystemVersion", false)) { - /** - * Represents a specific version of an operating system. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystemVersion extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemVersion"; - - /** - * @access public - * @var integer - */ - public $majorVersion; - - /** - * @access public - * @var integer - */ - public $minorVersion; - - /** - * @access public - * @var integer - */ - public $microVersion; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { - parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->microVersion = $microVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ProductTemplateService", false)) { - /** - * ProductTemplateService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateService extends DfpSoapClient { - - const SERVICE_NAME = "ProductTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ProductTemplateService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ProductTemplateService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateProductTemplates" => "ActivateProductTemplates", - "AdUnitTargeting" => "AdUnitTargeting", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "AppliedLabel" => "AppliedLabel", - "ArchiveProducTemplates" => "ArchiveProducTemplates", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthGroup" => "BandwidthGroup", - "BandwidthGroupTargeting" => "BandwidthGroupTargeting", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BaseRateError" => "BaseRateError", - "BooleanValue" => "BooleanValue", - "Browser" => "Browser", - "BrowserLanguage" => "BrowserLanguage", - "BrowserLanguageTargeting" => "BrowserLanguageTargeting", - "BrowserTargeting" => "BrowserTargeting", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CreativePlaceholder" => "CreativePlaceholder", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateProductTemplates" => "DeactivateProductTemplates", - "DeviceCapability" => "DeviceCapability", - "DeviceCategory" => "DeviceCategory", - "DeviceManufacturer" => "DeviceManufacturer", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "FrequencyCap" => "FrequencyCap", - "FrequencyCapError" => "FrequencyCapError", - "GenericTargetingError" => "GenericTargetingError", - "GeoTargeting" => "GeoTargeting", - "GeoTargetingError" => "GeoTargetingError", - "InternalApiError" => "InternalApiError", - "InventoryTargeting" => "InventoryTargeting", - "InventoryTargetingError" => "InventoryTargetingError", - "Location" => "DfpLocation", - "MobileCarrier" => "MobileCarrier", - "MobileDevice" => "MobileDevice", - "MobileDeviceSubmodel" => "MobileDeviceSubmodel", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystem" => "OperatingSystem", - "OperatingSystemTargeting" => "OperatingSystemTargeting", - "OperatingSystemVersion" => "OperatingSystemVersion", - "PermissionError" => "PermissionError", - "PlacementTargeting" => "PlacementTargeting", - "ProductTemplateAction" => "ProductTemplateAction", - "ProductTemplateActionError" => "ProductTemplateActionError", - "ProductTemplate" => "ProductTemplate", - "ProductTemplateError" => "ProductTemplateError", - "ProductTemplatePage" => "ProductTemplatePage", - "ProductSegmentation" => "ProductSegmentation", - "ProductTemplateTargeting" => "ProductTemplateTargeting", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "Technology" => "Technology", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserDomainTargeting" => "UserDomainTargeting", - "UserDomainTargetingError" => "UserDomainTargetingError", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeSizeType" => "CreativeSizeType", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapError.Reason" => "FrequencyCapErrorReason", - "GenericTargetingError.Reason" => "GenericTargetingErrorReason", - "GeoTargetingError.Reason" => "GeoTargetingErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "LineItemType" => "LineItemType", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "ProductTemplateActionError.Reason" => "ProductTemplateActionErrorReason", - "ProductTemplateError.Reason" => "ProductTemplateErrorReason", - "ProductTemplateStatus" => "ProductTemplateStatus", - "ProductType" => "ProductType", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateType" => "RateType", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RoadblockingType" => "RoadblockingType", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TimeUnit" => "TimeUnit", - "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "createProductTemplate" => "CreateProductTemplate", - "createProductTemplateResponse" => "CreateProductTemplateResponse", - "createProductTemplates" => "CreateProductTemplates", - "createProductTemplatesResponse" => "CreateProductTemplatesResponse", - "getProductTemplate" => "GetProductTemplate", - "getProductTemplateResponse" => "GetProductTemplateResponse", - "getProductTemplatesByStatement" => "GetProductTemplatesByStatement", - "getProductTemplatesByStatementResponse" => "GetProductTemplatesByStatementResponse", - "performProductTemplateAction" => "PerformProductTemplateAction", - "performProductTemplateActionResponse" => "PerformProductTemplateActionResponse", - "updateProductTemplate" => "UpdateProductTemplate", - "updateProductTemplateResponse" => "UpdateProductTemplateResponse", - "updateProductTemplates" => "UpdateProductTemplates", - "updateProductTemplatesResponse" => "UpdateProductTemplatesResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link ProductTemplate}. - * - * The following fields are required: - *
    - *
  • {@link ProductTemplate#name}
  • - *
  • {@link ProductTemplate#nameMacro}
  • - *
  • {@link ProductTemplate#productType}
  • - *
  • {@link ProductTemplate#rateType}
  • - *
  • {@link ProductTemplate#creativePlaceholders} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#lineItemType} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
  • - *
  • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is - * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} - * is not specified)
  • - *
- * - * @param productTemplate the product template to create - * @return the persisted product template with tis ID filled in - */ - public function createProductTemplate($productTemplate) { - $args = new CreateProductTemplate($productTemplate); - $result = $this->__soapCall("createProductTemplate", array($args)); - return $result->rval; - } - /** - * Creates new {@link ProductTemplate} objects. - * - * @param productTemplates the productTemplates to create - * @return the persisted product templates with their Ids filled in - */ - public function createProductTemplates($productTemplates) { - $args = new CreateProductTemplates($productTemplates); - $result = $this->__soapCall("createProductTemplates", array($args)); - return $result->rval; - } - /** - * Returns the {@link ProductTemplate} uniquely identified by the given ID. - * - * @param productTemplateId the ID of the product template, which must already - * exist - * @return the {@code ProductTemplate} uniquely identified by the given ID - */ - public function getProductTemplate($productTemplateId) { - $args = new GetProductTemplate($productTemplateId); - $result = $this->__soapCall("getProductTemplate", array($args)); - return $result->rval; - } - /** - * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects - * that satisfy the filtering criteria specified by given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ProductTemplate#id}
{@code name}{@link ProductTemplate#name}
{@code nameMacro}{@link ProductTemplate#nameMacro}
{@code description}{@link ProductTemplate#description}
{@code status}{@link ProductTemplate#status}
{@code lastModifiedDateTime}{@link ProductTemplate#lastModifiedDateTime}
{@code lineItemType}{@link LineItemType}
{@code productType}{@link ProductType}
{@code rateType}{@link RateType}
- * - * @param statement a Publisher Query Language statement which specifies the - * filtering criteria over productTemplates - * @return the productTemplates that match the given statement - */ - public function getProductTemplatesByStatement($statement) { - $args = new GetProductTemplatesByStatement($statement); - $result = $this->__soapCall("getProductTemplatesByStatement", array($args)); - return $result->rval; - } - /** - * Performs action on {@link ProductTemplate} objects that satisfy the given - * {@link Statement#query}. - * - * @param action the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of product templates - * @return the result of the action performed - */ - public function performProductTemplateAction($action, $filterStatement) { - $args = new PerformProductTemplateAction($action, $filterStatement); - $result = $this->__soapCall("performProductTemplateAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProductTemplate}. - * - * @param productTemplate the product template to update - * @return the updated product template - */ - public function updateProductTemplate($productTemplate) { - $args = new UpdateProductTemplate($productTemplate); - $result = $this->__soapCall("updateProductTemplate", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ProductTemplate} objects. - * - * @param productTemplates the product templates to update - * @return the updated product templates - */ - public function updateProductTemplates($productTemplates) { - $args = new UpdateProductTemplates($productTemplates); - $result = $this->__soapCall("updateProductTemplates", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php deleted file mode 100755 index 7fe0a28e6..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/PublisherQueryLanguageService.php +++ /dev/null @@ -1,4280 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ColumnType", false)) { - /** - * Contains information about a column in a {@link ResultSet}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ColumnType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ColumnType"; - - /** - * @access public - * @var string - */ - public $labelName; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelName = null) { - $this->labelName = $labelName; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeError", false)) { - /** - * Lists all errors associated with creatives. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeError"; - - /** - * @access public - * @var tnsCreativeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("ExchangeRateError", false)) { - /** - * Lists all errors associated with {@link ExchangeRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ExchangeRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ExchangeRateError"; - - /** - * @access public - * @var tnsExchangeRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("FileError", false)) { - /** - * A list of all errors to be used for problems related to files. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FileError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FileError"; - - /** - * @access public - * @var tnsFileErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError"; - - /** - * @access public - * @var tnsInvalidUrlErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryTargetingError", false)) { - /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError"; - - /** - * @access public - * @var tnsInventoryTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InventoryUnitError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitError"; - - /** - * @access public - * @var tnsInventoryUnitErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemFlightDateError", false)) { - /** - * Lists all errors associated with LineItem start and end dates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemFlightDateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemFlightDateError"; - - /** - * @access public - * @var tnsLineItemFlightDateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("LineItemOperationError", false)) { - /** - * Lists all errors for executing operations on line items - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemOperationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemOperationError"; - - /** - * @access public - * @var tnsLineItemOperationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Caused by supplying a non-null value for an attribute that should be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderActionError", false)) { - /** - * Lists all errors associated with performing actions on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OrderActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderActionError"; - - /** - * @access public - * @var tnsOrderActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("OrderError", false)) { - /** - * Lists all errors associated with orders. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OrderError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderError"; - - /** - * @access public - * @var tnsOrderErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegExError", false)) { - /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError"; - - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredSizeError", false)) { - /** - * A list of all errors to be used for validating {@link Size}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError"; - - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReservationDetailsError", false)) { - /** - * Lists all errors associated with LineItem's reservation details. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReservationDetailsError"; - - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ResultSet", false)) { - /** - * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link - * Statement}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ResultSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ResultSet"; - - /** - * @access public - * @var ColumnType[] - */ - public $columnTypes; - - /** - * @access public - * @var Row[] - */ - public $rows; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($columnTypes = null, $rows = null) { - $this->columnTypes = $columnTypes; - $this->rows = $rows; - } - - } -} - -if (!class_exists("Row", false)) { - /** - * Each {@link Row} object represents data about one entity in a - * {@link ResultSet}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Row { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Row"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null) { - $this->values = $values; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { - /** - * The supplied Afc size is not valid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitAfcSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitCodeErrorReason", false)) { - /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitCodeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitCodeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdUnitHierarchyErrorReason", false)) { - /** - * The depth of the {@link AdUnit} in the inventory hierarchy is greater - * than is allowed. The maximum allowed depth is two below the effective - * root ad unit for Premium accounts and one level below effective root ad - * unit for Small Business accounts. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitHierarchyErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitHierarchyError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreativeErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ExchangeRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ExchangeRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ExchangeRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FileErrorReason", false)) { - /** - * The provided byte array is empty. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FileErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FileError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidUrlErrorReason", false)) { - /** - * The URL contains invalid characters. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InventoryUnitErrorReason", false)) { - /** - * Possible reasons for the error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InventoryUnitErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemFlightDateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemFlightDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LineItemOperationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LineItemOperationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemOperationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OrderActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("OrderErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OrderErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RegExErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RegExErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredSizeErrorReason", false)) { - /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredSizeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReservationDetailsErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReservationDetailsErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReservationDetailsError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Select", false)) { - /** - * Retrieves rows of data that satisfy the given {@link Statement#query} from - * the system. - * - * @param selectStatement a Publisher Query Language statement used to - * specify what data needs to returned - * - * @return a result set of data that matches the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Select { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $selectStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($selectStatement = null) { - $this->selectStatement = $selectStatement; - } - - } -} - -if (!class_exists("SelectResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SelectResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ResultSet - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("AdUnitAfcSizeError", false)) { - /** - * Caused by supplying sizes that are not compatible with the Afc sizes. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitAfcSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitAfcSizeError"; - - /** - * @access public - * @var tnsAdUnitAfcSizeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitCodeError", false)) { - /** - * Lists the generic errors associated with {@link AdUnit#adUnitCode}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitCodeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitCodeError"; - - /** - * @access public - * @var tnsAdUnitCodeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitHierarchyError", false)) { - /** - * Caused by creating an {@link AdUnit} object with an invalid hierarchy. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitHierarchyError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitHierarchyError"; - - /** - * @access public - * @var tnsAdUnitHierarchyErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageService", false)) { - /** - * PublisherQueryLanguageService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageService extends DfpSoapClient { - - const SERVICE_NAME = "PublisherQueryLanguageService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/PublisherQueryLanguageService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/PublisherQueryLanguageService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitAfcSizeError" => "AdUnitAfcSizeError", - "AdUnitCodeError" => "AdUnitCodeError", - "AdUnitHierarchyError" => "AdUnitHierarchyError", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "ColumnType" => "ColumnType", - "CommonError" => "CommonError", - "CreativeError" => "CreativeError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "ExchangeRateError" => "ExchangeRateError", - "FeatureError" => "FeatureError", - "FileError" => "FileError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "InvalidUrlError" => "InvalidUrlError", - "InventoryTargetingError" => "InventoryTargetingError", - "InventoryUnitError" => "InventoryUnitError", - "LineItemFlightDateError" => "LineItemFlightDateError", - "LineItemOperationError" => "LineItemOperationError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OrderActionError" => "OrderActionError", - "OrderError" => "OrderError", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RegExError" => "RegExError", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "ReservationDetailsError" => "ReservationDetailsError", - "ResultSet" => "ResultSet", - "Row" => "Row", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", - "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", - "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "ExchangeRateError.Reason" => "ExchangeRateErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", - "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "InventoryUnitError.Reason" => "InventoryUnitErrorReason", - "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", - "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "OrderActionError.Reason" => "OrderActionErrorReason", - "OrderError.Reason" => "OrderErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RegExError.Reason" => "RegExErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "select" => "Select", - "selectResponse" => "SelectResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Retrieves rows of data that satisfy the given {@link Statement#query} from - * the system. - * - * @param selectStatement a Publisher Query Language statement used to - * specify what data needs to returned - * - * @return a result set of data that matches the given filter - */ - public function select($selectStatement) { - $args = new Select($selectStatement); - $result = $this->__soapCall("select", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php deleted file mode 100755 index ebe2f0dce..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/RateCardCustomizationService.php +++ /dev/null @@ -1,4087 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardCustomizationAction", false)) { - /** - * Represents the action that can be performed on {@link RateCardCustomization} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardCustomizationAction"; - - /** - * @access public - * @var string - */ - public $RateCardCustomizationActionType; - private $_parameterMap = array( - "RateCardCustomizationAction.Type" => "RateCardCustomizationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("RateCardCustomization", false)) { - /** - * A customization of a {@link RateCard} which could be applied to the line item - * and charges extra premiums. - * - *

Rate card customizations are referred to as premiums in the UI. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardCustomization"; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsRateCardCustomizationStatus - */ - public $status; - - /** - * @access public - * @var RateCardFeature - */ - public $rateCardFeature; - - /** - * @access public - * @var tnsRateCardCustomizationAdjustmentType - */ - public $adjustmentType; - - /** - * @access public - * @var integer - */ - public $adjustmentSize; - - /** - * @access public - * @var tnsRateType - */ - public $rateType; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardId = null, $id = null, $status = null, $rateCardFeature = null, $adjustmentType = null, $adjustmentSize = null, $rateType = null) { - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->rateCardFeature = $rateCardFeature; - $this->adjustmentType = $adjustmentType; - $this->adjustmentSize = $adjustmentSize; - $this->rateType = $rateType; - } - - } -} - -if (!class_exists("RateCardCustomizationError", false)) { - /** - * An error having to do with {@link RateCardCustomization}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomizationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardCustomizationError"; - - /** - * @access public - * @var tnsRateCardCustomizationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardCustomizationPage", false)) { - /** - * Captures a page of {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomizationPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardCustomizationPage"; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("RateCardFeature", false)) { - /** - * The feature of a {@link RateCardCustomization} - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardFeature"; - - /** - * @access public - * @var string - */ - public $RateCardFeatureType; - private $_parameterMap = array( - "RateCardFeature.Type" => "RateCardFeatureType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UnknownRateCardFeature", false)) { - /** - * The {@link RateCardFeature} returned if the actual feature is not exposed by - * the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UnknownRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UnknownRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserDomainRateCardFeature", false)) { - /** - * A rate customization applied to user domain targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserDomainRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardCustomizationAdjustmentType", false)) { - /** - * Describes how to apply the adjustment to the base rate. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomizationAdjustmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardCustomizationAdjustmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardCustomizationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomizationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardCustomizationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardCustomizationStatus", false)) { - /** - * The status of {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomizationStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardCustomizationStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateType", false)) { - /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateRateCardCustomization", false)) { - /** - * Creates a new {@link RateCardCustomization} object. - * - * @param rateCardCustomization the {@link RateCardCustomization} to be - * created - * @return the {@link RateCardCustomization} with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rateCardCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomization = null) { - $this->rateCardCustomization = $rateCardCustomization; - } - - } -} - -if (!class_exists("CreateRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateRateCardCustomizations", false)) { - /** - * Creates a list of new {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be created - * @return the rate card customizations with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCardCustomizations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rateCardCustomizations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizations = null) { - $this->rateCardCustomizations = $rateCardCustomizations; - } - - } -} - -if (!class_exists("CreateRateCardCustomizationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCardCustomizationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardCustomization", false)) { - /** - * Returns the {@link RateCardCustomization} object uniquely identified by the - * given ID. - * - * @param rateCardCustomizationId the ID of the rate card customization, which - * must already exist. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $rateCardCustomizationId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationId = null) { - $this->rateCardCustomizationId = $rateCardCustomizationId; - } - - } -} - -if (!class_exists("GetRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardCustomizationsByStatement", false)) { - /** - * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} - * objects that satisfy the given {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code rateCardId}{@link RateCardCustomization#rateCardId}
{@code rateCardCustomizationGroupId}{@link RateCardCustomization#rateCardCustomizationGroupId}
{@code id}{@link RateCardCustomization#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the rate card customizations that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCardCustomizationsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetRateCardCustomizationsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCardCustomizationsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomizationPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformRateCardCustomizationAction", false)) { - /** - * Performs actions on {@link RateCardCustomization} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardCustomizationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformRateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomizationAction - */ - public $rateCardCustomizationAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizationAction = null, $filterStatement = null) { - $this->rateCardCustomizationAction = $rateCardCustomizationAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformRateCardCustomizationActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformRateCardCustomizationActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCardCustomization", false)) { - /** - * Updates the specified {@link RateCardCustomization} object. - * - * @param rateCardCustomization the rate card customization to be updated - * @return the updated rate card customization - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCardCustomization { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rateCardCustomization; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomization = null) { - $this->rateCardCustomization = $rateCardCustomization; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCardCustomizationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizations", false)) { - /** - * Updates the specified {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be updated - * @return the updated rate card customizations - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCardCustomizations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rateCardCustomizations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardCustomizations = null) { - $this->rateCardCustomizations = $rateCardCustomizations; - } - - } -} - -if (!class_exists("UpdateRateCardCustomizationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCardCustomizationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardCustomization[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateRateCardCustomizations", false)) { - /** - * The action used to activate {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateRateCardCustomizations extends RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateRateCardCustomizations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - parent::__construct(); - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("AdUnitRateCardFeature", false)) { - /** - * A rate customization applied to ad unit targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BandwidthRateCardFeature", false)) { - /** - * A rate customization applied to bandwidth targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BandwidthRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BandwidthRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("BrowserRateCardFeature", false)) { - /** - * A rate customization applied to browser targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("BrowserLanguageRateCardFeature", false)) { - /** - * A rate customization applied to browser language targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BrowserLanguageRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserLanguageRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("CustomTargetingRateCardFeature", false)) { - /** - * A rate customization applied to custom criteria targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingRateCardFeature"; - - /** - * @access public - * @var integer - */ - public $customTargetingKeyId; - - /** - * @access public - * @var integer - */ - public $customTargetingValueId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customTargetingKeyId = null, $customTargetingValueId = null, $RateCardFeatureType = null) { - parent::__construct(); - $this->customTargetingKeyId = $customTargetingKeyId; - $this->customTargetingValueId = $customTargetingValueId; - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateRateCardCustomizations", false)) { - /** - * The action used to deactivate {@link RateCardCustomization} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateRateCardCustomizations extends RateCardCustomizationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateRateCardCustomizations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardCustomizationActionType = null) { - parent::__construct(); - $this->RateCardCustomizationActionType = $RateCardCustomizationActionType; - } - - } -} - -if (!class_exists("FrequencyCapRateCardFeature", false)) { - /** - * A rate customization applied to frequency caps. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FrequencyCapRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("GeographyRateCardFeature", false)) { - /** - * A rate customization applied to geography targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GeographyRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeographyRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("OperatingSystemRateCardFeature", false)) { - /** - * A rate customization applied to operating system targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystemRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("PlacementRateCardFeature", false)) { - /** - * A rate customization applied to placement targeting. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PlacementRateCardFeature extends RateCardFeature { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PlacementRateCardFeature"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardFeatureType = null) { - parent::__construct(); - $this->RateCardFeatureType = $RateCardFeatureType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardCustomizationService", false)) { - /** - * RateCardCustomizationService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardCustomizationService extends DfpSoapClient { - - const SERVICE_NAME = "RateCardCustomizationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/RateCardCustomizationService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/RateCardCustomizationService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateRateCardCustomizations" => "ActivateRateCardCustomizations", - "AdUnitRateCardFeature" => "AdUnitRateCardFeature", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BandwidthRateCardFeature" => "BandwidthRateCardFeature", - "BooleanValue" => "BooleanValue", - "BrowserRateCardFeature" => "BrowserRateCardFeature", - "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateRateCardCustomizations" => "DeactivateRateCardCustomizations", - "FeatureError" => "FeatureError", - "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", - "GeographyRateCardFeature" => "GeographyRateCardFeature", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "OperatingSystemRateCardFeature" => "OperatingSystemRateCardFeature", - "PermissionError" => "PermissionError", - "PlacementRateCardFeature" => "PlacementRateCardFeature", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RateCardCustomizationAction" => "RateCardCustomizationAction", - "RateCardCustomization" => "RateCardCustomization", - "RateCardCustomizationError" => "RateCardCustomizationError", - "RateCardCustomizationPage" => "RateCardCustomizationPage", - "RateCardFeature" => "RateCardFeature", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UnknownRateCardFeature" => "UnknownRateCardFeature", - "UpdateResult" => "UpdateResult", - "UserDomainRateCardFeature" => "UserDomainRateCardFeature", - "Value" => "Value", - "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateCardCustomizationError.Reason" => "RateCardCustomizationErrorReason", - "RateCardCustomizationStatus" => "RateCardCustomizationStatus", - "RateType" => "RateType", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "createRateCardCustomization" => "CreateRateCardCustomization", - "createRateCardCustomizationResponse" => "CreateRateCardCustomizationResponse", - "createRateCardCustomizations" => "CreateRateCardCustomizations", - "createRateCardCustomizationsResponse" => "CreateRateCardCustomizationsResponse", - "getRateCardCustomization" => "GetRateCardCustomization", - "getRateCardCustomizationResponse" => "GetRateCardCustomizationResponse", - "getRateCardCustomizationsByStatement" => "GetRateCardCustomizationsByStatement", - "getRateCardCustomizationsByStatementResponse" => "GetRateCardCustomizationsByStatementResponse", - "performRateCardCustomizationAction" => "PerformRateCardCustomizationAction", - "performRateCardCustomizationActionResponse" => "PerformRateCardCustomizationActionResponse", - "updateRateCardCustomization" => "UpdateRateCardCustomization", - "updateRateCardCustomizationResponse" => "UpdateRateCardCustomizationResponse", - "updateRateCardCustomizations" => "UpdateRateCardCustomizations", - "updateRateCardCustomizationsResponse" => "UpdateRateCardCustomizationsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link RateCardCustomization} object. - * - * @param rateCardCustomization the {@link RateCardCustomization} to be - * created - * @return the {@link RateCardCustomization} with its ID filled in - */ - public function createRateCardCustomization($rateCardCustomization) { - $args = new CreateRateCardCustomization($rateCardCustomization); - $result = $this->__soapCall("createRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Creates a list of new {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be created - * @return the rate card customizations with their IDs filled in - */ - public function createRateCardCustomizations($rateCardCustomizations) { - $args = new CreateRateCardCustomizations($rateCardCustomizations); - $result = $this->__soapCall("createRateCardCustomizations", array($args)); - return $result->rval; - } - /** - * Returns the {@link RateCardCustomization} object uniquely identified by the - * given ID. - * - * @param rateCardCustomizationId the ID of the rate card customization, which - * must already exist. - */ - public function getRateCardCustomization($rateCardCustomizationId) { - $args = new GetRateCardCustomization($rateCardCustomizationId); - $result = $this->__soapCall("getRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} - * objects that satisfy the given {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL PropertyObject Property
{@code rateCardId}{@link RateCardCustomization#rateCardId}
{@code rateCardCustomizationGroupId}{@link RateCardCustomization#rateCardCustomizationGroupId}
{@code id}{@link RateCardCustomization#id}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the rate card customizations that match the given filter - */ - public function getRateCardCustomizationsByStatement($filterStatement) { - $args = new GetRateCardCustomizationsByStatement($filterStatement); - $result = $this->__soapCall("getRateCardCustomizationsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link RateCardCustomization} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardCustomizationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate card customizations. - * @return the result of the action performed - */ - public function performRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement) { - $args = new PerformRateCardCustomizationAction($rateCardCustomizationAction, $filterStatement); - $result = $this->__soapCall("performRateCardCustomizationAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCardCustomization} object. - * - * @param rateCardCustomization the rate card customization to be updated - * @return the updated rate card customization - */ - public function updateRateCardCustomization($rateCardCustomization) { - $args = new UpdateRateCardCustomization($rateCardCustomization); - $result = $this->__soapCall("updateRateCardCustomization", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCardCustomization} objects. - * - * @param rateCardCustomizations the rate card customizations to be updated - * @return the updated rate card customizations - */ - public function updateRateCardCustomizations($rateCardCustomizations) { - $args = new UpdateRateCardCustomizations($rateCardCustomizations); - $result = $this->__soapCall("updateRateCardCustomizations", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/RateCardService.php b/src/Google/Api/Ads/Dfp/v201311/RateCardService.php deleted file mode 100755 index 12febb419..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/RateCardService.php +++ /dev/null @@ -1,4243 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseRateError", false)) { - /** - * An error having to do with {@link BaseRate}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseRateError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError"; - - /** - * @access public - * @var tnsBaseRateErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProductError", false)) { - /** - * A catch-all error that lists all generic errors associated with Product. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductError"; - - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCardAction", false)) { - /** - * Represents the actions that can be performed on {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardAction"; - - /** - * @access public - * @var string - */ - public $RateCardActionType; - private $_parameterMap = array( - "RateCardAction.Type" => "RateCardActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardActionType = null) { - $this->RateCardActionType = $RateCardActionType; - } - - } -} - -if (!class_exists("RateCardActionError", false)) { - /** - * An error lists all error reasons associated with performing action - * on {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardActionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardActionError"; - - /** - * @access public - * @var tnsRateCardActionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RateCard", false)) { - /** - * Defines a collection of rules, including base rates for product templates and products, premiums, - * proposal line item level adjustments and proposal level adjustments. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCard"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var tnsRateCardStatus - */ - public $status; - - /** - * @access public - * @var integer[] - */ - public $appliedTeamIds; - - /** - * @access public - * @var DateTime - */ - public $lastModifiedDateTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $currencyCode = null, $status = null, $appliedTeamIds = null, $lastModifiedDateTime = null) { - $this->id = $id; - $this->name = $name; - $this->currencyCode = $currencyCode; - $this->status = $status; - $this->appliedTeamIds = $appliedTeamIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; - } - - } -} - -if (!class_exists("RateCardPage", false)) { - /** - * Captures a page of {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardPage"; - - /** - * @access public - * @var RateCard[] - */ - public $results; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; - } - - } -} - -if (!class_exists("RequiredCollectionError", false)) { - /** - * A list of all errors to be used for validating sizes of collections. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; - - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredNumberError", false)) { - /** - * A list of all errors to be used in conjunction with required number - * validators. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; - - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BaseRateErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseRateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomTargetingErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardActionErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardActionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardActionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredCollectionErrorReason", false)) { - /** - * A required collection is missing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredCollectionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredNumberErrorReason", false)) { - /** - * Describes reasons for a number to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredNumberErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RateCardStatus", false)) { - /** - * Describes the status of {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateCardStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StringLengthErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StringLengthErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateRateCard", false)) { - /** - * Creates a new {@link RateCard}. Rate cards must be activated before being - * associated with proposal line items and products. - * - * @param rateCard the rate card to be created - * @return the rate card with corresponding fields set by Google. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rateCard; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCard = null) { - $this->rateCard = $rateCard; - } - - } -} - -if (!class_exists("CreateRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateRateCards", false)) { - /** - * Creates a list of {@link RateCard} objects. Rate cards must be activated - * before being associated with proposal line items and products. - * - * @param rateCards the rate cards to be created - * @return the created rate cards. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCards { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rateCards; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCards = null) { - $this->rateCards = $rateCards; - } - - } -} - -if (!class_exists("CreateRateCardsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateRateCardsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCard", false)) { - /** - * Returns the {@link RateCard} uniquely identified by the given ID. - * - * @param rateCardId the ID of the rate card, which must already exist - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardId = null) { - $this->rateCardId = $rateCardId; - } - - } -} - -if (!class_exists("GetRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetRateCardsByStatement", false)) { - /** - * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link RateCard#id}
{@code name}{@link RateCard#name}
{@code status}{@link RateCard#status}
{@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. - * @return the rate cards that match the filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCardsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetRateCardsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetRateCardsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformRateCardAction", false)) { - /** - * Performs action on {@link RateCard} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate cards. - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformRateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCardAction - */ - public $rateCardAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardAction = null, $filterStatement = null) { - $this->rateCardAction = $rateCardAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformRateCardActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformRateCardActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCard", false)) { - /** - * Updates the specified {@link RateCard}. - * - * @param rateCard the rate card to be updated - * @return the updated rate card - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rateCard; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCard = null) { - $this->rateCard = $rateCard; - } - - } -} - -if (!class_exists("UpdateRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateRateCards", false)) { - /** - * Updates a list of {@link RateCard} objects. - * - * @param rateCards the rate cards to be updated - * @return the updated rate cards - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCards { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rateCards; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCards = null) { - $this->rateCards = $rateCards; - } - - } -} - -if (!class_exists("UpdateRateCardsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateRateCardsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateRateCards", false)) { - /** - * The action used to activate {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateRateCards extends RateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateRateCards"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardActionType = null) { - parent::__construct(); - $this->RateCardActionType = $RateCardActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateRateCards", false)) { - /** - * The action used to deactivate {@link RateCard} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateRateCards extends RateCardAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateRateCards"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($RateCardActionType = null) { - parent::__construct(); - $this->RateCardActionType = $RateCardActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("RateCardService", false)) { - /** - * RateCardService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RateCardService extends DfpSoapClient { - - const SERVICE_NAME = "RateCardService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/RateCardService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/RateCardService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateRateCards" => "ActivateRateCards", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseRateError" => "BaseRateError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomTargetingError" => "CustomTargetingError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateRateCards" => "DeactivateRateCards", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "ProductError" => "ProductError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "RateCardAction" => "RateCardAction", - "RateCardActionError" => "RateCardActionError", - "RateCard" => "RateCard", - "RateCardPage" => "RateCardPage", - "RequiredCollectionError" => "RequiredCollectionError", - "RequiredError" => "RequiredError", - "RequiredNumberError" => "RequiredNumberError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "ProductError.Reason" => "ProductErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "RateCardActionError.Reason" => "RateCardActionErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "RateCardStatus" => "RateCardStatus", - "StringLengthError.Reason" => "StringLengthErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "createRateCard" => "CreateRateCard", - "createRateCardResponse" => "CreateRateCardResponse", - "createRateCards" => "CreateRateCards", - "createRateCardsResponse" => "CreateRateCardsResponse", - "getRateCard" => "GetRateCard", - "getRateCardResponse" => "GetRateCardResponse", - "getRateCardsByStatement" => "GetRateCardsByStatement", - "getRateCardsByStatementResponse" => "GetRateCardsByStatementResponse", - "performRateCardAction" => "PerformRateCardAction", - "performRateCardActionResponse" => "PerformRateCardActionResponse", - "updateRateCard" => "UpdateRateCard", - "updateRateCardResponse" => "UpdateRateCardResponse", - "updateRateCards" => "UpdateRateCards", - "updateRateCardsResponse" => "UpdateRateCardsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link RateCard}. Rate cards must be activated before being - * associated with proposal line items and products. - * - * @param rateCard the rate card to be created - * @return the rate card with corresponding fields set by Google. - */ - public function createRateCard($rateCard) { - $args = new CreateRateCard($rateCard); - $result = $this->__soapCall("createRateCard", array($args)); - return $result->rval; - } - /** - * Creates a list of {@link RateCard} objects. Rate cards must be activated - * before being associated with proposal line items and products. - * - * @param rateCards the rate cards to be created - * @return the created rate cards. - */ - public function createRateCards($rateCards) { - $args = new CreateRateCards($rateCards); - $result = $this->__soapCall("createRateCards", array($args)); - return $result->rval; - } - /** - * Returns the {@link RateCard} uniquely identified by the given ID. - * - * @param rateCardId the ID of the rate card, which must already exist - */ - public function getRateCard($rateCardId) { - $args = new GetRateCard($rateCardId); - $result = $this->__soapCall("getRateCard", array($args)); - return $result->rval; - } - /** - * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link RateCard#id}
{@code name}{@link RateCard#name}
{@code status}{@link RateCard#status}
{@code lastModifiedDateTime}{@link RateCard#lastModifiedDateTime}
- * - * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. - * @return the rate cards that match the filter - */ - public function getRateCardsByStatement($filterStatement) { - $args = new GetRateCardsByStatement($filterStatement); - $result = $this->__soapCall("getRateCardsByStatement", array($args)); - return $result->rval; - } - /** - * Performs action on {@link RateCard} objects that satisfy the - * given {@link Statement#query}. - * - * @param rateCardAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of rate cards. - * @return the result of the action performed - */ - public function performRateCardAction($rateCardAction, $filterStatement) { - $args = new PerformRateCardAction($rateCardAction, $filterStatement); - $result = $this->__soapCall("performRateCardAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link RateCard}. - * - * @param rateCard the rate card to be updated - * @return the updated rate card - */ - public function updateRateCard($rateCard) { - $args = new UpdateRateCard($rateCard); - $result = $this->__soapCall("updateRateCard", array($args)); - return $result->rval; - } - /** - * Updates a list of {@link RateCard} objects. - * - * @param rateCards the rate cards to be updated - * @return the updated rate cards - */ - public function updateRateCards($rateCards) { - $args = new UpdateRateCards($rateCards); - $result = $this->__soapCall("updateRateCards", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php deleted file mode 100755 index 9c2ff002c..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ReconciliationOrderReportService.php +++ /dev/null @@ -1,3230 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ReconciliationOrderReportAction", false)) { - /** - * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationOrderReportAction"; - - /** - * @access public - * @var string - */ - public $ReconciliationOrderReportActionType; - private $_parameterMap = array( - "ReconciliationOrderReportAction.Type" => "ReconciliationOrderReportActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ReconciliationOrderReportActionType = null) { - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; - } - - } -} - -if (!class_exists("ReconciliationOrderReport", false)) { - /** - * A {@link ReconciliationOrderReport} represents one order - * in the reconciliation report. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationOrderReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationOrderReport"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $reconciliationReportId; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var tnsReconciliationOrderReportStatus - */ - public $status; - - /** - * @access public - * @var DateTime - */ - public $submissionDateTime; - - /** - * @access public - * @var integer - */ - public $submitterId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $reconciliationReportId = null, $orderId = null, $status = null, $submissionDateTime = null, $submitterId = null) { - $this->id = $id; - $this->reconciliationReportId = $reconciliationReportId; - $this->orderId = $orderId; - $this->status = $status; - $this->submissionDateTime = $submissionDateTime; - $this->submitterId = $submitterId; - } - - } -} - -if (!class_exists("ReconciliationOrderReportPage", false)) { - /** - * Captures a page of {@link ReconciliationOrderReport} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationOrderReportPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationOrderReportPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ReconciliationOrderReport[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SubmitReconciliationOrderReports", false)) { - /** - * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SubmitReconciliationOrderReports"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ReconciliationOrderReportActionType = null) { - parent::__construct(); - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; - } - - } -} - -if (!class_exists("ReconciliationError", false)) { - /** - * Lists all errors associated with reconciliation. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationError"; - - /** - * @access public - * @var tnsReconciliationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RevertReconciliationOrderReports", false)) { - /** - * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RevertReconciliationOrderReports"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ReconciliationOrderReportActionType = null) { - parent::__construct(); - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationOrderReportStatus", false)) { - /** - * The status of the reconciliation order report. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationOrderReportStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationOrderReportStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReconciliationOrderReport", false)) { - /** - * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. - * - * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, - * which must already exist. - * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationOrderReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reconciliationOrderReportId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationOrderReportId = null) { - $this->reconciliationOrderReportId = $reconciliationOrderReportId; - } - - } -} - -if (!class_exists("GetReconciliationOrderReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationOrderReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationOrderReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReconciliationOrderReportsByStatement", false)) { - /** - * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects - * that satisfy the given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
{@code id}{@link ReconciliationOrderReport#id}
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code status}{@link ReconciliationOrderReport#status}
{@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
{@code submitterId}{@link ReconciliationOrderReport#submitterId}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of reconciliation order reports. - * @return the reconciliation order reports that match the given filter. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationOrderReportsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetReconciliationOrderReportsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationOrderReportsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationOrderReportPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformReconciliationOrderReportAction", false)) { - /** - * Performs actions on the {@link ReconciliationOrderReport} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
- * The following statement patterns are supported: - *
    - *
  • reconciliationReportId = :reconciliationReportId AND orderId = :orderId
  • - *
  • reconciliationReportId = :reconciliationReportId AND proposalId = :proposalId
  • - *
  • reconciliationReportId = :reconciliationReportId - * AND (orderId IN (...) OR proposalId IN (...))
  • - *
- * The IN clause could be expanded to multiple OR expressions like - * (orderId = :orderId OR orderId = :orderId OR ...) - * Only orders to which the API user has access will be included. - * - * @param reconciliationOrderReportAction the action to perform. - * @param filterStatement a Publisher Query Language statement used to filter a set of orders and - * one reconciliation report. - * @return the result of the action performed. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformReconciliationOrderReportAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationOrderReportAction - */ - public $reconciliationOrderReportAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationOrderReportAction = null, $filterStatement = null) { - $this->reconciliationOrderReportAction = $reconciliationOrderReportAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformReconciliationOrderReportActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformReconciliationOrderReportActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReconciliationOrderReportService", false)) { - /** - * ReconciliationOrderReportService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationOrderReportService extends DfpSoapClient { - - const SERVICE_NAME = "ReconciliationOrderReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ReconciliationOrderReportService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ReconciliationOrderReportService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ReconciliationOrderReportAction" => "ReconciliationOrderReportAction", - "ReconciliationOrderReport" => "ReconciliationOrderReport", - "ReconciliationOrderReportPage" => "ReconciliationOrderReportPage", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "SubmitReconciliationOrderReports" => "SubmitReconciliationOrderReports", - "ReconciliationError" => "ReconciliationError", - "RequiredError" => "RequiredError", - "RevertReconciliationOrderReports" => "RevertReconciliationOrderReports", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UpdateResult" => "UpdateResult", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "ReconciliationError.Reason" => "ReconciliationErrorReason", - "ReconciliationOrderReportStatus" => "ReconciliationOrderReportStatus", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReconciliationOrderReport" => "GetReconciliationOrderReport", - "getReconciliationOrderReportResponse" => "GetReconciliationOrderReportResponse", - "getReconciliationOrderReportsByStatement" => "GetReconciliationOrderReportsByStatement", - "getReconciliationOrderReportsByStatementResponse" => "GetReconciliationOrderReportsByStatementResponse", - "performReconciliationOrderReportAction" => "PerformReconciliationOrderReportAction", - "performReconciliationOrderReportActionResponse" => "PerformReconciliationOrderReportActionResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. - * - * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, - * which must already exist. - * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. - */ - public function getReconciliationOrderReport($reconciliationOrderReportId) { - $args = new GetReconciliationOrderReport($reconciliationOrderReportId); - $result = $this->__soapCall("getReconciliationOrderReport", array($args)); - return $result->rval; - } - /** - * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects - * that satisfy the given {@link Statement#query}. - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
{@code id}{@link ReconciliationOrderReport#id}
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code status}{@link ReconciliationOrderReport#status}
{@code submissionDateTime}{@link ReconciliationOrderReport#submissionDateTime}
{@code submitterId}{@link ReconciliationOrderReport#submitterId}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of reconciliation order reports. - * @return the reconciliation order reports that match the given filter. - */ - public function getReconciliationOrderReportsByStatement($filterStatement) { - $args = new GetReconciliationOrderReportsByStatement($filterStatement); - $result = $this->__soapCall("getReconciliationOrderReportsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on the {@link ReconciliationOrderReport} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code orderId}{@link ReconciliationOrderReport#orderId}
{@code proposalId}{@link ReconciliationOrderReport#proposalId}
{@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
- * The following statement patterns are supported: - *
    - *
  • reconciliationReportId = :reconciliationReportId AND orderId = :orderId
  • - *
  • reconciliationReportId = :reconciliationReportId AND proposalId = :proposalId
  • - *
  • reconciliationReportId = :reconciliationReportId - * AND (orderId IN (...) OR proposalId IN (...))
  • - *
- * The IN clause could be expanded to multiple OR expressions like - * (orderId = :orderId OR orderId = :orderId OR ...) - * Only orders to which the API user has access will be included. - * - * @param reconciliationOrderReportAction the action to perform. - * @param filterStatement a Publisher Query Language statement used to filter a set of orders and - * one reconciliation report. - * @return the result of the action performed. - */ - public function performReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement) { - $args = new PerformReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement); - $result = $this->__soapCall("performReconciliationOrderReportAction", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php deleted file mode 100755 index 0431372f0..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportRowService.php +++ /dev/null @@ -1,3275 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Money", false)) { - /** - * Represents a money amount. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Money { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Money"; - - /** - * @access public - * @var string - */ - public $currencyCode; - - /** - * @access public - * @var integer - */ - public $microAmount; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationError", false)) { - /** - * Lists all errors associated with reconciliation. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationError"; - - /** - * @access public - * @var tnsReconciliationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationImportError", false)) { - /** - * The API errors for reconciliation CSV import. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationImportError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationImportError"; - - /** - * @access public - * @var tnsReconciliationImportErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationReportRow", false)) { - /** - * A {@code ReconciliationReportRow} represents each row in the reconciliation report. - * Each row is identified by its {@link #reconciliationReportId}, {@link #lineItemId}, - * {@link #creativeId}, and {@link #proposalLineItemId}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationReportRow { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationReportRow"; - - /** - * @access public - * @var integer - */ - public $reconciliationReportId; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var integer - */ - public $advertiserId; - - /** - * @access public - * @var tnsBillFrom - */ - public $billFrom; - - /** - * @access public - * @var tnsCostType - */ - public $lineItemCostType; - - /** - * @access public - * @var Money - */ - public $lineItemCostPerUnit; - - /** - * @access public - * @var integer - */ - public $lineItemContractedUnitsBought; - - /** - * @access public - * @var integer - */ - public $dfpClicks; - - /** - * @access public - * @var integer - */ - public $dfpImpressions; - - /** - * @access public - * @var integer - */ - public $dfpLineItemDays; - - /** - * @access public - * @var integer - */ - public $thirdPartyClicks; - - /** - * @access public - * @var integer - */ - public $thirdPartyImpressions; - - /** - * @access public - * @var integer - */ - public $thirdPartyLineItemDays; - - /** - * @access public - * @var integer - */ - public $manualClicks; - - /** - * @access public - * @var integer - */ - public $manualImpressions; - - /** - * @access public - * @var integer - */ - public $manualLineItemDays; - - /** - * @access public - * @var integer - */ - public $reconciledClicks; - - /** - * @access public - * @var integer - */ - public $reconciledImpressions; - - /** - * @access public - * @var integer - */ - public $reconciledLineItemDays; - - /** - * @access public - * @var Money - */ - public $contractedRevenue; - - /** - * @access public - * @var Money - */ - public $dfpRevenue; - - /** - * @access public - * @var Money - */ - public $thirdPartyRevenue; - - /** - * @access public - * @var Money - */ - public $manualRevenue; - - /** - * @access public - * @var Money - */ - public $reconciledRevenue; - - /** - * @access public - * @var string - */ - public $comments; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReportId = null, $lineItemId = null, $creativeId = null, $orderId = null, $advertiserId = null, $billFrom = null, $lineItemCostType = null, $lineItemCostPerUnit = null, $lineItemContractedUnitsBought = null, $dfpClicks = null, $dfpImpressions = null, $dfpLineItemDays = null, $thirdPartyClicks = null, $thirdPartyImpressions = null, $thirdPartyLineItemDays = null, $manualClicks = null, $manualImpressions = null, $manualLineItemDays = null, $reconciledClicks = null, $reconciledImpressions = null, $reconciledLineItemDays = null, $contractedRevenue = null, $dfpRevenue = null, $thirdPartyRevenue = null, $manualRevenue = null, $reconciledRevenue = null, $comments = null) { - $this->reconciliationReportId = $reconciliationReportId; - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - $this->orderId = $orderId; - $this->advertiserId = $advertiserId; - $this->billFrom = $billFrom; - $this->lineItemCostType = $lineItemCostType; - $this->lineItemCostPerUnit = $lineItemCostPerUnit; - $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; - $this->dfpClicks = $dfpClicks; - $this->dfpImpressions = $dfpImpressions; - $this->dfpLineItemDays = $dfpLineItemDays; - $this->thirdPartyClicks = $thirdPartyClicks; - $this->thirdPartyImpressions = $thirdPartyImpressions; - $this->thirdPartyLineItemDays = $thirdPartyLineItemDays; - $this->manualClicks = $manualClicks; - $this->manualImpressions = $manualImpressions; - $this->manualLineItemDays = $manualLineItemDays; - $this->reconciledClicks = $reconciledClicks; - $this->reconciledImpressions = $reconciledImpressions; - $this->reconciledLineItemDays = $reconciledLineItemDays; - $this->contractedRevenue = $contractedRevenue; - $this->dfpRevenue = $dfpRevenue; - $this->thirdPartyRevenue = $thirdPartyRevenue; - $this->manualRevenue = $manualRevenue; - $this->reconciledRevenue = $reconciledRevenue; - $this->comments = $comments; - } - - } -} - -if (!class_exists("ReconciliationReportRowPage", false)) { - /** - * Captures a page of {@link ReconciliationReportRow} objects - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationReportRowPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationReportRowPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ReconciliationReportRow[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("BillFrom", false)) { - /** - * Values for which to bill from. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BillFrom { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BillFrom"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CostType", false)) { - /** - * Describes the {@link LineItem} actions that are billable. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CostType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CostType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationImportErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationImportErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationImportError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReconciliationReportRowsByStatement", false)) { - /** - * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that - * satisfy the given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
{@code advertiserId}{@link ReconciliationReportRow#advertiserId}
{@code orderId}{@link ReconciliationReportRow#orderId}
{@code lineItemId}{@link ReconciliationReportRow#lineItemId}
{@code creativeId}{@link ReconciliationReportRow#creativeId}
{@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
{@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
{@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
{@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
{@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
{@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
{@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
{@code manualClicks}{@link ReconciliationReportRow#manualClicks}
{@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
{@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
{@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
{@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
{@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation report rows - * @return the reconciliation report rows that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationReportRowsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetReconciliationReportRowsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationReportRowsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportRowPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateReconciliationReportRows", false)) { - /** - * Updates a list of {@link ReconciliationReportRow} which belong to same - * {@link ReconciliationReport}. - * - * @param reconciliationReportRows a list of reconciliation report rows to update - * @return the updated reconciliation report rows - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateReconciliationReportRows { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportRow[] - */ - public $reconciliationReportRows; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReportRows = null) { - $this->reconciliationReportRows = $reconciliationReportRows; - } - - } -} - -if (!class_exists("UpdateReconciliationReportRowsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateReconciliationReportRowsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportRow[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReconciliationReportRowService", false)) { - /** - * ReconciliationReportRowService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationReportRowService extends DfpSoapClient { - - const SERVICE_NAME = "ReconciliationReportRowService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ReconciliationReportRowService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ReconciliationReportRowService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "Money" => "Money", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "ReconciliationError" => "ReconciliationError", - "ReconciliationImportError" => "ReconciliationImportError", - "ReconciliationReportRow" => "ReconciliationReportRow", - "ReconciliationReportRowPage" => "ReconciliationReportRowPage", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BillFrom" => "BillFrom", - "CommonError.Reason" => "CommonErrorReason", - "CostType" => "CostType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "ReconciliationError.Reason" => "ReconciliationErrorReason", - "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReconciliationReportRowsByStatement" => "GetReconciliationReportRowsByStatement", - "getReconciliationReportRowsByStatementResponse" => "GetReconciliationReportRowsByStatementResponse", - "updateReconciliationReportRows" => "UpdateReconciliationReportRows", - "updateReconciliationReportRowsResponse" => "UpdateReconciliationReportRowsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Gets a {@link ReconciliationReportRowPage} of {@link ReconciliationReportRow} objects that - * satisfy the given {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code reconciliationReportId}{@link ReconciliationReportRow#reconciliationReportId}
{@code advertiserId}{@link ReconciliationReportRow#advertiserId}
{@code orderId}{@link ReconciliationReportRow#orderId}
{@code lineItemId}{@link ReconciliationReportRow#lineItemId}
{@code creativeId}{@link ReconciliationReportRow#creativeId}
{@code lineItemCostType}{@link ReconciliationReportRow#lineItemCostType}
{@code dfpClicks}{@link ReconciliationReportRow#dfpClicks}
{@code dfpImpressions}{@link ReconciliationReportRow#dfpImpressions}
{@code dfpLineItemDays}{@link ReconciliationReportRow#dfpLineItemDays}
{@code thirdPartyClicks}{@link ReconciliationReportRow#thirdPartyClicks}
{@code thirdPartyImpressions}{@link ReconciliationReportRow#thirdPartyImpressions}
{@code thirdPartyLineItemDays}{@link ReconciliationReportRow#thirdPartyLineItemDays}
{@code manualClicks}{@link ReconciliationReportRow#manualClicks}
{@code manualImpressions}{@link ReconciliationReportRow#manualImpressions}
{@code manualLineItemDays}{@link ReconciliationReportRow#manualLineItemDays}
{@code reconciledClicks}{@link ReconciliationReportRow#reconciledClicks}
{@code reconciledImpressions}{@link ReconciliationReportRow#reconciledImpressions}
{@code reconciledLineItemDays}{@link ReconciliationReportRow#reconciledLineItemDays}
- * - * The {@code reconciliationReportId} field is required and can only be combined with an - * {@code AND} to other conditions. Furthermore, the results may only belong to - * one {@link ReconciliationReport}. - * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation report rows - * @return the reconciliation report rows that match the given filter - */ - public function getReconciliationReportRowsByStatement($filterStatement) { - $args = new GetReconciliationReportRowsByStatement($filterStatement); - $result = $this->__soapCall("getReconciliationReportRowsByStatement", array($args)); - return $result->rval; - } - /** - * Updates a list of {@link ReconciliationReportRow} which belong to same - * {@link ReconciliationReport}. - * - * @param reconciliationReportRows a list of reconciliation report rows to update - * @return the updated reconciliation report rows - */ - public function updateReconciliationReportRows($reconciliationReportRows) { - $args = new UpdateReconciliationReportRows($reconciliationReportRows); - $result = $this->__soapCall("updateReconciliationReportRows", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php deleted file mode 100755 index bdd712a5d..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ReconciliationReportService.php +++ /dev/null @@ -1,3094 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationError", false)) { - /** - * Lists all errors associated with reconciliation. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationError"; - - /** - * @access public - * @var tnsReconciliationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationImportError", false)) { - /** - * The API errors for reconciliation CSV import. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationImportError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationImportError"; - - /** - * @access public - * @var tnsReconciliationImportErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReconciliationReport", false)) { - /** - * A {@code ReconciliationReport} represents a report that can be reconciled. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationReport"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var tnsReconciliationReportStatus - */ - public $status; - - /** - * @access public - * @var Date - */ - public $startDate; - - /** - * @access public - * @var string - */ - public $notes; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $status = null, $startDate = null, $notes = null) { - $this->id = $id; - $this->status = $status; - $this->startDate = $startDate; - $this->notes = $notes; - } - - } -} - -if (!class_exists("ReconciliationReportPage", false)) { - /** - * Captures a page of {@link ReconciliationReport} objects - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationReportPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationReportPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RangeErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RangeErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationImportErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationImportErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationImportError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReconciliationReportStatus", false)) { - /** - * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationReportStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReconciliationReportStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReconciliationReport", false)) { - /** - * Returns the {@link ReconciliationReport} object uniquely identified by given ID. - * - * @param reconciliationReportId the ID of the reconciliation report, which must already exist - * @return the {@code ReconciliationReport} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reconciliationReportId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReportId = null) { - $this->reconciliationReportId = $reconciliationReportId; - } - - } -} - -if (!class_exists("GetReconciliationReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReconciliationReportsByStatement", false)) { - /** - * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy - * the given {@link Statement#query}. The following fields are supported for filtering. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ReconciliationReport#id}
{@code status}{@link ReconciliationReport#status}
{@code startDate}{@link ReconciliationReport#startDate}
- * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation reports - * @return the reconciliation reports that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationReportsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetReconciliationReportsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReconciliationReportsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReportPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateReconciliationReport", false)) { - /** - * Updates the specified {@link ReconciliationReport}. - * - * @param reconciliationReport the reconciliation report to be updated - * @return the updated reconciliation report - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateReconciliationReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport - */ - public $reconciliationReport; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReport = null) { - $this->reconciliationReport = $reconciliationReport; - } - - } -} - -if (!class_exists("UpdateReconciliationReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateReconciliationReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateReconciliationReports", false)) { - /** - * Updates the specified {@link ReconciliationReport} objects. - * - * @param reconciliationReports the reconciliation reports to update - * @return the updated reconciliation reports - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateReconciliationReports { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $reconciliationReports; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReports = null) { - $this->reconciliationReports = $reconciliationReports; - } - - } -} - -if (!class_exists("UpdateReconciliationReportsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateReconciliationReportsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReconciliationReportService", false)) { - /** - * ReconciliationReportService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReconciliationReportService extends DfpSoapClient { - - const SERVICE_NAME = "ReconciliationReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ReconciliationReportService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ReconciliationReportService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RangeError" => "RangeError", - "ReconciliationError" => "ReconciliationError", - "ReconciliationImportError" => "ReconciliationImportError", - "ReconciliationReport" => "ReconciliationReport", - "ReconciliationReportPage" => "ReconciliationReportPage", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", - "ReconciliationError.Reason" => "ReconciliationErrorReason", - "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", - "ReconciliationReportStatus" => "ReconciliationReportStatus", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReconciliationReport" => "GetReconciliationReport", - "getReconciliationReportResponse" => "GetReconciliationReportResponse", - "getReconciliationReportsByStatement" => "GetReconciliationReportsByStatement", - "getReconciliationReportsByStatementResponse" => "GetReconciliationReportsByStatementResponse", - "updateReconciliationReport" => "UpdateReconciliationReport", - "updateReconciliationReportResponse" => "UpdateReconciliationReportResponse", - "updateReconciliationReports" => "UpdateReconciliationReports", - "updateReconciliationReportsResponse" => "UpdateReconciliationReportsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the {@link ReconciliationReport} object uniquely identified by given ID. - * - * @param reconciliationReportId the ID of the reconciliation report, which must already exist - * @return the {@code ReconciliationReport} uniquely identified by the given ID - */ - public function getReconciliationReport($reconciliationReportId) { - $args = new GetReconciliationReport($reconciliationReportId); - $result = $this->__soapCall("getReconciliationReport", array($args)); - return $result->rval; - } - /** - * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy - * the given {@link Statement#query}. The following fields are supported for filtering. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link ReconciliationReport#id}
{@code status}{@link ReconciliationReport#status}
{@code startDate}{@link ReconciliationReport#startDate}
- * - * @param filterStatement a Publisher Query Language statement used to - * filter a set of reconciliation reports - * @return the reconciliation reports that match the given filter - */ - public function getReconciliationReportsByStatement($filterStatement) { - $args = new GetReconciliationReportsByStatement($filterStatement); - $result = $this->__soapCall("getReconciliationReportsByStatement", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ReconciliationReport}. - * - * @param reconciliationReport the reconciliation report to be updated - * @return the updated reconciliation report - */ - public function updateReconciliationReport($reconciliationReport) { - $args = new UpdateReconciliationReport($reconciliationReport); - $result = $this->__soapCall("updateReconciliationReport", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link ReconciliationReport} objects. - * - * @param reconciliationReports the reconciliation reports to update - * @return the updated reconciliation reports - * @throws ApiException - */ - public function updateReconciliationReports($reconciliationReports) { - $args = new UpdateReconciliationReports($reconciliationReports); - $result = $this->__soapCall("updateReconciliationReports", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/ReportService.php b/src/Google/Api/Ads/Dfp/v201311/ReportService.php deleted file mode 100755 index 1ff354ef3..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/ReportService.php +++ /dev/null @@ -1,3298 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReportDownloadOptions", false)) { - /** - * Represents the options for an API report download request. - * See {@link ReportService#getReportDownloadUrlWithOptions}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportDownloadOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReportDownloadOptions"; - - /** - * @access public - * @var tnsExportFormat - */ - public $exportFormat; - - /** - * @access public - * @var boolean - */ - public $includeReportProperties; - - /** - * @access public - * @var boolean - */ - public $includeTotalsRow; - - /** - * @access public - * @var boolean - */ - public $useGzipCompression; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($exportFormat = null, $includeReportProperties = null, $includeTotalsRow = null, $useGzipCompression = null) { - $this->exportFormat = $exportFormat; - $this->includeReportProperties = $includeReportProperties; - $this->includeTotalsRow = $includeTotalsRow; - $this->useGzipCompression = $useGzipCompression; - } - - } -} - -if (!class_exists("ReportError", false)) { - /** - * An error for an exception that occurred while running the report. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReportError"; - - /** - * @access public - * @var tnsReportErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ReportJob", false)) { - /** - * Represents a report job that will be run to retrieve performance and - * statistics information about ad campaigns, networks, inventory and sales. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportJob { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReportJob"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var ReportQuery - */ - public $reportQuery; - - /** - * @access public - * @var tnsReportJobStatus - */ - public $reportJobStatus; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $reportQuery = null, $reportJobStatus = null) { - $this->id = $id; - $this->reportQuery = $reportQuery; - $this->reportJobStatus = $reportJobStatus; - } - - } -} - -if (!class_exists("ReportQuery", false)) { - /** - * A {@code ReportQuery} object allows you to specify the selection criteria for - * generating a report. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportQuery { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReportQuery"; - - /** - * @access public - * @var tnsDimension[] - */ - public $dimensions; - - /** - * @access public - * @var tnsReportQueryAdUnitView - */ - public $adUnitView; - - /** - * @access public - * @var tnsColumn[] - */ - public $columns; - - /** - * @access public - * @var tnsDimensionAttribute[] - */ - public $dimensionAttributes; - - /** - * @access public - * @var integer[] - */ - public $customFieldIds; - - /** - * @access public - * @var Date - */ - public $startDate; - - /** - * @access public - * @var Date - */ - public $endDate; - - /** - * @access public - * @var tnsDateRangeType - */ - public $dateRangeType; - - /** - * @access public - * @var tnsDimensionFilter[] - */ - public $dimensionFilters; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * @access public - * @var string - */ - public $timeZone; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($dimensions = null, $adUnitView = null, $columns = null, $dimensionAttributes = null, $customFieldIds = null, $startDate = null, $endDate = null, $dateRangeType = null, $dimensionFilters = null, $statement = null, $timeZone = null) { - $this->dimensions = $dimensions; - $this->adUnitView = $adUnitView; - $this->columns = $columns; - $this->dimensionAttributes = $dimensionAttributes; - $this->customFieldIds = $customFieldIds; - $this->startDate = $startDate; - $this->endDate = $endDate; - $this->dateRangeType = $dateRangeType; - $this->dimensionFilters = $dimensionFilters; - $this->statement = $statement; - $this->timeZone = $timeZone; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReportQueryAdUnitView", false)) { - /** - * A view for an ad unit report. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportQueryAdUnitView { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReportQuery.AdUnitView"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Column", false)) { - /** - * {@code Column} provides all the trafficking statistics and revenue - * information available for the chosen {@link Dimension} objects. - *

- * Columns with {@code INVENTORY_LEVEL} should not be used with dimensions - * relating to line items, orders, companies and creatives, - * such as {@link Dimension#LINE_ITEM_NAME}. - * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level - * dynamic allocation enabled on your network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Column { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Column"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DateRangeType", false)) { - /** - * Represents a period of time. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateRangeType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateRangeType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("Dimension", false)) { - /** - * {@code Dimension} provides the break-down and filterable types available for - * running a {@link ReportJob}. Aggregate and percentage columns will be - * calculated based on these groupings. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Dimension { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Dimension"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DimensionAttribute", false)) { - /** - * {@code DimensionAttribute} provides additional fields associated with a - * {@link Dimension}. It can only be selected with its corresponding - * {@link Dimension}. For example, {@link DimensionAttribute#ORDER_PO_NUMBER} - * can only be used if the {@link ReportQuery#dimensions} contains - * {@link Dimension#ORDER_NAME}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DimensionAttribute { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DimensionAttribute"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DimensionFilter", false)) { - /** - * {@code DimensionFilter} filters the data used during report creation. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DimensionFilter { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DimensionFilter"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ExportFormat", false)) { - /** - * The file formats available for creating the report. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ExportFormat { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ExportFormat"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReportErrorReason", false)) { - /** - * Default {@code ReportError} when the reason is not among any already - * defined. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReportError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ReportJobStatus", false)) { - /** - * Represents the status of a {@link ReportJob} running on the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportJobStatus { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReportJobStatus"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetReportDownloadURL", false)) { - /** - * Returns the URL at which the report file can be downloaded. - *

- * The report will be generated as a gzip archive, containing the report file itself. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param exportFormat the {@link ExportFormat} for the report file - * @return the URL for report file download - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReportDownloadURL { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reportJobId; - - /** - * @access public - * @var tnsExportFormat - */ - public $exportFormat; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJobId = null, $exportFormat = null) { - $this->reportJobId = $reportJobId; - $this->exportFormat = $exportFormat; - } - - } -} - -if (!class_exists("GetReportDownloadURLResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReportDownloadURLResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReportDownloadUrlWithOptions", false)) { - /** - * Returns the URL at which the report file can be downloaded, and allows for customization - * of the downloaded report. - *

- * By default, the report will be generated as a gzip archive, containing the report file itself. - * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request - * @return the URL for report file download - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReportDownloadUrlWithOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reportJobId; - - /** - * @access public - * @var ReportDownloadOptions - */ - public $reportDownloadOptions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJobId = null, $reportDownloadOptions = null) { - $this->reportJobId = $reportJobId; - $this->reportDownloadOptions = $reportDownloadOptions; - } - - } -} - -if (!class_exists("GetReportDownloadUrlWithOptionsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReportDownloadUrlWithOptionsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetReportJob", false)) { - /** - * Returns the {@link ReportJob} uniquely identified by the given ID. - * - * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReportJob { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reportJobId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJobId = null) { - $this->reportJobId = $reportJobId; - } - - } -} - -if (!class_exists("GetReportJobResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetReportJobResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReportJob - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("RunReportJob", false)) { - /** - * Initiates the execution of a {@link ReportQuery} on the server. - * - *

The following fields are required: - *

    - *
  • {@link ReportJob#reportQuery}
  • - *
- * - * @param reportJob the report job to run - * @return the report job with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RunReportJob { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReportJob - */ - public $reportJob; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reportJob = null) { - $this->reportJob = $reportJob; - } - - } -} - -if (!class_exists("RunReportJobResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RunReportJobResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReportJob - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ReportService", false)) { - /** - * ReportService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ReportService extends DfpSoapClient { - - const SERVICE_NAME = "ReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ReportService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ReportService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "ReportDownloadOptions" => "ReportDownloadOptions", - "ReportError" => "ReportError", - "ReportJob" => "ReportJob", - "ReportQuery" => "ReportQuery", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "Value" => "Value", - "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "Column" => "Column", - "CommonError.Reason" => "CommonErrorReason", - "DateRangeType" => "DateRangeType", - "Dimension" => "Dimension", - "DimensionAttribute" => "DimensionAttribute", - "DimensionFilter" => "DimensionFilter", - "ExportFormat" => "ExportFormat", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "ReportError.Reason" => "ReportErrorReason", - "ReportJobStatus" => "ReportJobStatus", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "getReportDownloadURL" => "GetReportDownloadURL", - "getReportDownloadURLResponse" => "GetReportDownloadURLResponse", - "getReportDownloadUrlWithOptions" => "GetReportDownloadUrlWithOptions", - "getReportDownloadUrlWithOptionsResponse" => "GetReportDownloadUrlWithOptionsResponse", - "getReportJob" => "GetReportJob", - "getReportJobResponse" => "GetReportJobResponse", - "runReportJob" => "RunReportJob", - "runReportJobResponse" => "RunReportJobResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the URL at which the report file can be downloaded. - *

- * The report will be generated as a gzip archive, containing the report file itself. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param exportFormat the {@link ExportFormat} for the report file - * @return the URL for report file download - */ - public function getReportDownloadURL($reportJobId, $exportFormat) { - $args = new GetReportDownloadURL($reportJobId, $exportFormat); - $result = $this->__soapCall("getReportDownloadURL", array($args)); - return $result->rval; - } - /** - * Returns the URL at which the report file can be downloaded, and allows for customization - * of the downloaded report. - *

- * By default, the report will be generated as a gzip archive, containing the report file itself. - * This can be changed by setting {@link ReportDownloadOptions#useGzipCompression} to false. - * - * @param reportJobId the ID of the {@link ReportJob} - * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request - * @return the URL for report file download - */ - public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions) { - $args = new GetReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); - $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($args)); - return $result->rval; - } - /** - * Returns the {@link ReportJob} uniquely identified by the given ID. - * - * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID - */ - public function getReportJob($reportJobId) { - $args = new GetReportJob($reportJobId); - $result = $this->__soapCall("getReportJob", array($args)); - return $result->rval; - } - /** - * Initiates the execution of a {@link ReportQuery} on the server. - * - *

The following fields are required: - *

    - *
  • {@link ReportJob#reportQuery}
  • - *
- * - * @param reportJob the report job to run - * @return the report job with its ID filled in - */ - public function runReportJob($reportJob) { - $args = new RunReportJob($reportJob); - $result = $this->__soapCall("runReportJob", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php deleted file mode 100755 index 9659dae2e..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/SuggestedAdUnitService.php +++ /dev/null @@ -1,3378 +0,0 @@ -id = $id; - $this->name = $name; - $this->adUnitCode = $adUnitCode; - } - - } -} - -if (!class_exists("ApiError", false)) { - /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("AdUnitSize", false)) { - /** - * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting - * with v201108 this also represents the environment, and companions of a - * particular ad in an ad unit. In most cases, it is a simple size with just a - * width and a height (sometimes representing an aspect ratio). - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitSize { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitSize"; - - /** - * @access public - * @var Size - */ - public $size; - - /** - * @access public - * @var tnsEnvironmentType - */ - public $environmentType; - - /** - * @access public - * @var AdUnitSize[] - */ - public $companions; - - /** - * @access public - * @var string - */ - public $fullDisplayString; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($size = null, $environmentType = null, $companions = null, $fullDisplayString = null) { - $this->size = $size; - $this->environmentType = $environmentType; - $this->companions = $companions; - $this->fullDisplayString = $fullDisplayString; - } - - } -} - -if (!class_exists("LabelEntityAssociationError", false)) { - /** - * Errors specific to creating label entity associations. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelEntityAssociationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError"; - - /** - * @access public - * @var tnsLabelEntityAssociationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Size", false)) { - /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("SuggestedAdUnitAction", false)) { - /** - * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SuggestedAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SuggestedAdUnitAction"; - - /** - * @access public - * @var string - */ - public $SuggestedAdUnitActionType; - private $_parameterMap = array( - "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($SuggestedAdUnitActionType = null) { - $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; - } - - } -} - -if (!class_exists("SuggestedAdUnit", false)) { - /** - * A {@code SuggestedAdUnit} represents a suggestion for a new ad unit, based on an ad tag that has - * been served at least ten times in the past week, but which does not correspond to a defined ad - * unit. This type is read-only. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SuggestedAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SuggestedAdUnit"; - - /** - * @access public - * @var string - */ - public $id; - - /** - * @access public - * @var integer - */ - public $numRequests; - - /** - * @access public - * @var string[] - */ - public $path; - - /** - * @access public - * @var AdUnitParent[] - */ - public $parentPath; - - /** - * @access public - * @var tnsAdUnitTargetWindow - */ - public $targetWindow; - - /** - * @access public - * @var tnsTargetPlatform - */ - public $targetPlatform; - - /** - * @access public - * @var AdUnitSize[] - */ - public $suggestedAdUnitSizes; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $numRequests = null, $path = null, $parentPath = null, $targetWindow = null, $targetPlatform = null, $suggestedAdUnitSizes = null) { - $this->id = $id; - $this->numRequests = $numRequests; - $this->path = $path; - $this->parentPath = $parentPath; - $this->targetWindow = $targetWindow; - $this->targetPlatform = $targetPlatform; - $this->suggestedAdUnitSizes = $suggestedAdUnitSizes; - } - - } -} - -if (!class_exists("SuggestedAdUnitPage", false)) { - /** - * Contains a page of {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SuggestedAdUnitPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SuggestedAdUnitPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var SuggestedAdUnit[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("SuggestedAdUnitUpdateResult", false)) { - /** - * Represents the result of performing an action on {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SuggestedAdUnitUpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SuggestedAdUnitUpdateResult"; - - /** - * @access public - * @var string[] - */ - public $newAdUnitIds; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($newAdUnitIds = null, $numChanges = null) { - $this->newAdUnitIds = $newAdUnitIds; - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("AdUnitTargetWindow", false)) { - /** - * Corresponds to an HTML link's {@code target} attribute. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AdUnitTargetWindow { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnit.TargetWindow"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("EnvironmentType", false)) { - /** - * Enum for the valid environments in which ads can be shown. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class EnvironmentType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EnvironmentType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("LabelEntityAssociationErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class LabelEntityAssociationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TargetPlatform", false)) { - /** - * Indicates the target platform. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TargetPlatform { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TargetPlatform"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetSuggestedAdUnit", false)) { - /** - * Returns the SuggestedAdUnit uniquely identified by the given ID. - * - * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetSuggestedAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $suggestedAdUnitId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($suggestedAdUnitId = null) { - $this->suggestedAdUnitId = $suggestedAdUnitId; - } - - } -} - -if (!class_exists("GetSuggestedAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetSuggestedAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetSuggestedAdUnitsByStatement", false)) { - /** - * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that - * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested - * ad units that are suggested at any one time. - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - *

Note: After API version 201311, the {@code id} field will only be - * numerical. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the suggested ad units that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetSuggestedAdUnitsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetSuggestedAdUnitsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetSuggestedAdUnitsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnitPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformSuggestedAdUnitAction", false)) { - /** - * Performs actions on {@link SuggestedAdUnit} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - * @param suggestedAdUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformSuggestedAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnitAction - */ - public $suggestedAdUnitAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($suggestedAdUnitAction = null, $filterStatement = null) { - $this->suggestedAdUnitAction = $suggestedAdUnitAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformSuggestedAdUnitActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformSuggestedAdUnitActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnitUpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("ApproveSuggestedAdUnit", false)) { - /** - * Action to approve {@link SuggestedAdUnit} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApproveSuggestedAdUnit"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($SuggestedAdUnitActionType = null) { - parent::__construct(); - $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SuggestedAdUnitService", false)) { - /** - * SuggestedAdUnitService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SuggestedAdUnitService extends DfpSoapClient { - - const SERVICE_NAME = "SuggestedAdUnitService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/SuggestedAdUnitService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/SuggestedAdUnitService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "AdUnitParent" => "AdUnitParent", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "AdUnitSize" => "AdUnitSize", - "LabelEntityAssociationError" => "LabelEntityAssociationError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "Size" => "Size", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "SuggestedAdUnitAction" => "SuggestedAdUnitAction", - "SuggestedAdUnit" => "SuggestedAdUnit", - "SuggestedAdUnitPage" => "SuggestedAdUnitPage", - "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", - "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "Value" => "Value", - "AdUnit.TargetWindow" => "AdUnitTargetWindow", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "EnvironmentType" => "EnvironmentType", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "TargetPlatform" => "TargetPlatform", - "getSuggestedAdUnit" => "GetSuggestedAdUnit", - "getSuggestedAdUnitResponse" => "GetSuggestedAdUnitResponse", - "getSuggestedAdUnitsByStatement" => "GetSuggestedAdUnitsByStatement", - "getSuggestedAdUnitsByStatementResponse" => "GetSuggestedAdUnitsByStatementResponse", - "performSuggestedAdUnitAction" => "PerformSuggestedAdUnitAction", - "performSuggestedAdUnitActionResponse" => "PerformSuggestedAdUnitActionResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Returns the SuggestedAdUnit uniquely identified by the given ID. - * - * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. - */ - public function getSuggestedAdUnit($suggestedAdUnitId) { - $args = new GetSuggestedAdUnit($suggestedAdUnitId); - $result = $this->__soapCall("getSuggestedAdUnit", array($args)); - return $result->rval; - } - /** - * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that - * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested - * ad units that are suggested at any one time. - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - *

Note: After API version 201311, the {@code id} field will only be - * numerical. - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the suggested ad units that match the given filter - */ - public function getSuggestedAdUnitsByStatement($filterStatement) { - $args = new GetSuggestedAdUnitsByStatement($filterStatement); - $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link SuggestedAdUnit} objects that match the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link SuggestedAdUnit#id}
{@code numRequests}{@link SuggestedAdUnit#numRequests}
- * - * @param suggestedAdUnitAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of suggested ad units - * @return the result of the action performed - */ - public function performSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement) { - $args = new PerformSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); - $result = $this->__soapCall("performSuggestedAdUnitAction", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/UserService.php b/src/Google/Api/Ads/Dfp/v201311/UserService.php deleted file mode 100755 index 07c687167..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/UserService.php +++ /dev/null @@ -1,4280 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("BaseCustomFieldValue", false)) { - /** - * The value of a {@link CustomField} for a particular entity. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomFieldValue", false)) { - /** - * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValue"; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->value = $value; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("CustomFieldValueError", false)) { - /** - * Errors specific to editing custom field values - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError"; - - /** - * @access public - * @var tnsCustomFieldValueErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DropDownCustomFieldValue", false)) { - /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DropDownCustomFieldValue"; - - /** - * @access public - * @var integer - */ - public $customFieldOptionId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidEmailError", false)) { - /** - * Caused by supplying a value for an email attribute that is not a valid - * email address. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError"; - - /** - * @access public - * @var tnsInvalidEmailErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; - - /** - * @access public - * @var tnsParseErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Role", false)) { - /** - * Each {@code Role} provides a user with permissions to perform specific - * operations in the system. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Role { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Role"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $description; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $description = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("TeamError", false)) { - /** - * Errors related to a Team. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError"; - - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TokenError", false)) { - /** - * An error for an exception that occurred when using a token. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TokenError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TokenError"; - - /** - * @access public - * @var tnsTokenErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserAction", false)) { - /** - * Represents the actions that can be performed on {@link User} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserAction"; - - /** - * @access public - * @var string - */ - public $UserActionType; - private $_parameterMap = array( - "UserAction.Type" => "UserActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserActionType = null) { - $this->UserActionType = $UserActionType; - } - - } -} - -if (!class_exists("UserPage", false)) { - /** - * Captures a page of {@link User} objects - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var User[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("UserRecord", false)) { - /** - * The {@code UserRecord} represents the base class from which a {@code User} is - * derived. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserRecord { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserRecord"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $email; - - /** - * @access public - * @var integer - */ - public $roleId; - - /** - * @access public - * @var string - */ - public $roleName; - - /** - * @access public - * @var string - */ - public $preferredLocale; - - /** - * @access public - * @var string - */ - public $UserRecordType; - private $_parameterMap = array( - "UserRecord.Type" => "UserRecordType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { - $this->id = $id; - $this->name = $name; - $this->email = $email; - $this->roleId = $roleId; - $this->roleName = $roleName; - $this->preferredLocale = $preferredLocale; - $this->UserRecordType = $UserRecordType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomFieldValueErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CustomFieldValueErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InvalidEmailErrorReason", false)) { - /** - * Describes reasons for an email to be invalid. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidEmailErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidEmailError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ParseErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TokenErrorReason", false)) { - /** - * The value returned if the actual value is not exposed by the requested API version. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TokenErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TokenError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateUser", false)) { - /** - * Creates a new {@link User}. - * - * The following fields are required: - *
    - *
  • {@link User#email}
  • - *
  • {@link User#name}
  • - *
- * - * @param user the user to create - * @return the new user with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $user; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($user = null) { - $this->user = $user; - } - - } -} - -if (!class_exists("CreateUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateUsers", false)) { - /** - * Creates new {@link User} objects. - * - * @param users the users to create - * @return the created users with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUsers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $users; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($users = null) { - $this->users = $users; - } - - } -} - -if (!class_exists("CreateUsersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUsersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetAllRoles", false)) { - /** - * Returns the {@link Role} objects that are defined for the users of the - * network. - * - * @return the roles defined for the user's network - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAllRoles { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetAllRolesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAllRolesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Role[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCurrentUser", false)) { - /** - * Returns the current {@link User}. - * - * @return the current user - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCurrentUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("GetCurrentUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetCurrentUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUser", false)) { - /** - * Returns the {@link User} uniquely identified by the given ID. - * - * @param userId The optional ID of the user. For current user set to {@code null}. - * @return the {@code User} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userId = null) { - $this->userId = $userId; - } - - } -} - -if (!class_exists("GetUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUsersByStatement", false)) { - /** - * Gets a {@link UserPage} of {@link User} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code email}{@link User#email}
{@code id}{@link User#id}
{@code name}{@link User#name}
{@code roleId}{@link User#roleId} - *
{@code rolename}{@link User#roleName} - *
{@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} - * otherwise
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the users that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUsersByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetUsersByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUsersByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformUserAction", false)) { - /** - * Performs actions on {@link User} objects that match the given - * {@link Statement#query}. - * - * @param userAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformUserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserAction - */ - public $userAction; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userAction = null, $filterStatement = null) { - $this->userAction = $userAction; - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("PerformUserActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformUserActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUser", false)) { - /** - * Updates the specified {@link User}. - * - * @param user the user to update - * @return the updated user - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $user; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($user = null) { - $this->user = $user; - } - - } -} - -if (!class_exists("UpdateUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUsers", false)) { - /** - * Updates the specified {@link User} objects. - * - * @param users the users to update - * @return the updated users - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUsers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $users; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($users = null) { - $this->users = $users; - } - - } -} - -if (!class_exists("UpdateUsersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUsersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ActivateUsers", false)) { - /** - * The action used for activating {@link User} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ActivateUsers extends UserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateUsers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserActionType = null) { - parent::__construct(); - $this->UserActionType = $UserActionType; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeactivateUsers", false)) { - /** - * The action used for deactivating {@link User} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateUsers extends UserAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateUsers"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserActionType = null) { - parent::__construct(); - $this->UserActionType = $UserActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("User", false)) { - /** - * Represents a user of the system. - *

- * Users may be assigned at most one {@link Role} per network. Each role - * provides a user with permissions to perform specific operations. Without a - * role, they will not be able to perform any actions. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class User extends UserRecord { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "User"; - - /** - * @access public - * @var boolean - */ - public $isActive; - - /** - * @access public - * @var boolean - */ - public $isEmailNotificationAllowed; - - /** - * @access public - * @var string - */ - public $externalId; - - /** - * @access public - * @var string - */ - public $ordersUiLocalTimeZoneId; - - /** - * @access public - * @var BaseCustomFieldValue[] - */ - public $customFieldValues; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isActive = null, $isEmailNotificationAllowed = null, $externalId = null, $ordersUiLocalTimeZoneId = null, $customFieldValues = null, $id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { - parent::__construct(); - $this->isActive = $isActive; - $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; - $this->externalId = $externalId; - $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; - $this->customFieldValues = $customFieldValues; - $this->id = $id; - $this->name = $name; - $this->email = $email; - $this->roleId = $roleId; - $this->roleName = $roleName; - $this->preferredLocale = $preferredLocale; - $this->UserRecordType = $UserRecordType; - } - - } -} - -if (!class_exists("UserService", false)) { - /** - * UserService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserService extends DfpSoapClient { - - const SERVICE_NAME = "UserService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/UserService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/UserService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ActivateUsers" => "ActivateUsers", - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BaseCustomFieldValue" => "BaseCustomFieldValue", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "CustomFieldValue" => "CustomFieldValue", - "CustomFieldValueError" => "CustomFieldValueError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeactivateUsers" => "DeactivateUsers", - "DropDownCustomFieldValue" => "DropDownCustomFieldValue", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "InvalidEmailError" => "InvalidEmailError", - "NotNullError" => "NotNullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "Role" => "Role", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TeamError" => "TeamError", - "TextValue" => "TextValue", - "TokenError" => "TokenError", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", - "UpdateResult" => "UpdateResult", - "UserAction" => "UserAction", - "User" => "User", - "UserPage" => "UserPage", - "UserRecord" => "UserRecord", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidEmailError.Reason" => "InvalidEmailErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "TeamError.Reason" => "TeamErrorReason", - "TokenError.Reason" => "TokenErrorReason", - "createUser" => "CreateUser", - "createUserResponse" => "CreateUserResponse", - "createUsers" => "CreateUsers", - "createUsersResponse" => "CreateUsersResponse", - "getAllRoles" => "GetAllRoles", - "getAllRolesResponse" => "GetAllRolesResponse", - "getCurrentUser" => "GetCurrentUser", - "getCurrentUserResponse" => "GetCurrentUserResponse", - "getUser" => "GetUser", - "getUserResponse" => "GetUserResponse", - "getUsersByStatement" => "GetUsersByStatement", - "getUsersByStatementResponse" => "GetUsersByStatementResponse", - "performUserAction" => "PerformUserAction", - "performUserActionResponse" => "PerformUserActionResponse", - "updateUser" => "UpdateUser", - "updateUserResponse" => "UpdateUserResponse", - "updateUsers" => "UpdateUsers", - "updateUsersResponse" => "UpdateUsersResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@link User}. - * - * The following fields are required: - *
    - *
  • {@link User#email}
  • - *
  • {@link User#name}
  • - *
- * - * @param user the user to create - * @return the new user with its ID filled in - */ - public function createUser($user) { - $args = new CreateUser($user); - $result = $this->__soapCall("createUser", array($args)); - return $result->rval; - } - /** - * Creates new {@link User} objects. - * - * @param users the users to create - * @return the created users with their IDs filled in - */ - public function createUsers($users) { - $args = new CreateUsers($users); - $result = $this->__soapCall("createUsers", array($args)); - return $result->rval; - } - /** - * Returns the {@link Role} objects that are defined for the users of the - * network. - * - * @return the roles defined for the user's network - */ - public function getAllRoles() { - $args = new GetAllRoles(); - $result = $this->__soapCall("getAllRoles", array($args)); - return $result->rval; - } - /** - * Returns the current {@link User}. - * - * @return the current user - */ - public function getCurrentUser() { - $args = new GetCurrentUser(); - $result = $this->__soapCall("getCurrentUser", array($args)); - return $result->rval; - } - /** - * Returns the {@link User} uniquely identified by the given ID. - * - * @param userId The optional ID of the user. For current user set to {@code null}. - * @return the {@code User} uniquely identified by the given ID - */ - public function getUser($userId) { - $args = new GetUser($userId); - $result = $this->__soapCall("getUser", array($args)); - return $result->rval; - } - /** - * Gets a {@link UserPage} of {@link User} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code email}{@link User#email}
{@code id}{@link User#id}
{@code name}{@link User#name}
{@code roleId}{@link User#roleId} - *
{@code rolename}{@link User#roleName} - *
{@code status}{@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} - * otherwise
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the users that match the given filter - */ - public function getUsersByStatement($filterStatement) { - $args = new GetUsersByStatement($filterStatement); - $result = $this->__soapCall("getUsersByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link User} objects that match the given - * {@link Statement#query}. - * - * @param userAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of users - * @return the result of the action performed - */ - public function performUserAction($userAction, $filterStatement) { - $args = new PerformUserAction($userAction, $filterStatement); - $result = $this->__soapCall("performUserAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link User}. - * - * @param user the user to update - * @return the updated user - */ - public function updateUser($user) { - $args = new UpdateUser($user); - $result = $this->__soapCall("updateUser", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link User} objects. - * - * @param users the users to update - * @return the updated users - */ - public function updateUsers($users) { - $args = new UpdateUsers($users); - $result = $this->__soapCall("updateUsers", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php deleted file mode 100755 index 3c840b49e..000000000 --- a/src/Google/Api/Ads/Dfp/v201311/UserTeamAssociationService.php +++ /dev/null @@ -1,3323 +0,0 @@ -The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; - - /** - * @access public - * @var string - */ - public $trigger; - - /** - * @access public - * @var string - */ - public $errorString; - - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApiVersionError", false)) { - /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; - - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ApplicationException", false)) { - /** - * Base class for exceptions. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; - - /** - * @access public - * @var string - */ - public $message; - - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("AuthenticationError", false)) { - /** - * An error for an exception that occurred when authenticating. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; - - /** - * @access public - * @var tnsAuthenticationErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Date", false)) { - /** - * Represents a date. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; - } - - } -} - -if (!class_exists("DfpDateTime", false)) { - /** - * Represents a date combined with the time of day. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InternalApiError", false)) { - /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; - - /** - * @access public - * @var tnsNotNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("NullError", false)) { - /** - * Errors associated with violation of a NOT NULL check. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; - - /** - * @access public - * @var tnsNullErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; - - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextError", false)) { - /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageContextErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { - /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; - - /** - * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("QuotaError", false)) { - /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; - - /** - * @access public - * @var tnsQuotaErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ServerError", false)) { - /** - * Errors related to the server. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; - - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("SoapRequestHeader", false)) { - /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapRequestHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; - } - - } -} - -if (!class_exists("SoapResponseHeader", false)) { - /** - * Represents the SOAP request header used by API responses. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; - - /** - * @access public - * @var integer - */ - public $responseTime; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; - } - - } -} - -if (!class_exists("Statement", false)) { - /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

- * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

- *

- * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

- *

- * An example of such a query might be {@code "WHERE id = :idValue"}. - *

- *

- * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

- *

- * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

- * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

- * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; - - /** - * @access public - * @var string - */ - public $query; - - /** - * @access public - * @var String_ValueMapEntry[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; - } - - } -} - -if (!class_exists("StatementError", false)) { - /** - * An error that occurs while parsing {@link Statement} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; - - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("String_ValueMapEntry", false)) { - /** - * This represents an entry in a map with a key of type String - * and value of type Value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; - - /** - * @access public - * @var Value - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("UserRecordTeamAssociation", false)) { - /** - * {@code UserRecordTeamAssociation} represents the association between a - * {@link UserRecord} and a {@link Team}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserRecordTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserRecordTeamAssociation"; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * @access public - * @var tnsTeamAccessType - */ - public $overriddenTeamAccessType; - - /** - * @access public - * @var tnsTeamAccessType - */ - public $defaultTeamAccessType; - - /** - * @access public - * @var string - */ - public $UserRecordTeamAssociationType; - private $_parameterMap = array( - "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null, $UserRecordTeamAssociationType = null) { - $this->teamId = $teamId; - $this->overriddenTeamAccessType = $overriddenTeamAccessType; - $this->defaultTeamAccessType = $defaultTeamAccessType; - $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; - } - - } -} - -if (!class_exists("UserTeamAssociationAction", false)) { - /** - * Represents the actions that can be performed on {@link UserTeamAssociation} - * objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserTeamAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserTeamAssociationAction"; - - /** - * @access public - * @var string - */ - public $UserTeamAssociationActionType; - private $_parameterMap = array( - "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserTeamAssociationActionType = null) { - $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; - } - - } -} - -if (!class_exists("UserTeamAssociation", false)) { - /** - * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} - * to provide the user access to the entities that belong to the team. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserTeamAssociation extends UserRecordTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserTeamAssociation"; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userId = null, $teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null, $UserRecordTeamAssociationType = null) { - parent::__construct(); - $this->userId = $userId; - $this->teamId = $teamId; - $this->overriddenTeamAccessType = $overriddenTeamAccessType; - $this->defaultTeamAccessType = $defaultTeamAccessType; - $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; - } - - } -} - -if (!class_exists("UserTeamAssociationPage", false)) { - /** - * Captures a page of {@link UserTeamAssociation} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserTeamAssociationPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserTeamAssociationPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("ApiVersionErrorReason", false)) { - /** - * Indicates that the operation is not allowed in the version the request - * was made in. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiVersionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AuthenticationErrorReason", false)) { - /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class AuthenticationErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("FeatureErrorReason", false)) { - /** - * A feature is being used that is not enabled on the current network. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InternalApiErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NotNullErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("NullErrorReason", false)) { - /** - * The reasons for the validation error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NullErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PermissionErrorReason", false)) { - /** - * Describes reasons for permission errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageContextErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PublisherQueryLanguageSyntaxErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("QuotaErrorReason", false)) { - /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

- * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

- * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class QuotaErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("StatementErrorReason", false)) { - /** - * A bind variable has not been bound to a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class StatementErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("TeamAccessType", false)) { - /** - * Represents the types of team access supported for orders. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TeamAccessType { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamAccessType"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateUserTeamAssociation", false)) { - /** - * Creates a new {@code UserTeamAssociation}. - * - * The following fields are required: - *
    - *
  • {@link UserTeamAssociation#teamId}
  • - *
  • {@link UserTeamAssociation#userId}
  • - *
- * - * @param userTeamAssociation the user team association to create - * @return the user team association with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $userTeamAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociation = null) { - $this->userTeamAssociation = $userTeamAssociation; - } - - } -} - -if (!class_exists("CreateUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateUserTeamAssociations", false)) { - /** - * Creates new {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to create - * @return the created user team associations with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUserTeamAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $userTeamAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociations = null) { - $this->userTeamAssociations = $userTeamAssociations; - } - - } -} - -if (!class_exists("CreateUserTeamAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateUserTeamAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUserTeamAssociation", false)) { - /** - * Returns the {@link UserTeamAssociation} uniquely identified by the given - * user and team IDs. - * - * @param teamId the ID of the team, which must already exist - * @param userId the ID of the user, which must already exist - * @return the {@code UserTeamAssociation} uniquely identified by the - * user and team IDs - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teamId = null, $userId = null) { - $this->teamId = $teamId; - $this->userId = $userId; - } - - } -} - -if (!class_exists("GetUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUserTeamAssociationsByStatement", false)) { - /** - * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code userId}{@link UserTeamAssociation#userId}
{@code teamId}{@link UserTeamAssociation#teamId}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the user team associations that match the given filter - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUserTeamAssociationsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; - } - - } -} - -if (!class_exists("GetUserTeamAssociationsByStatementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetUserTeamAssociationsByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociationPage - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("PerformUserTeamAssociationAction", false)) { - /** - * Performs actions on {@link UserTeamAssociation} objects that match the - * given {@link Statement#query}. - * - * @param userTeamAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the result of the action performed - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformUserTeamAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociationAction - */ - public $userTeamAssociationAction; - - /** - * @access public - * @var Statement - */ - public $statement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociationAction = null, $statement = null) { - $this->userTeamAssociationAction = $userTeamAssociationAction; - $this->statement = $statement; - } - - } -} - -if (!class_exists("PerformUserTeamAssociationActionResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PerformUserTeamAssociationActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociation", false)) { - /** - * Updates the specified {@link UserTeamAssociation}. - * - * @param userTeamAssociation the user team association to update - * @return the updated user team association - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $userTeamAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociation = null) { - $this->userTeamAssociation = $userTeamAssociation; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociations", false)) { - /** - * Updates the specified {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to update - * @return the updated user team associations - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUserTeamAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $userTeamAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociations = null) { - $this->userTeamAssociations = $userTeamAssociations; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateUserTeamAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("ApiException", false)) { - /** - * Exception class for holding a list of service errors. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { - parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("BooleanValue", false)) { - /** - * Contains a boolean value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class BooleanValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateTimeValue", false)) { - /** - * Contains a date-time value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; - - /** - * @access public - * @var DateTime - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DateValue", false)) { - /** - * Contains a date value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("DeleteUserTeamAssociations", false)) { - /** - * Action to delete the association between a {@link User} and a {@link Team}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeleteUserTeamAssociations extends UserTeamAssociationAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeleteUserTeamAssociations"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($UserTeamAssociationActionType = null) { - parent::__construct(); - $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; - } - - } -} - -if (!class_exists("NumberValue", false)) { - /** - * Contains a numeric value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("SetValue", false)) { - /** - * Contains a set of {@link Value Values}. May not contain duplicates. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class SetValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SetValue"; - - /** - * @access public - * @var Value[] - */ - public $values; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($values = null, $ValueType = null) { - parent::__construct(); - $this->values = $values; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("TextValue", false)) { - /** - * Contains a string value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class TextValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TextValue"; - - /** - * @access public - * @var string - */ - public $value; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($value = null, $ValueType = null) { - parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; - } - - } -} - -if (!class_exists("UserTeamAssociationService", false)) { - /** - * UserTeamAssociationService - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UserTeamAssociationService extends DfpSoapClient { - - const SERVICE_NAME = "UserTeamAssociationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/UserTeamAssociationService"; - - /** - * The endpoint of the service - * @var string - */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/UserTeamAssociationService"; - /** - * Default class map for wsdl=>php - * @access private - * @var array - */ - public static $classmap = array( - "ApiError" => "ApiError", - "ApiException" => "ApiException", - "ApiVersionError" => "ApiVersionError", - "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", - "AuthenticationError" => "AuthenticationError", - "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", - "CommonError" => "CommonError", - "Date" => "Date", - "DateTime" => "DfpDateTime", - "DateTimeValue" => "DateTimeValue", - "DateValue" => "DateValue", - "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", - "FeatureError" => "FeatureError", - "InternalApiError" => "InternalApiError", - "NotNullError" => "NotNullError", - "NullError" => "NullError", - "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "PermissionError" => "PermissionError", - "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", - "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", - "QuotaError" => "QuotaError", - "ServerError" => "ServerError", - "SetValue" => "SetValue", - "SoapRequestHeader" => "SoapRequestHeader", - "SoapResponseHeader" => "SoapResponseHeader", - "Statement" => "Statement", - "StatementError" => "StatementError", - "String_ValueMapEntry" => "String_ValueMapEntry", - "TextValue" => "TextValue", - "UpdateResult" => "UpdateResult", - "UserRecordTeamAssociation" => "UserRecordTeamAssociation", - "UserTeamAssociationAction" => "UserTeamAssociationAction", - "UserTeamAssociation" => "UserTeamAssociation", - "UserTeamAssociationPage" => "UserTeamAssociationPage", - "Value" => "Value", - "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AuthenticationError.Reason" => "AuthenticationErrorReason", - "CommonError.Reason" => "CommonErrorReason", - "FeatureError.Reason" => "FeatureErrorReason", - "InternalApiError.Reason" => "InternalApiErrorReason", - "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "PermissionError.Reason" => "PermissionErrorReason", - "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", - "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", - "QuotaError.Reason" => "QuotaErrorReason", - "ServerError.Reason" => "ServerErrorReason", - "StatementError.Reason" => "StatementErrorReason", - "TeamAccessType" => "TeamAccessType", - "createUserTeamAssociation" => "CreateUserTeamAssociation", - "createUserTeamAssociationResponse" => "CreateUserTeamAssociationResponse", - "createUserTeamAssociations" => "CreateUserTeamAssociations", - "createUserTeamAssociationsResponse" => "CreateUserTeamAssociationsResponse", - "getUserTeamAssociation" => "GetUserTeamAssociation", - "getUserTeamAssociationResponse" => "GetUserTeamAssociationResponse", - "getUserTeamAssociationsByStatement" => "GetUserTeamAssociationsByStatement", - "getUserTeamAssociationsByStatementResponse" => "GetUserTeamAssociationsByStatementResponse", - "performUserTeamAssociationAction" => "PerformUserTeamAssociationAction", - "performUserTeamAssociationActionResponse" => "PerformUserTeamAssociationActionResponse", - "updateUserTeamAssociation" => "UpdateUserTeamAssociation", - "updateUserTeamAssociationResponse" => "UpdateUserTeamAssociationResponse", - "updateUserTeamAssociations" => "UpdateUserTeamAssociations", - "updateUserTeamAssociationsResponse" => "UpdateUserTeamAssociationsResponse", - ); - - - /** - * Constructor using wsdl location and options array - * @param string $wsdl WSDL location for this service - * @param array $options Options for the SoapClient - */ - public function __construct($wsdl, $options, $user) { - $options["classmap"] = self::$classmap; - parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, - self::WSDL_NAMESPACE); - } - /** - * Creates a new {@code UserTeamAssociation}. - * - * The following fields are required: - *
    - *
  • {@link UserTeamAssociation#teamId}
  • - *
  • {@link UserTeamAssociation#userId}
  • - *
- * - * @param userTeamAssociation the user team association to create - * @return the user team association with its ID filled in - */ - public function createUserTeamAssociation($userTeamAssociation) { - $args = new CreateUserTeamAssociation($userTeamAssociation); - $result = $this->__soapCall("createUserTeamAssociation", array($args)); - return $result->rval; - } - /** - * Creates new {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to create - * @return the created user team associations with their IDs filled in - */ - public function createUserTeamAssociations($userTeamAssociations) { - $args = new CreateUserTeamAssociations($userTeamAssociations); - $result = $this->__soapCall("createUserTeamAssociations", array($args)); - return $result->rval; - } - /** - * Returns the {@link UserTeamAssociation} uniquely identified by the given - * user and team IDs. - * - * @param teamId the ID of the team, which must already exist - * @param userId the ID of the user, which must already exist - * @return the {@code UserTeamAssociation} uniquely identified by the - * user and team IDs - */ - public function getUserTeamAssociation($teamId, $userId) { - $args = new GetUserTeamAssociation($teamId, $userId); - $result = $this->__soapCall("getUserTeamAssociation", array($args)); - return $result->rval; - } - /** - * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} - * objects that satisfy the given {@link Statement#query}. The following - * fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code userId}{@link UserTeamAssociation#userId}
{@code teamId}{@link UserTeamAssociation#teamId}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the user team associations that match the given filter - */ - public function getUserTeamAssociationsByStatement($filterStatement) { - $args = new GetUserTeamAssociationsByStatement($filterStatement); - $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link UserTeamAssociation} objects that match the - * given {@link Statement#query}. - * - * @param userTeamAssociationAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of user team associations - * @return the result of the action performed - */ - public function performUserTeamAssociationAction($userTeamAssociationAction, $statement) { - $args = new PerformUserTeamAssociationAction($userTeamAssociationAction, $statement); - $result = $this->__soapCall("performUserTeamAssociationAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link UserTeamAssociation}. - * - * @param userTeamAssociation the user team association to update - * @return the updated user team association - */ - public function updateUserTeamAssociation($userTeamAssociation) { - $args = new UpdateUserTeamAssociation($userTeamAssociation); - $result = $this->__soapCall("updateUserTeamAssociation", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to update - * @return the updated user team associations - */ - public function updateUserTeamAssociations($userTeamAssociations) { - $args = new UpdateUserTeamAssociations($userTeamAssociations); - $result = $this->__soapCall("updateUserTeamAssociations", array($args)); - return $result->rval; - } - } -} - diff --git a/src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php index 5c859b33b..51310cba3 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ActivityGroupService.php @@ -496,6 +496,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1723,6 +1768,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2811,6 +2889,7 @@ class ActivityGroupService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2842,6 +2921,7 @@ class ActivityGroupService extends DfpSoapClient { "ActivityGroup.Status" => "ActivityGroupStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ActivityService.php b/src/Google/Api/Ads/Dfp/v201403/ActivityService.php index 99fee068e..691c9ef47 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ActivityService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ActivityService.php @@ -501,6 +501,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1761,6 +1806,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2849,6 +2927,7 @@ class ActivityService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2881,6 +2960,7 @@ class ActivityService extends DfpSoapClient { "ActivityError.Reason" => "ActivityErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201403/AdRuleService.php index b064fc004..09aa17b68 100755 --- a/src/Google/Api/Ads/Dfp/v201403/AdRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201403/AdRuleService.php @@ -1131,6 +1131,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4226,6 +4271,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6846,6 +6924,7 @@ class AdRuleService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -6926,6 +7005,7 @@ class AdRuleService extends DfpSoapClient { "AdRuleStatus" => "AdRuleStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php index c3fecc6a7..5fcb6e544 100755 --- a/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php @@ -509,6 +509,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2132,6 +2177,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4111,6 +4189,7 @@ class AudienceSegmentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomCriteria" => "CustomCriteria", "CustomCriteriaSet" => "CustomCriteriaSet", @@ -4158,6 +4237,7 @@ class AudienceSegmentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", diff --git a/src/Google/Api/Ads/Dfp/v201403/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201403/BaseRateService.php index 8c6898d2b..9abfaad50 100755 --- a/src/Google/Api/Ads/Dfp/v201403/BaseRateService.php +++ b/src/Google/Api/Ads/Dfp/v201403/BaseRateService.php @@ -485,8 +485,8 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("BaseRate", false)) { /** - * A base rate that applies to a product template or product belonging to rate - * card. + * A base rate that applies to a product template, product or product package + * item belonging to rate card. * @package GoogleApiAdsDfp * @subpackage v201403 */ @@ -676,6 +676,51 @@ public function __construct($results = null, $startIndex = null, $totalResultSet } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -878,6 +923,45 @@ public function __construct($BaseRateActionType = null) { } } +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2163,6 +2247,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3337,12 +3454,14 @@ class BaseRateService extends DfpSoapClient { "BaseRateError" => "BaseRateError", "BaseRatePage" => "BaseRatePage", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateBaseRates" => "DeactivateBaseRates", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "Money" => "Money", @@ -3374,6 +3493,7 @@ class BaseRateService extends DfpSoapClient { "BaseRateActionError.Reason" => "BaseRateActionErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", "BaseRateStatus" => "BaseRateStatus", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/CompanyService.php b/src/Google/Api/Ads/Dfp/v201403/CompanyService.php index af3167266..585a872cd 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CompanyService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CompanyService.php @@ -415,6 +415,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2085,6 +2130,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3398,6 +3476,7 @@ class CompanyService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "Company" => "Company", @@ -3436,6 +3515,7 @@ class CompanyService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "Company.CreditStatus" => "CompanyCreditStatus", diff --git a/src/Google/Api/Ads/Dfp/v201403/ContactService.php b/src/Google/Api/Ads/Dfp/v201403/ContactService.php index c92aa9d34..5738f29af 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ContactService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ContactService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1699,6 +1744,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2941,6 +3019,7 @@ class ContactService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Contact" => "Contact", "ContactError" => "ContactError", @@ -2974,6 +3053,7 @@ class ContactService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "Contact.Status" => "ContactStatus", "ContactError.Reason" => "ContactErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php index 07bb2cbbc..ae8b85ee3 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ContentBundleService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1830,6 +1875,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2992,6 +3070,7 @@ class ContentBundleService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentBundleAction" => "ContentBundleAction", "ContentBundle" => "ContentBundle", @@ -3027,6 +3106,7 @@ class ContentBundleService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentBundleStatus" => "ContentBundleStatus", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php index 19ac60794..49be0506d 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ContentMetadataKeyHierarchyService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1930,6 +1975,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3166,6 +3244,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyAction" => "ContentMetadataKeyHierarchyAction", "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", @@ -3203,6 +3282,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", "ContentMetadataKeyHierarchyStatus" => "ContentMetadataKeyHierarchyStatus", diff --git a/src/Google/Api/Ads/Dfp/v201403/ContentService.php b/src/Google/Api/Ads/Dfp/v201403/ContentService.php index faea3d9de..ea6319802 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ContentService.php @@ -420,6 +420,51 @@ public function __construct($id = null, $displayName = null, $cmsContentId = nul } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1819,6 +1864,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2941,6 +3019,7 @@ class ContentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "CmsContent" => "CmsContent", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Content" => "Content", "ContentPage" => "ContentPage", @@ -2974,6 +3053,7 @@ class ContentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentPartnerError.Reason" => "ContentPartnerErrorReason", "ContentStatus" => "ContentStatus", diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeService.php index 8d16ed11a..f1a983557 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CreativeService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeService.php @@ -747,6 +747,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4431,6 +4476,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7791,7 +7869,8 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr if (!class_exists("VideoRedirectCreative", false)) { /** * A {@code Creative} that contains externally hosted video ads and - * is served via VAST 2.0 XML. This creative is read-only. + * is served via VAST 2.0 XML. This creative is read-only in versions + * V201408 and lower. * @package GoogleApiAdsDfp * @subpackage v201403 */ @@ -7954,6 +8033,7 @@ class CreativeService extends DfpSoapClient { "BaseVideoCreative" => "BaseVideoCreative", "BooleanValue" => "BooleanValue", "ClickTrackingCreative" => "ClickTrackingCreative", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", "CreativeAsset" => "CreativeAsset", @@ -8045,6 +8125,7 @@ class CreativeService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ConversionEvent" => "ConversionEvent", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php index 67b3b3919..b3279fa5b 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeSetService.php @@ -411,6 +411,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2615,6 +2660,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4249,6 +4327,7 @@ class CreativeSetService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -4301,6 +4380,7 @@ class CreativeSetService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php index ae7da3000..0223d8f39 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2043,6 +2088,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3433,6 +3511,7 @@ class CreativeTemplateService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", "CreativeTemplate" => "CreativeTemplate", @@ -3476,6 +3555,7 @@ class CreativeTemplateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php index 17e45d853..6b3681f5a 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeWrapperService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2023,6 +2068,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3369,6 +3447,7 @@ class CreativeWrapperService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperAction" => "CreativeWrapperAction", "CreativeWrapper" => "CreativeWrapper", @@ -3408,6 +3487,7 @@ class CreativeWrapperService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php index b656bda4f..0557e1ca3 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CustomFieldService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2075,6 +2120,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3642,6 +3720,7 @@ class CustomFieldService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldAction" => "CustomFieldAction", "CustomField" => "CustomField", @@ -3681,6 +3760,7 @@ class CustomFieldService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldDataType" => "CustomFieldDataType", "CustomFieldEntityType" => "CustomFieldEntityType", diff --git a/src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php index 3ad3883ad..d7984f0af 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CustomTargetingService.php @@ -368,8 +368,7 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("CollectionSizeError", false)) { /** - * Errors associated with the size of the given collection being - * out of bounds. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp * @subpackage v201403 */ @@ -1084,6 +1083,45 @@ public function __construct($CustomTargetingValueActionType = null) { } } +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2158,7 +2196,7 @@ public function __construct() { if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp * @subpackage v201403 */ @@ -3839,6 +3877,7 @@ class CustomTargetingService extends DfpSoapClient { "DateValue" => "DateValue", "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", diff --git a/src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php index f53af9fc1..5ef4109da 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ExchangeRateService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1719,6 +1764,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2954,6 +3032,7 @@ class ExchangeRateService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2987,6 +3066,7 @@ class ExchangeRateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateDirection" => "ExchangeRateDirection", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ForecastService.php b/src/Google/Api/Ads/Dfp/v201403/ForecastService.php index bbc38d5d0..a116b1a63 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ForecastService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ForecastService.php @@ -887,6 +887,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2674,6 +2719,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4683,6 +4773,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -5984,6 +6119,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6847,6 +7015,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -7896,6 +8097,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -9662,6 +9896,7 @@ class ForecastService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContendingLineItem" => "ContendingLineItem", @@ -9705,6 +9940,7 @@ class ForecastService extends DfpSoapClient { "GenericTargetingError" => "GenericTargetingError", "GeoTargeting" => "GeoTargeting", "GeoTargetingError" => "GeoTargetingError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -9746,6 +9982,7 @@ class ForecastService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -9775,6 +10012,7 @@ class ForecastService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -9801,6 +10039,7 @@ class ForecastService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -9832,6 +10071,7 @@ class ForecastService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/InventoryService.php b/src/Google/Api/Ads/Dfp/v201403/InventoryService.php index 6856fedb8..59eb0201a 100755 --- a/src/Google/Api/Ads/Dfp/v201403/InventoryService.php +++ b/src/Google/Api/Ads/Dfp/v201403/InventoryService.php @@ -1021,6 +1021,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3542,6 +3587,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5638,6 +5716,7 @@ class InventoryService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "CrossSellError" => "CrossSellError", @@ -5699,6 +5778,7 @@ class InventoryService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "CrossSellError.Reason" => "CrossSellErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/LabelService.php b/src/Google/Api/Ads/Dfp/v201403/LabelService.php index e3b11eecd..3b15f2e0a 100755 --- a/src/Google/Api/Ads/Dfp/v201403/LabelService.php +++ b/src/Google/Api/Ads/Dfp/v201403/LabelService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1934,6 +1979,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3273,6 +3351,7 @@ class LabelService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "Date" => "Date", @@ -3311,6 +3390,7 @@ class LabelService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php index bb943a4b0..8eb3d0032 100755 --- a/src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201403/LineItemCreativeAssociationService.php @@ -456,6 +456,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3301,6 +3346,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5425,6 +5503,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -5490,6 +5569,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AssetError.Reason" => "AssetErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/LineItemService.php b/src/Google/Api/Ads/Dfp/v201403/LineItemService.php index df666e747..be004ffb3 100755 --- a/src/Google/Api/Ads/Dfp/v201403/LineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201403/LineItemService.php @@ -887,6 +887,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2512,6 +2557,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4710,6 +4800,51 @@ public function __construct($skipInventoryCheck = null, $LineItemActionType = nu } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -6140,6 +6275,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7003,6 +7171,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -7986,6 +8187,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -10021,6 +10255,7 @@ class LineItemService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", @@ -10063,6 +10298,7 @@ class LineItemService extends DfpSoapClient { "GenericTargetingError" => "GenericTargetingError", "GeoTargeting" => "GeoTargeting", "GeoTargetingError" => "GeoTargetingError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -10110,6 +10346,7 @@ class LineItemService extends DfpSoapClient { "ReserveLineItems" => "ReserveLineItems", "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", "ResumeLineItems" => "ResumeLineItems", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -10141,6 +10378,7 @@ class LineItemService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -10167,6 +10405,7 @@ class LineItemService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -10196,6 +10435,7 @@ class LineItemService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php index e0a456181..f73b745ab 100755 --- a/src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201403/LineItemTemplateService.php @@ -457,6 +457,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1252,6 +1297,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -2472,6 +2562,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -3250,6 +3385,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3780,6 +3948,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -4584,6 +4785,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -5239,6 +5473,7 @@ class LineItemTemplateService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -5258,6 +5493,7 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargetingError" => "InventoryTargetingError", @@ -5284,6 +5520,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -5303,6 +5540,7 @@ class LineItemTemplateService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -5319,6 +5557,7 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -5343,6 +5582,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php b/src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php index c360e0416..ef3db50c8 100755 --- a/src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php +++ b/src/Google/Api/Ads/Dfp/v201403/LiveStreamEventService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1982,6 +2027,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3348,6 +3426,7 @@ class LiveStreamEventService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3385,6 +3464,7 @@ class LiveStreamEventService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/NetworkService.php b/src/Google/Api/Ads/Dfp/v201403/NetworkService.php index f2cb97e82..d0e46c246 100755 --- a/src/Google/Api/Ads/Dfp/v201403/NetworkService.php +++ b/src/Google/Api/Ads/Dfp/v201403/NetworkService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1623,6 +1668,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2664,6 +2742,7 @@ class NetworkService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", @@ -2691,6 +2770,7 @@ class NetworkService extends DfpSoapClient { "UniqueError" => "UniqueError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/OrderService.php b/src/Google/Api/Ads/Dfp/v201403/OrderService.php index e28cde6df..60056e174 100755 --- a/src/Google/Api/Ads/Dfp/v201403/OrderService.php +++ b/src/Google/Api/Ads/Dfp/v201403/OrderService.php @@ -585,6 +585,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1468,6 +1513,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -3161,6 +3251,51 @@ public function __construct($OrderActionType = null) { } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -4173,6 +4308,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4635,6 +4803,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -5471,6 +5672,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -6722,6 +6956,7 @@ class OrderService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -6746,6 +6981,7 @@ class OrderService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidEmailError" => "InvalidEmailError", "InvalidUrlError" => "InvalidUrlError", @@ -6781,6 +7017,7 @@ class OrderService extends DfpSoapClient { "ResumeOrders" => "ResumeOrders", "RetractOrders" => "RetractOrders", "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -6806,6 +7043,7 @@ class OrderService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -6820,6 +7058,7 @@ class OrderService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidEmailError.Reason" => "InvalidEmailErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", @@ -6845,6 +7084,7 @@ class OrderService extends DfpSoapClient { "RequiredNumberError.Reason" => "RequiredNumberErrorReason", "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/PlacementService.php b/src/Google/Api/Ads/Dfp/v201403/PlacementService.php index 595fb7f25..09400b5b4 100755 --- a/src/Google/Api/Ads/Dfp/v201403/PlacementService.php +++ b/src/Google/Api/Ads/Dfp/v201403/PlacementService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2089,6 +2134,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3639,6 +3717,7 @@ class PlacementService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3681,6 +3760,7 @@ class PlacementService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ProductService.php b/src/Google/Api/Ads/Dfp/v201403/ProductService.php index df55bb452..604c066b3 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ProductService.php @@ -730,6 +730,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3468,6 +3513,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5867,6 +5945,7 @@ class ProductService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativePlaceholder" => "CreativePlaceholder", "CustomCriteria" => "CustomCriteria", @@ -5934,6 +6013,7 @@ class ProductService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php index 98e933811..dd6544418 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ProductTemplateService.php @@ -730,6 +730,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1238,6 +1283,45 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -3900,6 +3984,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6556,6 +6673,7 @@ class ProductTemplateService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativePlaceholder" => "CreativePlaceholder", "CustomCriteria" => "CustomCriteria", @@ -6575,6 +6693,7 @@ class ProductTemplateService extends DfpSoapClient { "DeviceCategory" => "DeviceCategory", "DeviceManufacturer" => "DeviceManufacturer", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -6631,6 +6750,7 @@ class ProductTemplateService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php index 2475d9018..5f459b7eb 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ProposalLineItemService.php @@ -841,6 +841,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1858,6 +1903,45 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -5302,6 +5386,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -8397,6 +8514,7 @@ class ProposalLineItemService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", @@ -8425,6 +8543,7 @@ class ProposalLineItemService extends DfpSoapClient { "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -8498,6 +8617,7 @@ class ProposalLineItemService extends DfpSoapClient { "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "ComputedStatus" => "ComputedStatus", diff --git a/src/Google/Api/Ads/Dfp/v201403/ProposalService.php b/src/Google/Api/Ads/Dfp/v201403/ProposalService.php index 4a18cc5a8..d8be50e60 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ProposalService.php @@ -539,6 +539,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -839,6 +884,45 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1248,6 +1332,96 @@ public function __construct($parameters = null, $AuthenticationType = null) { } } +if (!class_exists("PackageActionError", false)) { + /** + * Lists all errors for executing actions on {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class PackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "PackageActionError"; + + /** + * @access public + * @var tnsPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("PackageError", false)) { + /** + * Lists all errors associated with {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class PackageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "PackageError"; + + /** + * @access public + * @var tnsPackageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("PermissionError", false)) { /** * Errors related to incorrect permission. @@ -3115,6 +3289,58 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("WorkflowValidationError", false)) { + /** + * Lists all errors associated with workflow validation. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class WorkflowValidationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowValidationError"; + + /** + * @access public + * @var tnsWorkflowValidationErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $workflowErrorMessage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $workflowErrorMessage = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->workflowErrorMessage = $workflowErrorMessage; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ApiVersionErrorReason", false)) { /** * Indicates that the operation is not allowed in the version the request @@ -3321,6 +3547,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3651,6 +3910,72 @@ public function __construct() { } } +if (!class_exists("PackageActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class PackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "PackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageErrorReason", false)) { + /** + * The reasons for the {@link PackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class PackageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "PackageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("PermissionErrorReason", false)) { /** * Describes reasons for permission errors. @@ -4354,6 +4679,39 @@ public function __construct() { } } +if (!class_exists("WorkflowValidationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class WorkflowValidationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "WorkflowValidationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CreateProposals", false)) { /** * Creates new {@link Proposal} objects. @@ -4457,6 +4815,10 @@ public function __construct($rval = null) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * @@ -5111,6 +5473,7 @@ class ProposalService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BillingError" => "BillingError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -5119,6 +5482,7 @@ class ProposalService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5129,6 +5493,8 @@ class ProposalService extends DfpSoapClient { "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", "OAuth" => "DfpOAuth", + "PackageActionError" => "PackageActionError", + "PackageError" => "PackageError", "PermissionError" => "PermissionError", "PrecisionError" => "PrecisionError", "ProductError" => "ProductError", @@ -5165,12 +5531,14 @@ class ProposalService extends DfpSoapClient { "UpdateResult" => "UpdateResult", "Value" => "Value", "WorkflowActionError" => "WorkflowActionError", + "WorkflowValidationError" => "WorkflowValidationError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BillingCap" => "BillingCap", "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "FeatureError.Reason" => "FeatureErrorReason", @@ -5181,6 +5549,8 @@ class ProposalService extends DfpSoapClient { "LineItemOperationError.Reason" => "LineItemOperationErrorReason", "ProposalApprovalStatus" => "ProposalApprovalStatus", "NotNullError.Reason" => "NotNullErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PrecisionError.Reason" => "PrecisionErrorReason", "PricingModel" => "PricingModel", @@ -5202,6 +5572,7 @@ class ProposalService extends DfpSoapClient { "StringLengthError.Reason" => "StringLengthErrorReason", "TeamError.Reason" => "TeamErrorReason", "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "WorkflowValidationError.Reason" => "WorkflowValidationErrorReason", "createProposals" => "CreateProposals", "createProposalsResponse" => "CreateProposalsResponse", "getProposalsByStatement" => "GetProposalsByStatement", @@ -5253,6 +5624,10 @@ public function createProposals($proposals) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * diff --git a/src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php index c6659b918..0ea9a9db2 100755 --- a/src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php +++ b/src/Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ColumnType", false)) { /** * Contains information about a column in a {@link ResultSet}. @@ -2568,6 +2613,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4118,6 +4196,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "ColumnType" => "ColumnType", "CommonError" => "CommonError", "CreativeError" => "CreativeError", @@ -4171,6 +4250,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeError.Reason" => "CreativeErrorReason", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php index 190698c72..d77f89551 100755 --- a/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php +++ b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationGroupService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1736,6 +1781,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3070,6 +3148,7 @@ class RateCardCustomizationGroupService extends DfpSoapClient { "BooleanValue" => "BooleanValue", "BrowserRateCardFeature" => "BrowserRateCardFeature", "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", "Date" => "Date", @@ -3108,6 +3187,7 @@ class RateCardCustomizationGroupService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "PricingMethod" => "PricingMethod", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php index 944b9ccc6..6d36649a9 100755 --- a/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php +++ b/src/Google/Api/Ads/Dfp/v201403/RateCardCustomizationService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -533,6 +578,45 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1962,6 +2046,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3595,6 +3712,7 @@ class RateCardCustomizationService extends DfpSoapClient { "BooleanValue" => "BooleanValue", "BrowserRateCardFeature" => "BrowserRateCardFeature", "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", "Date" => "Date", @@ -3602,6 +3720,7 @@ class RateCardCustomizationService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateRateCardCustomizations" => "DeactivateRateCardCustomizations", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", "GeographyRateCardFeature" => "GeographyRateCardFeature", @@ -3638,6 +3757,7 @@ class RateCardCustomizationService extends DfpSoapClient { "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/RateCardService.php b/src/Google/Api/Ads/Dfp/v201403/RateCardService.php index c4adc5f66..7569273af 100755 --- a/src/Google/Api/Ads/Dfp/v201403/RateCardService.php +++ b/src/Google/Api/Ads/Dfp/v201403/RateCardService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -533,6 +578,45 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2079,6 +2163,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3511,12 +3628,14 @@ class RateCardService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateRateCards" => "DeactivateRateCards", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", @@ -3552,6 +3671,7 @@ class RateCardService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php index 2c46f89dc..be7fed191 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ReconciliationOrderReportService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1846,6 +1891,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2921,6 +2999,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2956,6 +3035,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php index 3c452f9f0..0119fb575 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportRowService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1881,6 +1926,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2996,6 +3074,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3030,6 +3109,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BillFrom" => "BillFrom", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php index 01fa6c364..21b0eaa38 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ReconciliationReportService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1694,6 +1739,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2744,6 +2822,7 @@ class ReconciliationReportService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2776,6 +2855,7 @@ class ReconciliationReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ReportService.php b/src/Google/Api/Ads/Dfp/v201403/ReportService.php index ef8874da6..9412d3946 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ReportService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1757,6 +1802,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("Column", false)) { /** * {@code Column} provides all the trafficking statistics and revenue @@ -2631,10 +2709,12 @@ public function __construct($rval = null) { if (!class_exists("GetReportJob", false)) { /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. * @package GoogleApiAdsDfp * @subpackage v201403 */ @@ -3125,6 +3205,7 @@ class ReportService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3157,6 +3238,7 @@ class ReportService extends DfpSoapClient { "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "Column" => "Column", "CommonError.Reason" => "CommonErrorReason", "DateRangeType" => "DateRangeType", @@ -3229,10 +3311,12 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt return $result->rval; } /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. */ public function getReportJob($reportJobId) { $args = new GetReportJob($reportJobId); diff --git a/src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php index ed96ff358..223d3e716 100755 --- a/src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php +++ b/src/Google/Api/Ads/Dfp/v201403/SuggestedAdUnitService.php @@ -420,6 +420,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -744,6 +789,51 @@ public function __construct($size = null, $environmentType = null, $companions = } } +if (!class_exists("InventoryUnitSizesError", false)) { + /** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "InventoryUnitSizesError"; + + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("LabelEntityAssociationError", false)) { /** * Errors specific to creating label entity associations. @@ -2029,6 +2119,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2161,6 +2284,39 @@ public function __construct() { } } +if (!class_exists("InventoryUnitSizesErrorReason", false)) { + /** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "InventoryUnitSizesError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** * The reasons for the target error. @@ -3106,6 +3262,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3114,6 +3271,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", @@ -3143,10 +3301,12 @@ class SuggestedAdUnitService extends DfpSoapClient { "AdUnit.TargetWindow" => "AdUnitTargetWindow", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "ParseError.Reason" => "ParseErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/TeamService.php b/src/Google/Api/Ads/Dfp/v201403/TeamService.php index f4bd2dee5..f4b8de069 100755 --- a/src/Google/Api/Ads/Dfp/v201403/TeamService.php +++ b/src/Google/Api/Ads/Dfp/v201403/TeamService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1709,6 +1754,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2781,6 +2859,7 @@ class TeamService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2813,6 +2892,7 @@ class TeamService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/UserService.php b/src/Google/Api/Ads/Dfp/v201403/UserService.php index ccaff29ff..a40a7a434 100755 --- a/src/Google/Api/Ads/Dfp/v201403/UserService.php +++ b/src/Google/Api/Ads/Dfp/v201403/UserService.php @@ -445,6 +445,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2204,6 +2249,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3746,6 +3824,7 @@ class UserService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -3788,6 +3867,7 @@ class UserService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php index aa6da3fcd..4759a521e 100755 --- a/src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201403/UserTeamAssociationService.php @@ -366,6 +366,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1706,6 +1751,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2831,6 +2909,7 @@ class UserTeamAssociationService extends DfpSoapClient { "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2863,6 +2942,7 @@ class UserTeamAssociationService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php index 5266ff682..4e6b14d59 100755 --- a/src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php +++ b/src/Google/Api/Ads/Dfp/v201403/WorkflowRequestService.php @@ -467,6 +467,51 @@ public function __construct($id = null, $workflowRuleName = null, $entityId = nu } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1880,6 +1925,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2994,6 +3072,7 @@ class WorkflowRequestService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "WorkflowRequest" => "WorkflowRequest", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3029,6 +3108,7 @@ class WorkflowRequestService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201405/ActivityGroupService.php index 4fa4cc039..e3a2fee6a 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ActivityGroupService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ActivityGroupService.php @@ -424,6 +424,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1600,6 +1645,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2687,6 +2765,7 @@ class ActivityGroupService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2717,6 +2796,7 @@ class ActivityGroupService extends DfpSoapClient { "ActivityGroup.Status" => "ActivityGroupStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ActivityService.php b/src/Google/Api/Ads/Dfp/v201405/ActivityService.php index 3630baded..eff1772f9 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ActivityService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ActivityService.php @@ -429,6 +429,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1638,6 +1683,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2725,6 +2803,7 @@ class ActivityService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2756,6 +2835,7 @@ class ActivityService extends DfpSoapClient { "ActivityError.Reason" => "ActivityErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201405/AdRuleService.php index 029b43cc4..2d09fac92 100755 --- a/src/Google/Api/Ads/Dfp/v201405/AdRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201405/AdRuleService.php @@ -1059,6 +1059,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4103,6 +4148,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6722,6 +6800,7 @@ class AdRuleService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -6801,6 +6880,7 @@ class AdRuleService extends DfpSoapClient { "AdRuleStatus" => "AdRuleStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php index 35b5f30fd..cf49bfd15 100755 --- a/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php @@ -437,6 +437,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2009,6 +2054,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3987,6 +4065,7 @@ class AudienceSegmentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomCriteria" => "CustomCriteria", "CustomCriteriaSet" => "CustomCriteriaSet", @@ -4033,6 +4112,7 @@ class AudienceSegmentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", diff --git a/src/Google/Api/Ads/Dfp/v201405/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201405/BaseRateService.php index d07e98683..ef9771610 100755 --- a/src/Google/Api/Ads/Dfp/v201405/BaseRateService.php +++ b/src/Google/Api/Ads/Dfp/v201405/BaseRateService.php @@ -413,8 +413,8 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("BaseRate", false)) { /** - * A base rate that applies to a product template or product belonging to rate - * card. + * A base rate that applies to a product template, product or product package + * item belonging to rate card. * @package GoogleApiAdsDfp * @subpackage v201405 */ @@ -597,6 +597,51 @@ public function __construct($results = null, $startIndex = null, $totalResultSet } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -799,6 +844,51 @@ public function __construct($BaseRateActionType = null) { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1997,6 +2087,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2030,6 +2153,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3134,12 +3290,14 @@ class BaseRateService extends DfpSoapClient { "BaseRateError" => "BaseRateError", "BaseRatePage" => "BaseRatePage", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeleteBaseRates" => "DeleteBaseRates", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "Money" => "Money", @@ -3169,7 +3327,9 @@ class BaseRateService extends DfpSoapClient { "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateActionError.Reason" => "BaseRateActionErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/CompanyService.php b/src/Google/Api/Ads/Dfp/v201405/CompanyService.php index 13ab2742a..95cd40cff 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CompanyService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CompanyService.php @@ -389,6 +389,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2041,6 +2086,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3354,6 +3432,7 @@ class CompanyService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "AvailableBillingError" => "AvailableBillingError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "Company" => "Company", @@ -3392,6 +3471,7 @@ class CompanyService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "Company.CreditStatus" => "CompanyCreditStatus", diff --git a/src/Google/Api/Ads/Dfp/v201405/ContactService.php b/src/Google/Api/Ads/Dfp/v201405/ContactService.php index ff72e6a6e..2ec304fc2 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ContactService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ContactService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1576,6 +1621,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2817,6 +2895,7 @@ class ContactService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Contact" => "Contact", "ContactError" => "ContactError", @@ -2849,6 +2928,7 @@ class ContactService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "Contact.Status" => "ContactStatus", "ContactError.Reason" => "ContactErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201405/ContentBundleService.php index 95beba5b0..556bb1f86 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ContentBundleService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ContentBundleService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1707,6 +1752,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2868,6 +2946,7 @@ class ContentBundleService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentBundleAction" => "ContentBundleAction", "ContentBundle" => "ContentBundle", @@ -2902,6 +2981,7 @@ class ContentBundleService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentBundleStatus" => "ContentBundleStatus", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201405/ContentMetadataKeyHierarchyService.php index e5343938c..2560217ef 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ContentMetadataKeyHierarchyService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ContentMetadataKeyHierarchyService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1807,6 +1852,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3042,6 +3120,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyAction" => "ContentMetadataKeyHierarchyAction", "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", @@ -3078,6 +3157,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", "ContentMetadataKeyHierarchyStatus" => "ContentMetadataKeyHierarchyStatus", diff --git a/src/Google/Api/Ads/Dfp/v201405/ContentService.php b/src/Google/Api/Ads/Dfp/v201405/ContentService.php index 9b2dddd6d..d20b41db9 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ContentService.php @@ -348,6 +348,51 @@ public function __construct($id = null, $displayName = null, $cmsContentId = nul } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1703,6 +1748,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2824,6 +2902,7 @@ class ContentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "CmsContent" => "CmsContent", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Content" => "Content", "ContentPage" => "ContentPage", @@ -2856,6 +2935,7 @@ class ContentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentPartnerError.Reason" => "ContentPartnerErrorReason", "ContentStatus" => "ContentStatus", diff --git a/src/Google/Api/Ads/Dfp/v201405/CreativeService.php b/src/Google/Api/Ads/Dfp/v201405/CreativeService.php index aea3a769d..acd35bb23 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CreativeService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CreativeService.php @@ -675,6 +675,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4374,6 +4419,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7823,7 +7901,8 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr if (!class_exists("VideoRedirectCreative", false)) { /** * A {@code Creative} that contains externally hosted video ads and - * is served via VAST 2.0 XML. This creative is read-only. + * is served via VAST 2.0 XML. This creative is read-only in versions + * V201408 and lower. * @package GoogleApiAdsDfp * @subpackage v201405 */ @@ -7985,6 +8064,7 @@ class CreativeService extends DfpSoapClient { "BaseVideoCreative" => "BaseVideoCreative", "BooleanValue" => "BooleanValue", "ClickTrackingCreative" => "ClickTrackingCreative", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", "CreativeAsset" => "CreativeAsset", @@ -8076,6 +8156,7 @@ class CreativeService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ConversionEvent" => "ConversionEvent", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201405/CreativeSetService.php index 9b48949c7..55898564b 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CreativeSetService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CreativeSetService.php @@ -339,6 +339,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2492,6 +2537,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4125,6 +4203,7 @@ class CreativeSetService extends DfpSoapClient { "AssetError" => "AssetError", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -4176,6 +4255,7 @@ class CreativeSetService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php index 0f20722a9..63c5f14fd 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1920,6 +1965,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3309,6 +3387,7 @@ class CreativeTemplateService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", "CreativeTemplate" => "CreativeTemplate", @@ -3351,6 +3430,7 @@ class CreativeTemplateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201405/CreativeWrapperService.php index fdf276a07..c2dc03545 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CreativeWrapperService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CreativeWrapperService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1900,6 +1945,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3245,6 +3323,7 @@ class CreativeWrapperService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperAction" => "CreativeWrapperAction", "CreativeWrapper" => "CreativeWrapper", @@ -3283,6 +3362,7 @@ class CreativeWrapperService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201405/CustomFieldService.php index 8e605f164..a3a2614f0 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CustomFieldService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CustomFieldService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1952,6 +1997,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3518,6 +3596,7 @@ class CustomFieldService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldAction" => "CustomFieldAction", "CustomField" => "CustomField", @@ -3556,6 +3635,7 @@ class CustomFieldService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldDataType" => "CustomFieldDataType", "CustomFieldEntityType" => "CustomFieldEntityType", diff --git a/src/Google/Api/Ads/Dfp/v201405/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201405/CustomTargetingService.php index 214094496..169c85e45 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CustomTargetingService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CustomTargetingService.php @@ -296,8 +296,7 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("CollectionSizeError", false)) { /** - * Errors associated with the size of the given collection being - * out of bounds. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp * @subpackage v201405 */ @@ -1012,6 +1011,90 @@ public function __construct($CustomTargetingValueActionType = null) { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2035,7 +2118,7 @@ public function __construct() { if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp * @subpackage v201405 */ @@ -2199,6 +2282,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3715,6 +3831,8 @@ class CustomTargetingService extends DfpSoapClient { "DateValue" => "DateValue", "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", @@ -3745,6 +3863,7 @@ class CustomTargetingService extends DfpSoapClient { "CustomTargetingError.Reason" => "CustomTargetingErrorReason", "CustomTargetingKey.Type" => "CustomTargetingKeyType", "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201405/ExchangeRateService.php index 30ac20f11..0015d52d9 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ExchangeRateService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ExchangeRateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1596,6 +1641,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2830,6 +2908,7 @@ class ExchangeRateService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2862,6 +2941,7 @@ class ExchangeRateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateDirection" => "ExchangeRateDirection", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ForecastService.php b/src/Google/Api/Ads/Dfp/v201405/ForecastService.php index 4d1f11baa..cdfe6918f 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ForecastService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ForecastService.php @@ -815,6 +815,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2757,6 +2802,96 @@ public function __construct($minTargetAge = null, $maxTargetAge = null, $targetG } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4760,6 +4895,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -6054,6 +6234,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6983,6 +7196,39 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GrpTargetGender", false)) { /** * Represents the target gender for a GRP demographic targeted line item. @@ -7016,6 +7262,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -8063,6 +8342,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -9827,6 +10139,7 @@ class ForecastService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContendingLineItem" => "ContendingLineItem", @@ -9873,6 +10186,8 @@ class ForecastService extends DfpSoapClient { "GeoTargetingError" => "GeoTargetingError", "Goal" => "Goal", "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -9914,6 +10229,7 @@ class ForecastService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -9943,6 +10259,7 @@ class ForecastService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -9971,7 +10288,9 @@ class ForecastService extends DfpSoapClient { "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -10003,6 +10322,7 @@ class ForecastService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/InventoryService.php b/src/Google/Api/Ads/Dfp/v201405/InventoryService.php index fbc0aaee5..d96ef21a4 100755 --- a/src/Google/Api/Ads/Dfp/v201405/InventoryService.php +++ b/src/Google/Api/Ads/Dfp/v201405/InventoryService.php @@ -949,6 +949,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3419,6 +3464,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5514,6 +5592,7 @@ class InventoryService extends DfpSoapClient { "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "CrossSellError" => "CrossSellError", @@ -5574,6 +5653,7 @@ class InventoryService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "CrossSellError.Reason" => "CrossSellErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/LabelService.php b/src/Google/Api/Ads/Dfp/v201405/LabelService.php index 7dee85fe3..b3c4431dc 100755 --- a/src/Google/Api/Ads/Dfp/v201405/LabelService.php +++ b/src/Google/Api/Ads/Dfp/v201405/LabelService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1811,6 +1856,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3149,6 +3227,7 @@ class LabelService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "Date" => "Date", @@ -3186,6 +3265,7 @@ class LabelService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201405/LineItemCreativeAssociationService.php index 2edda05a1..d37a6c2ba 100755 --- a/src/Google/Api/Ads/Dfp/v201405/LineItemCreativeAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201405/LineItemCreativeAssociationService.php @@ -384,6 +384,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3223,6 +3268,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5379,6 +5457,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AudienceExtensionError" => "AudienceExtensionError", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -5444,6 +5523,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AssetError.Reason" => "AssetErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/LineItemService.php b/src/Google/Api/Ads/Dfp/v201405/LineItemService.php index e041fec36..26c54cb8f 100755 --- a/src/Google/Api/Ads/Dfp/v201405/LineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201405/LineItemService.php @@ -815,6 +815,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2595,6 +2640,96 @@ public function __construct($minTargetAge = null, $maxTargetAge = null, $targetG } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4787,6 +4922,51 @@ public function __construct($skipInventoryCheck = null, $LineItemActionType = nu } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -6210,6 +6390,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7139,6 +7352,39 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GrpTargetGender", false)) { /** * Represents the target gender for a GRP demographic targeted line item. @@ -7172,6 +7418,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -8153,6 +8432,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -10186,6 +10498,7 @@ class LineItemService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", @@ -10231,6 +10544,8 @@ class LineItemService extends DfpSoapClient { "GeoTargetingError" => "GeoTargetingError", "Goal" => "Goal", "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -10278,6 +10593,7 @@ class LineItemService extends DfpSoapClient { "ReserveLineItems" => "ReserveLineItems", "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", "ResumeLineItems" => "ResumeLineItems", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -10309,6 +10625,7 @@ class LineItemService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -10337,7 +10654,9 @@ class LineItemService extends DfpSoapClient { "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -10367,6 +10686,7 @@ class LineItemService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201405/LineItemTemplateService.php index 6614723b3..4e31432dd 100755 --- a/src/Google/Api/Ads/Dfp/v201405/LineItemTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201405/LineItemTemplateService.php @@ -385,6 +385,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1225,6 +1270,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -2446,6 +2581,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -3217,6 +3397,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3780,6 +3993,72 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -4617,6 +4896,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -5271,6 +5583,7 @@ class LineItemTemplateService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -5291,6 +5604,8 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargetingError" => "InventoryTargetingError", @@ -5317,6 +5632,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -5336,6 +5652,7 @@ class LineItemTemplateService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -5353,6 +5670,8 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -5378,6 +5697,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/LiveStreamEventService.php b/src/Google/Api/Ads/Dfp/v201405/LiveStreamEventService.php index 946e8685d..99498eda1 100755 --- a/src/Google/Api/Ads/Dfp/v201405/LiveStreamEventService.php +++ b/src/Google/Api/Ads/Dfp/v201405/LiveStreamEventService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1911,6 +1956,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3309,6 +3387,7 @@ class LiveStreamEventService extends DfpSoapClient { "ArchiveLiveStreamEvents" => "ArchiveLiveStreamEvents", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3346,6 +3425,7 @@ class LiveStreamEventService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/NetworkService.php b/src/Google/Api/Ads/Dfp/v201405/NetworkService.php index ad4361b64..ba7af8011 100755 --- a/src/Google/Api/Ads/Dfp/v201405/NetworkService.php +++ b/src/Google/Api/Ads/Dfp/v201405/NetworkService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1500,6 +1545,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2540,6 +2618,7 @@ class NetworkService extends DfpSoapClient { "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", @@ -2566,6 +2645,7 @@ class NetworkService extends DfpSoapClient { "UniqueError" => "UniqueError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/OrderService.php b/src/Google/Api/Ads/Dfp/v201405/OrderService.php index 88c4d4100..dc2573c58 100755 --- a/src/Google/Api/Ads/Dfp/v201405/OrderService.php +++ b/src/Google/Api/Ads/Dfp/v201405/OrderService.php @@ -513,6 +513,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1441,6 +1486,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -3217,6 +3352,51 @@ public function __construct($OrderActionType = null) { } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -4288,6 +4468,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4783,6 +4996,72 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -5685,6 +5964,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -6935,6 +7247,7 @@ class OrderService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -6960,6 +7273,8 @@ class OrderService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidEmailError" => "InvalidEmailError", "InvalidUrlError" => "InvalidUrlError", @@ -6996,6 +7311,7 @@ class OrderService extends DfpSoapClient { "ResumeOrders" => "ResumeOrders", "RetractOrders" => "RetractOrders", "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -7023,6 +7339,7 @@ class OrderService extends DfpSoapClient { "BillingTermsType" => "BillingTermsType", "BuyerPlatform" => "BuyerPlatform", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -7038,6 +7355,8 @@ class OrderService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidEmailError.Reason" => "InvalidEmailErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", @@ -7065,6 +7384,7 @@ class OrderService extends DfpSoapClient { "RequiredNumberError.Reason" => "RequiredNumberErrorReason", "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/PlacementService.php b/src/Google/Api/Ads/Dfp/v201405/PlacementService.php index cc6bf430b..c9dc3b223 100755 --- a/src/Google/Api/Ads/Dfp/v201405/PlacementService.php +++ b/src/Google/Api/Ads/Dfp/v201405/PlacementService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2011,6 +2056,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3593,6 +3671,7 @@ class PlacementService extends DfpSoapClient { "ArchivePlacements" => "ArchivePlacements", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3635,6 +3714,7 @@ class PlacementService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ProductService.php b/src/Google/Api/Ads/Dfp/v201405/ProductService.php index bce439465..79713752a 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ProductService.php @@ -658,6 +658,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3705,6 +3750,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6103,6 +6181,7 @@ class ProductService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativePlaceholder" => "CreativePlaceholder", "CustomCriteria" => "CustomCriteria", @@ -6175,6 +6254,7 @@ class ProductService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201405/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201405/ProductTemplateService.php index d2b60606f..310239ccf 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ProductTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ProductTemplateService.php @@ -658,6 +658,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1308,6 +1353,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -4179,6 +4308,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4411,6 +4573,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -6834,6 +7029,7 @@ class ProductTemplateService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativePlaceholder" => "CreativePlaceholder", "CustomCriteria" => "CustomCriteria", @@ -6856,6 +7052,8 @@ class ProductTemplateService extends DfpSoapClient { "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -6914,6 +7112,7 @@ class ProductTemplateService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", @@ -6921,6 +7120,7 @@ class ProductTemplateService extends DfpSoapClient { "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "CustomTargetingError.Reason" => "CustomTargetingErrorReason", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201405/ProposalLineItemService.php index bad3c16f9..12ded4bb4 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ProposalLineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ProposalLineItemService.php @@ -815,6 +815,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1832,6 +1877,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -5265,6 +5394,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5765,6 +5927,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -8360,6 +8555,7 @@ class ProposalLineItemService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", @@ -8388,6 +8584,8 @@ class ProposalLineItemService extends DfpSoapClient { "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -8461,6 +8659,7 @@ class ProposalLineItemService extends DfpSoapClient { "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "ComputedStatus" => "ComputedStatus", @@ -8476,6 +8675,7 @@ class ProposalLineItemService extends DfpSoapClient { "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "DeliveryTimeZone" => "DeliveryTimeZone", "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ProposalService.php b/src/Google/Api/Ads/Dfp/v201405/ProposalService.php index 2f9cae20a..d9b61bd63 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ProposalService.php @@ -513,6 +513,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -813,6 +858,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1178,6 +1307,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("PackageActionError", false)) { + /** + * Lists all errors for executing actions on {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class PackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "PackageActionError"; + + /** + * @access public + * @var tnsPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("PackageError", false)) { + /** + * Lists all errors associated with {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class PackageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "PackageError"; + + /** + * @access public + * @var tnsPackageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("PermissionError", false)) { /** * Errors related to incorrect permission. @@ -3038,6 +3257,58 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("WorkflowValidationError", false)) { + /** + * Lists all errors associated with workflow validation. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class WorkflowValidationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "WorkflowValidationError"; + + /** + * @access public + * @var tnsWorkflowValidationErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $workflowErrorMessage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $workflowErrorMessage = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->workflowErrorMessage = $workflowErrorMessage; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ApiVersionErrorReason", false)) { /** * Indicates that the operation is not allowed in the version the request @@ -3277,6 +3548,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3343,6 +3647,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3607,6 +3944,72 @@ public function __construct() { } } +if (!class_exists("PackageActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class PackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "PackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageErrorReason", false)) { + /** + * The reasons for the {@link PackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class PackageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "PackageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("PermissionErrorReason", false)) { /** * Describes reasons for permission errors. @@ -4310,6 +4713,39 @@ public function __construct() { } } +if (!class_exists("WorkflowValidationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class WorkflowValidationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "WorkflowValidationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CreateProposals", false)) { /** * Creates new {@link Proposal} objects. @@ -4413,6 +4849,10 @@ public function __construct($rval = null) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * @@ -5067,6 +5507,7 @@ class ProposalService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BillingError" => "BillingError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -5075,6 +5516,8 @@ class ProposalService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5084,6 +5527,8 @@ class ProposalService extends DfpSoapClient { "Money" => "Money", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", + "PackageActionError" => "PackageActionError", + "PackageError" => "PackageError", "PermissionError" => "PermissionError", "PrecisionError" => "PrecisionError", "ProductError" => "ProductError", @@ -5120,6 +5565,7 @@ class ProposalService extends DfpSoapClient { "UpdateResult" => "UpdateResult", "Value" => "Value", "WorkflowActionError" => "WorkflowActionError", + "WorkflowValidationError" => "WorkflowValidationError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "AvailableBillingError.Reason" => "AvailableBillingErrorReason", @@ -5127,8 +5573,10 @@ class ProposalService extends DfpSoapClient { "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -5137,6 +5585,8 @@ class ProposalService extends DfpSoapClient { "LineItemOperationError.Reason" => "LineItemOperationErrorReason", "ProposalApprovalStatus" => "ProposalApprovalStatus", "NotNullError.Reason" => "NotNullErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PrecisionError.Reason" => "PrecisionErrorReason", "PricingModel" => "PricingModel", @@ -5158,6 +5608,7 @@ class ProposalService extends DfpSoapClient { "StringLengthError.Reason" => "StringLengthErrorReason", "TeamError.Reason" => "TeamErrorReason", "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "WorkflowValidationError.Reason" => "WorkflowValidationErrorReason", "createProposals" => "CreateProposals", "createProposalsResponse" => "CreateProposalsResponse", "getProposalsByStatement" => "GetProposalsByStatement", @@ -5209,6 +5660,10 @@ public function createProposals($proposals) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * diff --git a/src/Google/Api/Ads/Dfp/v201405/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201405/PublisherQueryLanguageService.php index 5de98f627..f63b18b44 100755 --- a/src/Google/Api/Ads/Dfp/v201405/PublisherQueryLanguageService.php +++ b/src/Google/Api/Ads/Dfp/v201405/PublisherQueryLanguageService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ColumnType", false)) { /** * Contains information about a column in a {@link ResultSet}. @@ -2445,6 +2490,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3994,6 +4072,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "ColumnType" => "ColumnType", "CommonError" => "CommonError", "CreativeError" => "CreativeError", @@ -4046,6 +4125,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeError.Reason" => "CreativeErrorReason", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationGroupService.php b/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationGroupService.php index 84a6df78d..7052f7d15 100755 --- a/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationGroupService.php +++ b/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationGroupService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1613,6 +1658,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3164,6 +3242,7 @@ class RateCardCustomizationGroupService extends DfpSoapClient { "BooleanValue" => "BooleanValue", "BrowserRateCardFeature" => "BrowserRateCardFeature", "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", "Date" => "Date", @@ -3206,6 +3285,7 @@ class RateCardCustomizationGroupService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "PricingMethod" => "PricingMethod", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationService.php b/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationService.php index 4a2fe5f3a..c54af9a5b 100755 --- a/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationService.php +++ b/src/Google/Api/Ads/Dfp/v201405/RateCardCustomizationService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -461,6 +506,51 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1832,6 +1922,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -1865,6 +1988,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3613,6 +3769,7 @@ class RateCardCustomizationService extends DfpSoapClient { "BooleanValue" => "BooleanValue", "BrowserRateCardFeature" => "BrowserRateCardFeature", "BrowserLanguageRateCardFeature" => "BrowserLanguageRateCardFeature", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomTargetingRateCardFeature" => "CustomTargetingRateCardFeature", "Date" => "Date", @@ -3624,6 +3781,7 @@ class RateCardCustomizationService extends DfpSoapClient { "DeviceCapabilityRateCardFeature" => "DeviceCapabilityRateCardFeature", "DeviceCategoryRateCardFeature" => "DeviceCategoryRateCardFeature", "DeviceManufacturerRateCardFeature" => "DeviceManufacturerRateCardFeature", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCapRateCardFeature" => "FrequencyCapRateCardFeature", "GeographyRateCardFeature" => "GeographyRateCardFeature", @@ -3660,7 +3818,9 @@ class RateCardCustomizationService extends DfpSoapClient { "RateCardCustomizationAdjustmentType" => "RateCardCustomizationAdjustmentType", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/RateCardService.php b/src/Google/Api/Ads/Dfp/v201405/RateCardService.php index 3b49f4825..f06b263e9 100755 --- a/src/Google/Api/Ads/Dfp/v201405/RateCardService.php +++ b/src/Google/Api/Ads/Dfp/v201405/RateCardService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -461,6 +506,90 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1956,6 +2085,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -1989,6 +2151,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3387,12 +3582,15 @@ class RateCardService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateRateCards" => "DeactivateRateCards", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", @@ -3427,7 +3625,9 @@ class RateCardService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201405/ReconciliationOrderReportService.php index afe297caf..eed03263e 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ReconciliationOrderReportService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ReconciliationOrderReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1723,6 +1768,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2797,6 +2875,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2831,6 +2910,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportRowService.php index 10cf6d8f2..b3a6b7f27 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportRowService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportRowService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1758,6 +1803,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2872,6 +2950,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2905,6 +2984,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BillFrom" => "BillFrom", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportService.php index 21b60c779..76079a147 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ReconciliationReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1571,6 +1616,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2620,6 +2698,7 @@ class ReconciliationReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2651,6 +2730,7 @@ class ReconciliationReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ReportService.php b/src/Google/Api/Ads/Dfp/v201405/ReportService.php index d95a15188..8baa10f69 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1634,6 +1679,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("Column", false)) { /** * {@code Column} provides all the trafficking statistics and revenue @@ -2508,10 +2586,12 @@ public function __construct($rval = null) { if (!class_exists("GetReportJob", false)) { /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. * @package GoogleApiAdsDfp * @subpackage v201405 */ @@ -3001,6 +3081,7 @@ class ReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3032,6 +3113,7 @@ class ReportService extends DfpSoapClient { "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "Column" => "Column", "CommonError.Reason" => "CommonErrorReason", "DateRangeType" => "DateRangeType", @@ -3104,10 +3186,12 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt return $result->rval; } /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. */ public function getReportJob($reportJobId) { $args = new GetReportJob($reportJobId); diff --git a/src/Google/Api/Ads/Dfp/v201405/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201405/SuggestedAdUnitService.php index 2cb42b396..b6d99ea28 100755 --- a/src/Google/Api/Ads/Dfp/v201405/SuggestedAdUnitService.php +++ b/src/Google/Api/Ads/Dfp/v201405/SuggestedAdUnitService.php @@ -348,6 +348,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -672,6 +717,51 @@ public function __construct($size = null, $environmentType = null, $companions = } } +if (!class_exists("InventoryUnitSizesError", false)) { + /** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "InventoryUnitSizesError"; + + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("LabelEntityAssociationError", false)) { /** * Errors specific to creating label entity associations. @@ -1906,6 +1996,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2038,6 +2161,39 @@ public function __construct() { } } +if (!class_exists("InventoryUnitSizesErrorReason", false)) { + /** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "InventoryUnitSizesError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** * The reasons for the target error. @@ -2982,6 +3138,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2990,6 +3147,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", @@ -3018,10 +3176,12 @@ class SuggestedAdUnitService extends DfpSoapClient { "AdUnit.TargetWindow" => "AdUnitTargetWindow", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "ParseError.Reason" => "ParseErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/TeamService.php b/src/Google/Api/Ads/Dfp/v201405/TeamService.php index 2ae7436c8..c7f31482b 100755 --- a/src/Google/Api/Ads/Dfp/v201405/TeamService.php +++ b/src/Google/Api/Ads/Dfp/v201405/TeamService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1586,6 +1631,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2657,6 +2735,7 @@ class TeamService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2688,6 +2767,7 @@ class TeamService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/UserService.php b/src/Google/Api/Ads/Dfp/v201405/UserService.php index 5fb82ed8f..9393834a1 100755 --- a/src/Google/Api/Ads/Dfp/v201405/UserService.php +++ b/src/Google/Api/Ads/Dfp/v201405/UserService.php @@ -373,6 +373,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2081,6 +2126,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3622,6 +3700,7 @@ class UserService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -3663,6 +3742,7 @@ class UserService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201405/UserTeamAssociationService.php index d879a2a5e..af8e16dd8 100755 --- a/src/Google/Api/Ads/Dfp/v201405/UserTeamAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201405/UserTeamAssociationService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1583,6 +1628,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2707,6 +2785,7 @@ class UserTeamAssociationService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2738,6 +2817,7 @@ class UserTeamAssociationService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201405/WorkflowRequestService.php index 839bd0efd..e43171171 100755 --- a/src/Google/Api/Ads/Dfp/v201405/WorkflowRequestService.php +++ b/src/Google/Api/Ads/Dfp/v201405/WorkflowRequestService.php @@ -402,6 +402,51 @@ public function __construct($id = null, $workflowRuleName = null, $entityId = nu } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1858,6 +1903,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3142,6 +3220,7 @@ class WorkflowRequestService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "WorkflowRequest" => "WorkflowRequest", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3180,6 +3259,7 @@ class WorkflowRequestService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201408/ActivityGroupService.php index 5028bb33d..12e98bc8e 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ActivityGroupService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ActivityGroupService.php @@ -424,6 +424,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1600,6 +1645,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2687,6 +2765,7 @@ class ActivityGroupService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2717,6 +2796,7 @@ class ActivityGroupService extends DfpSoapClient { "ActivityGroup.Status" => "ActivityGroupStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ActivityService.php b/src/Google/Api/Ads/Dfp/v201408/ActivityService.php index 89427f8d8..88e5ed2f1 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ActivityService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ActivityService.php @@ -429,6 +429,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1638,6 +1683,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2725,6 +2803,7 @@ class ActivityService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2756,6 +2835,7 @@ class ActivityService extends DfpSoapClient { "ActivityError.Reason" => "ActivityErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201408/AdRuleService.php index 906a0718c..6e6fe7dea 100755 --- a/src/Google/Api/Ads/Dfp/v201408/AdRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201408/AdRuleService.php @@ -1059,6 +1059,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4103,6 +4148,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6722,6 +6800,7 @@ class AdRuleService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -6801,6 +6880,7 @@ class AdRuleService extends DfpSoapClient { "AdRuleStatus" => "AdRuleStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php index b101586c4..3ea67c8da 100755 --- a/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php @@ -437,6 +437,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2017,6 +2062,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3997,6 +4075,7 @@ class AudienceSegmentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomCriteria" => "CustomCriteria", "CustomCriteriaSet" => "CustomCriteriaSet", @@ -4043,6 +4122,7 @@ class AudienceSegmentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", diff --git a/src/Google/Api/Ads/Dfp/v201408/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201408/BaseRateService.php index 62c460b4e..76751c994 100755 --- a/src/Google/Api/Ads/Dfp/v201408/BaseRateService.php +++ b/src/Google/Api/Ads/Dfp/v201408/BaseRateService.php @@ -413,8 +413,8 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("BaseRate", false)) { /** - * A base rate that applies to a product template or product belonging to rate - * card. + * A base rate that applies to a product template, product or product package + * item belonging to rate card. * @package GoogleApiAdsDfp * @subpackage v201408 */ @@ -597,6 +597,51 @@ public function __construct($results = null, $startIndex = null, $totalResultSet } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -799,6 +844,51 @@ public function __construct($BaseRateActionType = null) { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1997,6 +2087,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2030,6 +2153,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3134,12 +3290,14 @@ class BaseRateService extends DfpSoapClient { "BaseRateError" => "BaseRateError", "BaseRatePage" => "BaseRatePage", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeleteBaseRates" => "DeleteBaseRates", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "Money" => "Money", @@ -3169,7 +3327,9 @@ class BaseRateService extends DfpSoapClient { "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateActionError.Reason" => "BaseRateActionErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/CompanyService.php b/src/Google/Api/Ads/Dfp/v201408/CompanyService.php index 0a090316d..f51b8bceb 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CompanyService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CompanyService.php @@ -389,6 +389,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2041,6 +2086,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3354,6 +3432,7 @@ class CompanyService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "AvailableBillingError" => "AvailableBillingError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "Company" => "Company", @@ -3392,6 +3471,7 @@ class CompanyService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "Company.CreditStatus" => "CompanyCreditStatus", diff --git a/src/Google/Api/Ads/Dfp/v201408/ContactService.php b/src/Google/Api/Ads/Dfp/v201408/ContactService.php index 82fd2c2e1..fc96ebf05 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ContactService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ContactService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1576,6 +1621,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2817,6 +2895,7 @@ class ContactService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Contact" => "Contact", "ContactError" => "ContactError", @@ -2849,6 +2928,7 @@ class ContactService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "Contact.Status" => "ContactStatus", "ContactError.Reason" => "ContactErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201408/ContentBundleService.php index 3117cd16e..ae76f6ab0 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ContentBundleService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ContentBundleService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1707,6 +1752,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2868,6 +2946,7 @@ class ContentBundleService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentBundleAction" => "ContentBundleAction", "ContentBundle" => "ContentBundle", @@ -2902,6 +2981,7 @@ class ContentBundleService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentBundleStatus" => "ContentBundleStatus", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201408/ContentMetadataKeyHierarchyService.php index 674aff4f2..8d715014c 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ContentMetadataKeyHierarchyService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ContentMetadataKeyHierarchyService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1807,6 +1852,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3042,6 +3120,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyAction" => "ContentMetadataKeyHierarchyAction", "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", @@ -3078,6 +3157,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", "ContentMetadataKeyHierarchyStatus" => "ContentMetadataKeyHierarchyStatus", diff --git a/src/Google/Api/Ads/Dfp/v201408/ContentService.php b/src/Google/Api/Ads/Dfp/v201408/ContentService.php index 4ca1ed4c3..6f106864f 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ContentService.php @@ -348,6 +348,51 @@ public function __construct($id = null, $displayName = null, $cmsContentId = nul } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1703,6 +1748,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2824,6 +2902,7 @@ class ContentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "CmsContent" => "CmsContent", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Content" => "Content", "ContentPage" => "ContentPage", @@ -2856,6 +2935,7 @@ class ContentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentPartnerError.Reason" => "ContentPartnerErrorReason", "ContentStatus" => "ContentStatus", diff --git a/src/Google/Api/Ads/Dfp/v201408/CreativeService.php b/src/Google/Api/Ads/Dfp/v201408/CreativeService.php index 67dcc0576..390ebd498 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CreativeService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CreativeService.php @@ -675,6 +675,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4381,6 +4426,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7830,7 +7908,8 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr if (!class_exists("VideoRedirectCreative", false)) { /** * A {@code Creative} that contains externally hosted video ads and - * is served via VAST 2.0 XML. This creative is read-only. + * is served via VAST 2.0 XML. This creative is read-only in versions + * V201408 and lower. * @package GoogleApiAdsDfp * @subpackage v201408 */ @@ -7992,6 +8071,7 @@ class CreativeService extends DfpSoapClient { "BaseVideoCreative" => "BaseVideoCreative", "BooleanValue" => "BooleanValue", "ClickTrackingCreative" => "ClickTrackingCreative", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", "CreativeAsset" => "CreativeAsset", @@ -8083,6 +8163,7 @@ class CreativeService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ConversionEvent" => "ConversionEvent", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201408/CreativeSetService.php index e6215c16c..cf56a28f2 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CreativeSetService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CreativeSetService.php @@ -339,6 +339,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2492,6 +2537,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4125,6 +4203,7 @@ class CreativeSetService extends DfpSoapClient { "AssetError" => "AssetError", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -4176,6 +4255,7 @@ class CreativeSetService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php index 4ac9b4571..19fc123af 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1927,6 +1972,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3316,6 +3394,7 @@ class CreativeTemplateService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", "CreativeTemplate" => "CreativeTemplate", @@ -3358,6 +3437,7 @@ class CreativeTemplateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201408/CreativeWrapperService.php index e8b8f50e5..1fc7eeaf5 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CreativeWrapperService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CreativeWrapperService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1900,6 +1945,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3245,6 +3323,7 @@ class CreativeWrapperService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperAction" => "CreativeWrapperAction", "CreativeWrapper" => "CreativeWrapper", @@ -3283,6 +3362,7 @@ class CreativeWrapperService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201408/CustomFieldService.php index 5f197b07f..860461743 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CustomFieldService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CustomFieldService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1952,6 +1997,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3518,6 +3596,7 @@ class CustomFieldService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldAction" => "CustomFieldAction", "CustomField" => "CustomField", @@ -3556,6 +3635,7 @@ class CustomFieldService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldDataType" => "CustomFieldDataType", "CustomFieldEntityType" => "CustomFieldEntityType", diff --git a/src/Google/Api/Ads/Dfp/v201408/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201408/CustomTargetingService.php index 2b5f33211..6a41325b9 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CustomTargetingService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CustomTargetingService.php @@ -296,8 +296,7 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("CollectionSizeError", false)) { /** - * Errors associated with the size of the given collection being - * out of bounds. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp * @subpackage v201408 */ @@ -1012,6 +1011,90 @@ public function __construct($CustomTargetingValueActionType = null) { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2035,7 +2118,7 @@ public function __construct() { if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp * @subpackage v201408 */ @@ -2199,6 +2282,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3715,6 +3831,8 @@ class CustomTargetingService extends DfpSoapClient { "DateValue" => "DateValue", "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", @@ -3745,6 +3863,7 @@ class CustomTargetingService extends DfpSoapClient { "CustomTargetingError.Reason" => "CustomTargetingErrorReason", "CustomTargetingKey.Type" => "CustomTargetingKeyType", "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201408/ExchangeRateService.php index aec80eb22..441d4a8a2 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ExchangeRateService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ExchangeRateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1596,6 +1641,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2830,6 +2908,7 @@ class ExchangeRateService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2862,6 +2941,7 @@ class ExchangeRateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateDirection" => "ExchangeRateDirection", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ForecastService.php b/src/Google/Api/Ads/Dfp/v201408/ForecastService.php index fe30816c8..d214dd45f 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ForecastService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ForecastService.php @@ -815,6 +815,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2764,6 +2809,96 @@ public function __construct($minTargetAge = null, $maxTargetAge = null, $targetG } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4767,6 +4902,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -6061,6 +6241,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7023,6 +7236,39 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GrpTargetGender", false)) { /** * Represents the target gender for a GRP demographic targeted line item. @@ -7056,6 +7302,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -8103,6 +8382,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -9867,6 +10179,7 @@ class ForecastService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContendingLineItem" => "ContendingLineItem", @@ -9913,6 +10226,8 @@ class ForecastService extends DfpSoapClient { "GeoTargetingError" => "GeoTargetingError", "Goal" => "Goal", "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -9954,6 +10269,7 @@ class ForecastService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -9983,6 +10299,7 @@ class ForecastService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -10012,7 +10329,9 @@ class ForecastService extends DfpSoapClient { "GeoTargetingError.Reason" => "GeoTargetingErrorReason", "GoalType" => "GoalType", "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -10044,6 +10363,7 @@ class ForecastService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/InventoryService.php b/src/Google/Api/Ads/Dfp/v201408/InventoryService.php index 51e74a32d..c63b436c5 100755 --- a/src/Google/Api/Ads/Dfp/v201408/InventoryService.php +++ b/src/Google/Api/Ads/Dfp/v201408/InventoryService.php @@ -949,6 +949,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3419,6 +3464,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5514,6 +5592,7 @@ class InventoryService extends DfpSoapClient { "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "CrossSellError" => "CrossSellError", @@ -5574,6 +5653,7 @@ class InventoryService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "CrossSellError.Reason" => "CrossSellErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/LabelService.php b/src/Google/Api/Ads/Dfp/v201408/LabelService.php index 93be42fae..a19ca786e 100755 --- a/src/Google/Api/Ads/Dfp/v201408/LabelService.php +++ b/src/Google/Api/Ads/Dfp/v201408/LabelService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1811,6 +1856,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3149,6 +3227,7 @@ class LabelService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "Date" => "Date", @@ -3186,6 +3265,7 @@ class LabelService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201408/LineItemCreativeAssociationService.php index e78c3f145..e7ebb679e 100755 --- a/src/Google/Api/Ads/Dfp/v201408/LineItemCreativeAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201408/LineItemCreativeAssociationService.php @@ -384,6 +384,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3223,6 +3268,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5379,6 +5457,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AudienceExtensionError" => "AudienceExtensionError", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -5444,6 +5523,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AssetError.Reason" => "AssetErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/LineItemService.php b/src/Google/Api/Ads/Dfp/v201408/LineItemService.php index f6cf55be7..80fc85f5f 100755 --- a/src/Google/Api/Ads/Dfp/v201408/LineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201408/LineItemService.php @@ -815,6 +815,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2602,6 +2647,96 @@ public function __construct($minTargetAge = null, $maxTargetAge = null, $targetG } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4794,6 +4929,51 @@ public function __construct($skipInventoryCheck = null, $LineItemActionType = nu } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -6217,6 +6397,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7179,6 +7392,39 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GrpTargetGender", false)) { /** * Represents the target gender for a GRP demographic targeted line item. @@ -7212,6 +7458,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -8193,6 +8472,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -10226,6 +10538,7 @@ class LineItemService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", @@ -10271,6 +10584,8 @@ class LineItemService extends DfpSoapClient { "GeoTargetingError" => "GeoTargetingError", "Goal" => "Goal", "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -10318,6 +10633,7 @@ class LineItemService extends DfpSoapClient { "ReserveLineItems" => "ReserveLineItems", "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", "ResumeLineItems" => "ResumeLineItems", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -10349,6 +10665,7 @@ class LineItemService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -10378,7 +10695,9 @@ class LineItemService extends DfpSoapClient { "GeoTargetingError.Reason" => "GeoTargetingErrorReason", "GoalType" => "GoalType", "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -10408,6 +10727,7 @@ class LineItemService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201408/LineItemTemplateService.php index 45c5eccd3..997b1ec4e 100755 --- a/src/Google/Api/Ads/Dfp/v201408/LineItemTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201408/LineItemTemplateService.php @@ -385,6 +385,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1225,6 +1270,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -2446,6 +2581,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -3217,6 +3397,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3780,6 +3993,72 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -4617,6 +4896,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -5271,6 +5583,7 @@ class LineItemTemplateService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -5291,6 +5604,8 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargetingError" => "InventoryTargetingError", @@ -5317,6 +5632,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -5336,6 +5652,7 @@ class LineItemTemplateService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -5353,6 +5670,8 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -5378,6 +5697,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/LiveStreamEventService.php b/src/Google/Api/Ads/Dfp/v201408/LiveStreamEventService.php index a94abdfb2..c6608c49d 100755 --- a/src/Google/Api/Ads/Dfp/v201408/LiveStreamEventService.php +++ b/src/Google/Api/Ads/Dfp/v201408/LiveStreamEventService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1946,6 +1991,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3344,6 +3422,7 @@ class LiveStreamEventService extends DfpSoapClient { "ArchiveLiveStreamEvents" => "ArchiveLiveStreamEvents", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3382,6 +3461,7 @@ class LiveStreamEventService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/NetworkService.php b/src/Google/Api/Ads/Dfp/v201408/NetworkService.php index e56d86711..2a66eb161 100755 --- a/src/Google/Api/Ads/Dfp/v201408/NetworkService.php +++ b/src/Google/Api/Ads/Dfp/v201408/NetworkService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1500,6 +1545,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2540,6 +2618,7 @@ class NetworkService extends DfpSoapClient { "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", @@ -2566,6 +2645,7 @@ class NetworkService extends DfpSoapClient { "UniqueError" => "UniqueError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/OrderService.php b/src/Google/Api/Ads/Dfp/v201408/OrderService.php index c87074584..0784626c4 100755 --- a/src/Google/Api/Ads/Dfp/v201408/OrderService.php +++ b/src/Google/Api/Ads/Dfp/v201408/OrderService.php @@ -513,6 +513,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1441,6 +1486,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -3217,6 +3352,51 @@ public function __construct($OrderActionType = null) { } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -4288,6 +4468,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4783,6 +4996,72 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -5685,6 +5964,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -6935,6 +7247,7 @@ class OrderService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -6960,6 +7273,8 @@ class OrderService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidEmailError" => "InvalidEmailError", "InvalidUrlError" => "InvalidUrlError", @@ -6996,6 +7311,7 @@ class OrderService extends DfpSoapClient { "ResumeOrders" => "ResumeOrders", "RetractOrders" => "RetractOrders", "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -7023,6 +7339,7 @@ class OrderService extends DfpSoapClient { "BillingTermsType" => "BillingTermsType", "BuyerPlatform" => "BuyerPlatform", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -7038,6 +7355,8 @@ class OrderService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidEmailError.Reason" => "InvalidEmailErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", @@ -7065,6 +7384,7 @@ class OrderService extends DfpSoapClient { "RequiredNumberError.Reason" => "RequiredNumberErrorReason", "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/PlacementService.php b/src/Google/Api/Ads/Dfp/v201408/PlacementService.php index 0d8885502..99c4ca893 100755 --- a/src/Google/Api/Ads/Dfp/v201408/PlacementService.php +++ b/src/Google/Api/Ads/Dfp/v201408/PlacementService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2011,6 +2056,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3593,6 +3671,7 @@ class PlacementService extends DfpSoapClient { "ArchivePlacements" => "ArchivePlacements", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3635,6 +3714,7 @@ class PlacementService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/PremiumRateService.php b/src/Google/Api/Ads/Dfp/v201408/PremiumRateService.php index 9de71cadc..0668508b4 100755 --- a/src/Google/Api/Ads/Dfp/v201408/PremiumRateService.php +++ b/src/Google/Api/Ads/Dfp/v201408/PremiumRateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -461,6 +506,51 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1747,6 +1837,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -1780,6 +1903,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3465,6 +3621,7 @@ class PremiumRateService extends DfpSoapClient { "BooleanValue" => "BooleanValue", "BrowserPremiumFeature" => "BrowserPremiumFeature", "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomTargetingPremiumFeature" => "CustomTargetingPremiumFeature", "Date" => "Date", @@ -3475,6 +3632,7 @@ class PremiumRateService extends DfpSoapClient { "DeviceCapabilityPremiumFeature" => "DeviceCapabilityPremiumFeature", "DeviceCategoryPremiumFeature" => "DeviceCategoryPremiumFeature", "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCapPremiumFeature" => "FrequencyCapPremiumFeature", "GeographyPremiumFeature" => "GeographyPremiumFeature", @@ -3509,7 +3667,9 @@ class PremiumRateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ProductService.php b/src/Google/Api/Ads/Dfp/v201408/ProductService.php index 2ff95c13d..9a050b801 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ProductService.php @@ -658,6 +658,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3705,6 +3750,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6103,6 +6181,7 @@ class ProductService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativePlaceholder" => "CreativePlaceholder", "CustomCriteria" => "CustomCriteria", @@ -6175,6 +6254,7 @@ class ProductService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201408/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201408/ProductTemplateService.php index 411995c60..1ad6b4805 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ProductTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ProductTemplateService.php @@ -658,6 +658,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1308,6 +1353,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -4179,6 +4308,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4411,6 +4573,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -6834,6 +7029,7 @@ class ProductTemplateService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativePlaceholder" => "CreativePlaceholder", "CustomCriteria" => "CustomCriteria", @@ -6856,6 +7052,8 @@ class ProductTemplateService extends DfpSoapClient { "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -6914,6 +7112,7 @@ class ProductTemplateService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", @@ -6921,6 +7120,7 @@ class ProductTemplateService extends DfpSoapClient { "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "CustomTargetingError.Reason" => "CustomTargetingErrorReason", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201408/ProposalLineItemService.php index 111994954..0c79fa95e 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ProposalLineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ProposalLineItemService.php @@ -815,6 +815,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1832,6 +1877,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -5579,6 +5708,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6079,6 +6241,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -9328,6 +9523,7 @@ class ProposalLineItemService extends DfpSoapClient { "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", @@ -9361,6 +9557,8 @@ class ProposalLineItemService extends DfpSoapClient { "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -9445,6 +9643,7 @@ class ProposalLineItemService extends DfpSoapClient { "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "ComputedStatus" => "ComputedStatus", @@ -9460,6 +9659,7 @@ class ProposalLineItemService extends DfpSoapClient { "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "DeliveryTimeZone" => "DeliveryTimeZone", "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ProposalService.php b/src/Google/Api/Ads/Dfp/v201408/ProposalService.php index 9f108b0b7..f4ae16913 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ProposalService.php @@ -513,6 +513,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -813,6 +858,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1178,6 +1307,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("PackageActionError", false)) { + /** + * Lists all errors for executing actions on {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class PackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "PackageActionError"; + + /** + * @access public + * @var tnsPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("PackageError", false)) { + /** + * Lists all errors associated with {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class PackageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "PackageError"; + + /** + * @access public + * @var tnsPackageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("PermissionError", false)) { /** * Errors related to incorrect permission. @@ -3045,6 +3264,58 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("WorkflowValidationError", false)) { + /** + * Lists all errors associated with workflow validation. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class WorkflowValidationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "WorkflowValidationError"; + + /** + * @access public + * @var tnsWorkflowValidationErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $workflowErrorMessage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $workflowErrorMessage = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->workflowErrorMessage = $workflowErrorMessage; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ApiVersionErrorReason", false)) { /** * Indicates that the operation is not allowed in the version the request @@ -3317,6 +3588,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3383,6 +3687,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3647,6 +3984,72 @@ public function __construct() { } } +if (!class_exists("PackageActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class PackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "PackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageErrorReason", false)) { + /** + * The reasons for the {@link PackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class PackageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "PackageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("PermissionErrorReason", false)) { /** * Describes reasons for permission errors. @@ -4350,6 +4753,39 @@ public function __construct() { } } +if (!class_exists("WorkflowValidationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class WorkflowValidationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "WorkflowValidationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CreateProposals", false)) { /** * Creates new {@link Proposal} objects. @@ -4453,6 +4889,10 @@ public function __construct($rval = null) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * @@ -5107,6 +5547,7 @@ class ProposalService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BillingError" => "BillingError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -5115,6 +5556,8 @@ class ProposalService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5124,6 +5567,8 @@ class ProposalService extends DfpSoapClient { "Money" => "Money", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", + "PackageActionError" => "PackageActionError", + "PackageError" => "PackageError", "PermissionError" => "PermissionError", "PrecisionError" => "PrecisionError", "ProductError" => "ProductError", @@ -5160,6 +5605,7 @@ class ProposalService extends DfpSoapClient { "UpdateResult" => "UpdateResult", "Value" => "Value", "WorkflowActionError" => "WorkflowActionError", + "WorkflowValidationError" => "WorkflowValidationError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "AvailableBillingError.Reason" => "AvailableBillingErrorReason", @@ -5168,8 +5614,10 @@ class ProposalService extends DfpSoapClient { "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -5178,6 +5626,8 @@ class ProposalService extends DfpSoapClient { "LineItemOperationError.Reason" => "LineItemOperationErrorReason", "ProposalApprovalStatus" => "ProposalApprovalStatus", "NotNullError.Reason" => "NotNullErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PrecisionError.Reason" => "PrecisionErrorReason", "PricingModel" => "PricingModel", @@ -5199,6 +5649,7 @@ class ProposalService extends DfpSoapClient { "StringLengthError.Reason" => "StringLengthErrorReason", "TeamError.Reason" => "TeamErrorReason", "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "WorkflowValidationError.Reason" => "WorkflowValidationErrorReason", "createProposals" => "CreateProposals", "createProposalsResponse" => "CreateProposalsResponse", "getProposalsByStatement" => "GetProposalsByStatement", @@ -5250,6 +5701,10 @@ public function createProposals($proposals) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * diff --git a/src/Google/Api/Ads/Dfp/v201408/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201408/PublisherQueryLanguageService.php index b7f17c37b..e8e778873 100755 --- a/src/Google/Api/Ads/Dfp/v201408/PublisherQueryLanguageService.php +++ b/src/Google/Api/Ads/Dfp/v201408/PublisherQueryLanguageService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ColumnType", false)) { /** * Contains information about a column in a {@link ResultSet}. @@ -2445,6 +2490,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3994,6 +4072,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "ColumnType" => "ColumnType", "CommonError" => "CommonError", "CreativeError" => "CreativeError", @@ -4046,6 +4125,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeError.Reason" => "CreativeErrorReason", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/RateCardService.php b/src/Google/Api/Ads/Dfp/v201408/RateCardService.php index 272f4b7f3..46c773fbf 100755 --- a/src/Google/Api/Ads/Dfp/v201408/RateCardService.php +++ b/src/Google/Api/Ads/Dfp/v201408/RateCardService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -461,6 +506,90 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1956,6 +2085,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -1989,6 +2151,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3387,12 +3582,15 @@ class RateCardService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateRateCards" => "DeactivateRateCards", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", @@ -3427,7 +3625,9 @@ class RateCardService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201408/ReconciliationOrderReportService.php index 6ca9916d0..f1deb239d 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ReconciliationOrderReportService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ReconciliationOrderReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1730,6 +1775,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2804,6 +2882,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2838,6 +2917,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportRowService.php index 9d404fd27..ada5663f3 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportRowService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportRowService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1772,6 +1817,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2886,6 +2964,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2919,6 +2998,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BillFrom" => "BillFrom", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportService.php index 8857433db..0fcc7c5cf 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ReconciliationReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1571,6 +1616,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2620,6 +2698,7 @@ class ReconciliationReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2651,6 +2730,7 @@ class ReconciliationReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ReportService.php b/src/Google/Api/Ads/Dfp/v201408/ReportService.php index 019e77537..34ca68185 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1634,6 +1679,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("Column", false)) { /** * {@code Column} provides all the trafficking statistics and revenue @@ -2508,10 +2586,12 @@ public function __construct($rval = null) { if (!class_exists("GetReportJob", false)) { /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. * @package GoogleApiAdsDfp * @subpackage v201408 */ @@ -3001,6 +3081,7 @@ class ReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3032,6 +3113,7 @@ class ReportService extends DfpSoapClient { "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "Column" => "Column", "CommonError.Reason" => "CommonErrorReason", "DateRangeType" => "DateRangeType", @@ -3104,10 +3186,12 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt return $result->rval; } /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. */ public function getReportJob($reportJobId) { $args = new GetReportJob($reportJobId); diff --git a/src/Google/Api/Ads/Dfp/v201408/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201408/SuggestedAdUnitService.php index 303bd495d..7fcfd046f 100755 --- a/src/Google/Api/Ads/Dfp/v201408/SuggestedAdUnitService.php +++ b/src/Google/Api/Ads/Dfp/v201408/SuggestedAdUnitService.php @@ -348,6 +348,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -672,6 +717,51 @@ public function __construct($size = null, $environmentType = null, $companions = } } +if (!class_exists("InventoryUnitSizesError", false)) { + /** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "InventoryUnitSizesError"; + + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("LabelEntityAssociationError", false)) { /** * Errors specific to creating label entity associations. @@ -1906,6 +1996,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2038,6 +2161,39 @@ public function __construct() { } } +if (!class_exists("InventoryUnitSizesErrorReason", false)) { + /** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "InventoryUnitSizesError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** * The reasons for the target error. @@ -2982,6 +3138,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2990,6 +3147,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", @@ -3018,10 +3176,12 @@ class SuggestedAdUnitService extends DfpSoapClient { "AdUnit.TargetWindow" => "AdUnitTargetWindow", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "ParseError.Reason" => "ParseErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/TeamService.php b/src/Google/Api/Ads/Dfp/v201408/TeamService.php index d6b2a5814..2b4526152 100755 --- a/src/Google/Api/Ads/Dfp/v201408/TeamService.php +++ b/src/Google/Api/Ads/Dfp/v201408/TeamService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1586,6 +1631,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2657,6 +2735,7 @@ class TeamService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2688,6 +2767,7 @@ class TeamService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/UserService.php b/src/Google/Api/Ads/Dfp/v201408/UserService.php index d208e0759..c7df7e1ac 100755 --- a/src/Google/Api/Ads/Dfp/v201408/UserService.php +++ b/src/Google/Api/Ads/Dfp/v201408/UserService.php @@ -373,6 +373,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2081,6 +2126,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3622,6 +3700,7 @@ class UserService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -3663,6 +3742,7 @@ class UserService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201408/UserTeamAssociationService.php index eef2fa975..493c1a486 100755 --- a/src/Google/Api/Ads/Dfp/v201408/UserTeamAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201408/UserTeamAssociationService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1583,6 +1628,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2707,6 +2785,7 @@ class UserTeamAssociationService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2738,6 +2817,7 @@ class UserTeamAssociationService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201408/WorkflowRequestService.php index 165d2462e..6a105d414 100755 --- a/src/Google/Api/Ads/Dfp/v201408/WorkflowRequestService.php +++ b/src/Google/Api/Ads/Dfp/v201408/WorkflowRequestService.php @@ -402,6 +402,51 @@ public function __construct($id = null, $workflowRuleName = null, $entityId = nu } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1858,6 +1903,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3142,6 +3220,7 @@ class WorkflowRequestService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "WorkflowRequest" => "WorkflowRequest", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3180,6 +3259,7 @@ class WorkflowRequestService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201411/ActivityGroupService.php index 3065b1302..b922d82b2 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ActivityGroupService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ActivityGroupService.php @@ -424,6 +424,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1600,6 +1645,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2730,6 +2808,7 @@ class ActivityGroupService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2760,6 +2839,7 @@ class ActivityGroupService extends DfpSoapClient { "ActivityGroup.Status" => "ActivityGroupStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ActivityService.php b/src/Google/Api/Ads/Dfp/v201411/ActivityService.php index 79f00aea5..d9d2edd70 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ActivityService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ActivityService.php @@ -429,6 +429,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1638,6 +1683,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2768,6 +2846,7 @@ class ActivityService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2799,6 +2878,7 @@ class ActivityService extends DfpSoapClient { "ActivityError.Reason" => "ActivityErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php b/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php index 902db74c1..0422601b1 100755 --- a/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php @@ -557,6 +557,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1863,6 +1908,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3117,6 +3195,7 @@ class AdExclusionRuleService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3150,6 +3229,7 @@ class AdExclusionRuleService extends DfpSoapClient { "AdExclusionRuleType" => "AdExclusionRuleType", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201411/AdRuleService.php index 6158f7fc9..2be6b1d15 100755 --- a/src/Google/Api/Ads/Dfp/v201411/AdRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201411/AdRuleService.php @@ -1059,6 +1059,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4103,6 +4148,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6765,6 +6843,7 @@ class AdRuleService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -6844,6 +6923,7 @@ class AdRuleService extends DfpSoapClient { "AdRuleStatus" => "AdRuleStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php index 5a5bebd66..7bff032a5 100755 --- a/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php @@ -437,6 +437,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2017,6 +2062,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4040,6 +4118,7 @@ class AudienceSegmentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomCriteria" => "CustomCriteria", "CustomCriteriaSet" => "CustomCriteriaSet", @@ -4086,6 +4165,7 @@ class AudienceSegmentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", diff --git a/src/Google/Api/Ads/Dfp/v201411/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201411/BaseRateService.php index 7db54731a..f2153f6b7 100755 --- a/src/Google/Api/Ads/Dfp/v201411/BaseRateService.php +++ b/src/Google/Api/Ads/Dfp/v201411/BaseRateService.php @@ -413,8 +413,8 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("BaseRate", false)) { /** - * A base rate that applies to a product template or product belonging to rate - * card. + * A base rate that applies to a product template, product or product package + * item belonging to rate card. * @package GoogleApiAdsDfp * @subpackage v201411 */ @@ -597,6 +597,51 @@ public function __construct($results = null, $startIndex = null, $totalResultSet } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -799,6 +844,51 @@ public function __construct($BaseRateActionType = null) { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1997,6 +2087,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2030,6 +2153,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3177,12 +3333,14 @@ class BaseRateService extends DfpSoapClient { "BaseRateError" => "BaseRateError", "BaseRatePage" => "BaseRatePage", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeleteBaseRates" => "DeleteBaseRates", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "Money" => "Money", @@ -3212,7 +3370,9 @@ class BaseRateService extends DfpSoapClient { "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateActionError.Reason" => "BaseRateActionErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/CompanyService.php b/src/Google/Api/Ads/Dfp/v201411/CompanyService.php index 0e5896bac..65edffb36 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CompanyService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CompanyService.php @@ -389,6 +389,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2041,6 +2086,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3397,6 +3475,7 @@ class CompanyService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "AvailableBillingError" => "AvailableBillingError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "Company" => "Company", @@ -3435,6 +3514,7 @@ class CompanyService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "Company.CreditStatus" => "CompanyCreditStatus", diff --git a/src/Google/Api/Ads/Dfp/v201411/ContactService.php b/src/Google/Api/Ads/Dfp/v201411/ContactService.php index 4b90720b4..cebbbde2d 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ContactService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ContactService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1576,6 +1621,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2860,6 +2938,7 @@ class ContactService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Contact" => "Contact", "ContactError" => "ContactError", @@ -2892,6 +2971,7 @@ class ContactService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "Contact.Status" => "ContactStatus", "ContactError.Reason" => "ContactErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201411/ContentBundleService.php index d9b8f382a..7dce55e1b 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ContentBundleService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ContentBundleService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1707,6 +1752,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2911,6 +2989,7 @@ class ContentBundleService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentBundleAction" => "ContentBundleAction", "ContentBundle" => "ContentBundle", @@ -2945,6 +3024,7 @@ class ContentBundleService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentBundleStatus" => "ContentBundleStatus", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201411/ContentMetadataKeyHierarchyService.php index 0bf21e2dc..3fc7ca843 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ContentMetadataKeyHierarchyService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ContentMetadataKeyHierarchyService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1807,6 +1852,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3085,6 +3163,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyAction" => "ContentMetadataKeyHierarchyAction", "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", @@ -3121,6 +3200,7 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", "ContentMetadataKeyHierarchyStatus" => "ContentMetadataKeyHierarchyStatus", diff --git a/src/Google/Api/Ads/Dfp/v201411/ContentService.php b/src/Google/Api/Ads/Dfp/v201411/ContentService.php index fcb6f46e6..a17b3c93a 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ContentService.php @@ -348,6 +348,51 @@ public function __construct($id = null, $displayName = null, $cmsContentId = nul } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1703,6 +1748,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2867,6 +2945,7 @@ class ContentService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "CmsContent" => "CmsContent", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Content" => "Content", "ContentPage" => "ContentPage", @@ -2899,6 +2978,7 @@ class ContentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentPartnerError.Reason" => "ContentPartnerErrorReason", "ContentStatus" => "ContentStatus", diff --git a/src/Google/Api/Ads/Dfp/v201411/CreativeService.php b/src/Google/Api/Ads/Dfp/v201411/CreativeService.php index f32fa0d65..e3ddb0c45 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CreativeService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CreativeService.php @@ -675,6 +675,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4577,6 +4622,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -8357,7 +8435,8 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr if (!class_exists("VideoRedirectCreative", false)) { /** * A {@code Creative} that contains externally hosted video ads and - * is served via VAST 2.0 XML. This creative is read-only. + * is served via VAST 2.0 XML. This creative is read-only in versions + * V201408 and lower. * @package GoogleApiAdsDfp * @subpackage v201411 */ @@ -8522,6 +8601,7 @@ class CreativeService extends DfpSoapClient { "BaseVideoCreative" => "BaseVideoCreative", "BooleanValue" => "BooleanValue", "ClickTrackingCreative" => "ClickTrackingCreative", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", "CreativeAsset" => "CreativeAsset", @@ -8614,6 +8694,7 @@ class CreativeService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ConversionEvent" => "ConversionEvent", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201411/CreativeSetService.php index a93651eba..4e00b6067 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CreativeSetService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CreativeSetService.php @@ -339,6 +339,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2492,6 +2537,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4168,6 +4246,7 @@ class CreativeSetService extends DfpSoapClient { "AssetError" => "AssetError", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -4219,6 +4298,7 @@ class CreativeSetService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php index bde563ce2..59cd05ce2 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1927,6 +1972,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3359,6 +3437,7 @@ class CreativeTemplateService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", "CreativeTemplate" => "CreativeTemplate", @@ -3401,6 +3480,7 @@ class CreativeTemplateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201411/CreativeWrapperService.php index f4ca5252a..3862e1633 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CreativeWrapperService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CreativeWrapperService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1900,6 +1945,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3288,6 +3366,7 @@ class CreativeWrapperService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperAction" => "CreativeWrapperAction", "CreativeWrapper" => "CreativeWrapper", @@ -3326,6 +3405,7 @@ class CreativeWrapperService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201411/CustomFieldService.php index 0f7105b14..005e1dcce 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CustomFieldService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CustomFieldService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1952,6 +1997,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3561,6 +3639,7 @@ class CustomFieldService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldAction" => "CustomFieldAction", "CustomField" => "CustomField", @@ -3599,6 +3678,7 @@ class CustomFieldService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldDataType" => "CustomFieldDataType", "CustomFieldEntityType" => "CustomFieldEntityType", diff --git a/src/Google/Api/Ads/Dfp/v201411/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201411/CustomTargetingService.php index 2601184a8..085f3549c 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CustomTargetingService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CustomTargetingService.php @@ -296,8 +296,7 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("CollectionSizeError", false)) { /** - * Errors associated with the size of the given collection being - * out of bounds. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp * @subpackage v201411 */ @@ -1026,6 +1025,90 @@ public function __construct($CustomTargetingValueActionType = null) { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2049,7 +2132,7 @@ public function __construct() { if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp * @subpackage v201411 */ @@ -2279,6 +2362,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3912,6 +4028,8 @@ class CustomTargetingService extends DfpSoapClient { "DateValue" => "DateValue", "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", @@ -3944,6 +4062,7 @@ class CustomTargetingService extends DfpSoapClient { "CustomTargetingKey.Type" => "CustomTargetingKeyType", "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", "CustomTargetingValue.Status" => "CustomTargetingValueStatus", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201411/ExchangeRateService.php index 90081646c..11135889f 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ExchangeRateService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ExchangeRateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1596,6 +1641,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2873,6 +2951,7 @@ class ExchangeRateService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2905,6 +2984,7 @@ class ExchangeRateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateDirection" => "ExchangeRateDirection", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ForecastService.php b/src/Google/Api/Ads/Dfp/v201411/ForecastService.php index cab50d1f2..3200c4a5b 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ForecastService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ForecastService.php @@ -815,6 +815,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2764,6 +2809,96 @@ public function __construct($minTargetAge = null, $maxTargetAge = null, $targetG } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4888,6 +5023,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -6182,6 +6362,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7144,6 +7357,39 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GrpTargetGender", false)) { /** * Represents the target gender for a GRP demographic targeted line item. @@ -7177,6 +7423,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -8257,6 +8536,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -10067,6 +10379,7 @@ class ForecastService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContendingLineItem" => "ContendingLineItem", @@ -10113,6 +10426,8 @@ class ForecastService extends DfpSoapClient { "GeoTargetingError" => "GeoTargetingError", "Goal" => "Goal", "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -10156,6 +10471,7 @@ class ForecastService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -10185,6 +10501,7 @@ class ForecastService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -10214,7 +10531,9 @@ class ForecastService extends DfpSoapClient { "GeoTargetingError.Reason" => "GeoTargetingErrorReason", "GoalType" => "GoalType", "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -10247,6 +10566,7 @@ class ForecastService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/InventoryService.php b/src/Google/Api/Ads/Dfp/v201411/InventoryService.php index 60874878f..1a4606ebb 100755 --- a/src/Google/Api/Ads/Dfp/v201411/InventoryService.php +++ b/src/Google/Api/Ads/Dfp/v201411/InventoryService.php @@ -970,6 +970,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3526,6 +3571,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5697,6 +5775,7 @@ class InventoryService extends DfpSoapClient { "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "CrossSellError" => "CrossSellError", @@ -5759,6 +5838,7 @@ class InventoryService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "CrossSellError.Reason" => "CrossSellErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/LabelService.php b/src/Google/Api/Ads/Dfp/v201411/LabelService.php index e329ae38a..4323f00b1 100755 --- a/src/Google/Api/Ads/Dfp/v201411/LabelService.php +++ b/src/Google/Api/Ads/Dfp/v201411/LabelService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1811,6 +1856,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3192,6 +3270,7 @@ class LabelService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "Date" => "Date", @@ -3229,6 +3308,7 @@ class LabelService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201411/LineItemCreativeAssociationService.php index 97037e404..546587ccd 100755 --- a/src/Google/Api/Ads/Dfp/v201411/LineItemCreativeAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201411/LineItemCreativeAssociationService.php @@ -384,6 +384,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -3223,6 +3268,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -5422,6 +5500,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AudienceExtensionError" => "AudienceExtensionError", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -5487,6 +5566,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AssetError.Reason" => "AssetErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/LineItemService.php b/src/Google/Api/Ads/Dfp/v201411/LineItemService.php index f2c5c7384..6eabccaa5 100755 --- a/src/Google/Api/Ads/Dfp/v201411/LineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201411/LineItemService.php @@ -815,6 +815,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2602,6 +2647,96 @@ public function __construct($minTargetAge = null, $maxTargetAge = null, $targetG } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -4915,6 +5050,51 @@ public function __construct($skipInventoryCheck = null, $LineItemActionType = nu } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -6338,6 +6518,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -7300,6 +7513,39 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GrpTargetGender", false)) { /** * Represents the target gender for a GRP demographic targeted line item. @@ -7333,6 +7579,39 @@ public function __construct() { } } +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -8347,6 +8626,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -10427,6 +10739,7 @@ class LineItemService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", @@ -10472,6 +10785,8 @@ class LineItemService extends DfpSoapClient { "GeoTargetingError" => "GeoTargetingError", "Goal" => "Goal", "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", @@ -10521,6 +10836,7 @@ class LineItemService extends DfpSoapClient { "ReserveLineItems" => "ReserveLineItems", "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", "ResumeLineItems" => "ResumeLineItems", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "Size" => "Size", @@ -10552,6 +10868,7 @@ class LineItemService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -10581,7 +10898,9 @@ class LineItemService extends DfpSoapClient { "GeoTargetingError.Reason" => "GeoTargetingErrorReason", "GoalType" => "GoalType", "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -10612,6 +10931,7 @@ class LineItemService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201411/LineItemTemplateService.php index 4a8b1026e..9bc2da6e5 100755 --- a/src/Google/Api/Ads/Dfp/v201411/LineItemTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201411/LineItemTemplateService.php @@ -385,6 +385,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1225,6 +1270,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -2491,6 +2626,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -3262,6 +3442,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3825,6 +4038,72 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -4695,6 +4974,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -5392,6 +5704,7 @@ class LineItemTemplateService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -5412,6 +5725,8 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargetingError" => "InventoryTargetingError", @@ -5439,6 +5754,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -5458,6 +5774,7 @@ class LineItemTemplateService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -5475,6 +5792,8 @@ class LineItemTemplateService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", @@ -5501,6 +5820,7 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/LiveStreamEventService.php b/src/Google/Api/Ads/Dfp/v201411/LiveStreamEventService.php index f16f4765f..b7fb44ea1 100755 --- a/src/Google/Api/Ads/Dfp/v201411/LiveStreamEventService.php +++ b/src/Google/Api/Ads/Dfp/v201411/LiveStreamEventService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1946,6 +1991,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3387,6 +3465,7 @@ class LiveStreamEventService extends DfpSoapClient { "ArchiveLiveStreamEvents" => "ArchiveLiveStreamEvents", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3425,6 +3504,7 @@ class LiveStreamEventService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/NetworkService.php b/src/Google/Api/Ads/Dfp/v201411/NetworkService.php index 80c47a410..d3b07ecbc 100755 --- a/src/Google/Api/Ads/Dfp/v201411/NetworkService.php +++ b/src/Google/Api/Ads/Dfp/v201411/NetworkService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1500,6 +1545,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2540,6 +2618,7 @@ class NetworkService extends DfpSoapClient { "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", @@ -2566,6 +2645,7 @@ class NetworkService extends DfpSoapClient { "UniqueError" => "UniqueError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/OrderService.php b/src/Google/Api/Ads/Dfp/v201411/OrderService.php index be9443b7f..c13f23f3d 100755 --- a/src/Google/Api/Ads/Dfp/v201411/OrderService.php +++ b/src/Google/Api/Ads/Dfp/v201411/OrderService.php @@ -513,6 +513,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1441,6 +1486,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("InternalApiError", false)) { /** * Indicates that a server-side error has occured. {@code InternalApiError}s @@ -3262,6 +3397,51 @@ public function __construct($OrderActionType = null) { } } +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ServerError", false)) { /** * Errors related to the server. @@ -4333,6 +4513,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4828,6 +5041,72 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. @@ -5763,6 +6042,39 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors @@ -7056,6 +7368,7 @@ class OrderService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -7081,6 +7394,8 @@ class OrderService extends DfpSoapClient { "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidEmailError" => "InvalidEmailError", "InvalidUrlError" => "InvalidUrlError", @@ -7118,6 +7433,7 @@ class OrderService extends DfpSoapClient { "ResumeOrders" => "ResumeOrders", "RetractOrders" => "RetractOrders", "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -7145,6 +7461,7 @@ class OrderService extends DfpSoapClient { "BillingTermsType" => "BillingTermsType", "BuyerPlatform" => "BuyerPlatform", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -7160,6 +7477,8 @@ class OrderService extends DfpSoapClient { "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidEmailError.Reason" => "InvalidEmailErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", @@ -7188,6 +7507,7 @@ class OrderService extends DfpSoapClient { "RequiredNumberError.Reason" => "RequiredNumberErrorReason", "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/PlacementService.php b/src/Google/Api/Ads/Dfp/v201411/PlacementService.php index 69ce21f15..fe89e84ff 100755 --- a/src/Google/Api/Ads/Dfp/v201411/PlacementService.php +++ b/src/Google/Api/Ads/Dfp/v201411/PlacementService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2011,6 +2056,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3636,6 +3714,7 @@ class PlacementService extends DfpSoapClient { "ArchivePlacements" => "ArchivePlacements", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3678,6 +3757,7 @@ class PlacementService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/PremiumRateService.php b/src/Google/Api/Ads/Dfp/v201411/PremiumRateService.php index 719b3afe1..a6fed8c74 100755 --- a/src/Google/Api/Ads/Dfp/v201411/PremiumRateService.php +++ b/src/Google/Api/Ads/Dfp/v201411/PremiumRateService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -461,6 +506,51 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1747,6 +1837,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -1780,6 +1903,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3508,6 +3664,7 @@ class PremiumRateService extends DfpSoapClient { "BooleanValue" => "BooleanValue", "BrowserPremiumFeature" => "BrowserPremiumFeature", "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomTargetingPremiumFeature" => "CustomTargetingPremiumFeature", "Date" => "Date", @@ -3518,6 +3675,7 @@ class PremiumRateService extends DfpSoapClient { "DeviceCapabilityPremiumFeature" => "DeviceCapabilityPremiumFeature", "DeviceCategoryPremiumFeature" => "DeviceCategoryPremiumFeature", "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCapPremiumFeature" => "FrequencyCapPremiumFeature", "GeographyPremiumFeature" => "GeographyPremiumFeature", @@ -3552,7 +3710,9 @@ class PremiumRateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ProductService.php b/src/Google/Api/Ads/Dfp/v201411/ProductService.php index 9ca405ba2..16ae92784 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ProductService.php @@ -658,6 +658,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -4044,6 +4089,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6554,6 +6632,7 @@ class ProductService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", @@ -6632,6 +6711,7 @@ class ProductService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201411/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201411/ProductTemplateService.php index 2fb3141bf..fb21d67fa 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ProductTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ProductTemplateService.php @@ -658,6 +658,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1438,6 +1483,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -4525,6 +4654,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -4757,6 +4919,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("EnvironmentType", false)) { /** * Enum for the valid environments in which ads can be shown. @@ -7325,6 +7520,7 @@ class ProductTemplateService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", @@ -7349,6 +7545,8 @@ class ProductTemplateService extends DfpSoapClient { "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -7411,6 +7609,7 @@ class ProductTemplateService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", @@ -7418,6 +7617,7 @@ class ProductTemplateService extends DfpSoapClient { "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "CustomTargetingError.Reason" => "CustomTargetingErrorReason", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201411/ProposalLineItemService.php index 51145a708..e72ef9957 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ProposalLineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ProposalLineItemService.php @@ -815,6 +815,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1832,6 +1877,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -5586,6 +5715,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6086,6 +6248,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -9378,6 +9573,7 @@ class ProposalLineItemService extends DfpSoapClient { "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", @@ -9411,6 +9607,8 @@ class ProposalLineItemService extends DfpSoapClient { "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -9495,6 +9693,7 @@ class ProposalLineItemService extends DfpSoapClient { "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "ComputedStatus" => "ComputedStatus", @@ -9510,6 +9709,7 @@ class ProposalLineItemService extends DfpSoapClient { "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "DeliveryTimeZone" => "DeliveryTimeZone", "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ProposalService.php b/src/Google/Api/Ads/Dfp/v201411/ProposalService.php index 41c59118d..c226ac5c9 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ProposalService.php @@ -513,6 +513,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -813,6 +858,90 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1178,6 +1307,96 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("PackageActionError", false)) { + /** + * Lists all errors for executing actions on {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class PackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "PackageActionError"; + + /** + * @access public + * @var tnsPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("PackageError", false)) { + /** + * Lists all errors associated with {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class PackageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "PackageError"; + + /** + * @access public + * @var tnsPackageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("PermissionError", false)) { /** * Errors related to incorrect permission. @@ -3045,6 +3264,58 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("WorkflowValidationError", false)) { + /** + * Lists all errors associated with workflow validation. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class WorkflowValidationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "WorkflowValidationError"; + + /** + * @access public + * @var tnsWorkflowValidationErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $workflowErrorMessage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $workflowErrorMessage = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->workflowErrorMessage = $workflowErrorMessage; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ApiVersionErrorReason", false)) { /** * Indicates that the operation is not allowed in the version the request @@ -3317,6 +3588,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3383,6 +3687,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3647,6 +3984,72 @@ public function __construct() { } } +if (!class_exists("PackageActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class PackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "PackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageErrorReason", false)) { + /** + * The reasons for the {@link PackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class PackageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "PackageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("PermissionErrorReason", false)) { /** * Describes reasons for permission errors. @@ -4350,6 +4753,39 @@ public function __construct() { } } +if (!class_exists("WorkflowValidationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class WorkflowValidationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "WorkflowValidationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CreateProposals", false)) { /** * Creates new {@link Proposal} objects. @@ -4453,6 +4889,10 @@ public function __construct($rval = null) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * @@ -5150,6 +5590,7 @@ class ProposalService extends DfpSoapClient { "BaseCustomFieldValue" => "BaseCustomFieldValue", "BillingError" => "BillingError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -5158,6 +5599,8 @@ class ProposalService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5167,6 +5610,8 @@ class ProposalService extends DfpSoapClient { "Money" => "Money", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", + "PackageActionError" => "PackageActionError", + "PackageError" => "PackageError", "PermissionError" => "PermissionError", "PrecisionError" => "PrecisionError", "ProductError" => "ProductError", @@ -5203,6 +5648,7 @@ class ProposalService extends DfpSoapClient { "UpdateResult" => "UpdateResult", "Value" => "Value", "WorkflowActionError" => "WorkflowActionError", + "WorkflowValidationError" => "WorkflowValidationError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "AvailableBillingError.Reason" => "AvailableBillingErrorReason", @@ -5211,8 +5657,10 @@ class ProposalService extends DfpSoapClient { "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -5221,6 +5669,8 @@ class ProposalService extends DfpSoapClient { "LineItemOperationError.Reason" => "LineItemOperationErrorReason", "ProposalApprovalStatus" => "ProposalApprovalStatus", "NotNullError.Reason" => "NotNullErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PrecisionError.Reason" => "PrecisionErrorReason", "PricingModel" => "PricingModel", @@ -5242,6 +5692,7 @@ class ProposalService extends DfpSoapClient { "StringLengthError.Reason" => "StringLengthErrorReason", "TeamError.Reason" => "TeamErrorReason", "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "WorkflowValidationError.Reason" => "WorkflowValidationErrorReason", "createProposals" => "CreateProposals", "createProposalsResponse" => "CreateProposalsResponse", "getProposalsByStatement" => "GetProposalsByStatement", @@ -5293,6 +5744,10 @@ public function createProposals($proposals) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * diff --git a/src/Google/Api/Ads/Dfp/v201411/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201411/PublisherQueryLanguageService.php index ef6e85777..b269c1d32 100755 --- a/src/Google/Api/Ads/Dfp/v201411/PublisherQueryLanguageService.php +++ b/src/Google/Api/Ads/Dfp/v201411/PublisherQueryLanguageService.php @@ -596,6 +596,51 @@ public function __construct($isTargeted = null, $browsers = null) { } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("ColumnType", false)) { /** * Contains information about a column in a {@link ResultSet}. @@ -4110,6 +4155,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -6685,6 +6763,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", "ColumnType" => "ColumnType", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", @@ -6774,6 +6853,7 @@ class PublisherQueryLanguageService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeError.Reason" => "CreativeErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", diff --git a/src/Google/Api/Ads/Dfp/v201411/RateCardService.php b/src/Google/Api/Ads/Dfp/v201411/RateCardService.php index 0a9ca3700..8fc75ce1d 100755 --- a/src/Google/Api/Ads/Dfp/v201411/RateCardService.php +++ b/src/Google/Api/Ads/Dfp/v201411/RateCardService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -461,6 +506,90 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1956,6 +2085,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -1989,6 +2151,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3430,12 +3625,15 @@ class RateCardService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateRateCards" => "DeactivateRateCards", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", @@ -3470,7 +3668,9 @@ class RateCardService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201411/ReconciliationOrderReportService.php index d46a64715..a616a0da8 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ReconciliationOrderReportService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ReconciliationOrderReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1730,6 +1775,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2847,6 +2925,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2881,6 +2960,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportRowService.php index 9d5c0ca49..e28d7514a 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportRowService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportRowService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1772,6 +1817,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2929,6 +3007,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2962,6 +3041,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BillFrom" => "BillFrom", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportService.php index ff0e911ac..8fb26cd9a 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ReconciliationReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1571,6 +1616,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2663,6 +2741,7 @@ class ReconciliationReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2694,6 +2773,7 @@ class ReconciliationReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ReportService.php b/src/Google/Api/Ads/Dfp/v201411/ReportService.php index 58d9aebeb..0fd7fc686 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ReportService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1634,6 +1679,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("Column", false)) { /** * {@code Column} provides all the trafficking statistics and revenue @@ -2508,10 +2586,12 @@ public function __construct($rval = null) { if (!class_exists("GetReportJob", false)) { /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. * @package GoogleApiAdsDfp * @subpackage v201411 */ @@ -3044,6 +3124,7 @@ class ReportService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3075,6 +3156,7 @@ class ReportService extends DfpSoapClient { "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "Column" => "Column", "CommonError.Reason" => "CommonErrorReason", "DateRangeType" => "DateRangeType", @@ -3147,10 +3229,12 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt return $result->rval; } /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. */ public function getReportJob($reportJobId) { $args = new GetReportJob($reportJobId); diff --git a/src/Google/Api/Ads/Dfp/v201411/SharedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201411/SharedAdUnitService.php index b39bd1491..c8f057518 100755 --- a/src/Google/Api/Ads/Dfp/v201411/SharedAdUnitService.php +++ b/src/Google/Api/Ads/Dfp/v201411/SharedAdUnitService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1677,6 +1722,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2747,6 +2825,7 @@ class SharedAdUnitService extends DfpSoapClient { "ApproveSharedAdUnits" => "ApproveSharedAdUnits", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2780,6 +2859,7 @@ class SharedAdUnitService extends DfpSoapClient { "AdUnit.TargetWindow" => "AdUnitTargetWindow", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201411/SuggestedAdUnitService.php index fc4beecf0..5e64a8980 100755 --- a/src/Google/Api/Ads/Dfp/v201411/SuggestedAdUnitService.php +++ b/src/Google/Api/Ads/Dfp/v201411/SuggestedAdUnitService.php @@ -348,6 +348,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -672,6 +717,51 @@ public function __construct($size = null, $environmentType = null, $companions = } } +if (!class_exists("InventoryUnitSizesError", false)) { + /** + * An error specifically for InventoryUnitSizes. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "InventoryUnitSizesError"; + + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("LabelEntityAssociationError", false)) { /** * Errors specific to creating label entity associations. @@ -1906,6 +1996,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2038,6 +2161,39 @@ public function __construct() { } } +if (!class_exists("InventoryUnitSizesErrorReason", false)) { + /** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "InventoryUnitSizesError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** * The reasons for the target error. @@ -3025,6 +3181,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3033,6 +3190,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", @@ -3061,10 +3219,12 @@ class SuggestedAdUnitService extends DfpSoapClient { "AdUnit.TargetWindow" => "AdUnitTargetWindow", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "ParseError.Reason" => "ParseErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/TeamService.php b/src/Google/Api/Ads/Dfp/v201411/TeamService.php index d7aef15bf..6c5664b28 100755 --- a/src/Google/Api/Ads/Dfp/v201411/TeamService.php +++ b/src/Google/Api/Ads/Dfp/v201411/TeamService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1586,6 +1631,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2700,6 +2778,7 @@ class TeamService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2731,6 +2810,7 @@ class TeamService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/UserService.php b/src/Google/Api/Ads/Dfp/v201411/UserService.php index 60d1286b9..9f00f3bb2 100755 --- a/src/Google/Api/Ads/Dfp/v201411/UserService.php +++ b/src/Google/Api/Ads/Dfp/v201411/UserService.php @@ -373,6 +373,51 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -2081,6 +2126,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3672,6 +3750,7 @@ class UserService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -3713,6 +3792,7 @@ class UserService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201411/UserTeamAssociationService.php index e85249111..8112d19fd 100755 --- a/src/Google/Api/Ads/Dfp/v201411/UserTeamAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201411/UserTeamAssociationService.php @@ -294,6 +294,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1583,6 +1628,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -2750,6 +2828,7 @@ class UserTeamAssociationService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2781,6 +2860,7 @@ class UserTeamAssociationService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201411/WorkflowRequestService.php index 254be645f..1ebafb36b 100755 --- a/src/Google/Api/Ads/Dfp/v201411/WorkflowRequestService.php +++ b/src/Google/Api/Ads/Dfp/v201411/WorkflowRequestService.php @@ -402,6 +402,51 @@ public function __construct($id = null, $workflowRuleName = null, $entityId = nu } } +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("CommonError", false)) { /** * A place for common errors that can be used across services. @@ -1858,6 +1903,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors @@ -3185,6 +3263,7 @@ class WorkflowRequestService extends DfpSoapClient { "AuthenticationError" => "AuthenticationError", "WorkflowRequest" => "WorkflowRequest", "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3223,6 +3302,7 @@ class WorkflowRequestService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201502/ActivityGroupService.php similarity index 78% rename from src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php rename to src/Google/Api/Ads/Dfp/v201502/ActivityGroupService.php index e60a66121..ad5a910c0 100755 --- a/src/Google/Api/Ads/Dfp/v201306/ActivityGroupService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ActivityGroupService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -33,11 +33,11 @@ * Activities are organized within activity groups, which are sets of activities that share the * same configuration. You create and manage activities from within activity groups. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivityGroup { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityGroup"; /** @@ -108,11 +108,11 @@ public function __construct($id = null, $name = null, $companyIds = null, $impre /** * Captures a page of {@link ActivityGroup} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivityGroupPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityGroupPage"; /** @@ -166,11 +166,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -191,44 +191,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -245,11 +207,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -259,11 +220,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -288,13 +249,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -304,11 +264,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -317,44 +277,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -371,81 +293,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -455,11 +304,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -484,36 +333,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -531,10 +377,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -544,11 +392,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -573,13 +421,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -589,11 +436,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -643,11 +490,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -712,11 +559,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -741,13 +588,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -759,11 +605,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -788,13 +634,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -804,11 +649,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -833,57 +678,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -893,11 +693,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -922,13 +722,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -939,11 +738,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -968,13 +767,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -985,11 +783,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1014,13 +812,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1031,11 +828,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1060,13 +857,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1076,11 +872,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1105,13 +901,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1121,11 +916,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1150,13 +945,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1166,11 +960,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1195,13 +989,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1211,11 +1004,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1230,12 +1023,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1252,10 +1039,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1265,11 +1051,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1340,11 +1126,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1387,11 +1173,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1416,13 +1202,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1432,11 +1217,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1461,13 +1246,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1478,11 +1262,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1525,11 +1309,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1548,12 +1332,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1563,51 +1346,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1624,8 +1369,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1635,11 +1379,11 @@ public function __construct($ValueType = null) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivityErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityError.Reason"; /** @@ -1668,11 +1412,11 @@ public function __construct() { /** * The activity group status. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivityGroupStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityGroup.Status"; /** @@ -1702,11 +1446,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1738,11 +1482,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1767,15 +1511,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1804,11 +1581,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1837,11 +1614,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1870,11 +1647,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1903,11 +1680,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1936,11 +1713,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -1969,11 +1746,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2012,11 +1789,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2045,11 +1822,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2078,11 +1855,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2111,11 +1888,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2144,11 +1921,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2177,11 +1954,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2206,89 +1983,6 @@ public function __construct() { } } -if (!class_exists("CreateActivityGroup", false)) { - /** - * Creates a new {@link ActivityGroup}. - * - * @param activityGroup the activity group to be created. - * @return the created activity group with its ID filled in. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $activityGroup; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroup = null) { - $this->activityGroup = $activityGroup; - } - - } -} - -if (!class_exists("CreateActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateActivityGroups", false)) { /** * Creates a new {@link ActivityGroup} objects. @@ -2296,11 +1990,11 @@ public function __construct($rval = null) { * @param activityGroups the activity groups to be created. * @return the created activity groups with their IDs filled in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreateActivityGroups { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2336,11 +2030,11 @@ public function __construct($activityGroups = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreateActivityGroupsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2372,89 +2066,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetActivityGroup", false)) { - /** - * Returns the {@link ActivityGroup} uniquely identified by the given ID. - * - * @param activityGroupId the ID of the activity group, which must already exist. - * @return the {@code ActivityGroup} uniquely identified by the given ID. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetActivityGroup { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $activityGroupId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroupId = null) { - $this->activityGroupId = $activityGroupId; - } - - } -} - -if (!class_exists("GetActivityGroupResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetActivityGroupResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetActivityGroupsByStatement", false)) { /** * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given @@ -2489,11 +2100,11 @@ public function __construct($rval = null) { * @param filterStatement a statement used to filter a set of activity groups * @return the activity groups that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetActivityGroupsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2529,11 +2140,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetActivityGroupsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2565,25 +2176,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateActivityGroup", false)) { +if (!class_exists("UpdateActivityGroups", false)) { /** - * Updates the specified {@link ActivityGroup}. + * Updates the specified {@link ActivityGroup} objects. * - * @param activityGroup the activity group to update. - * @return the updated activity group. + * @param activityGroups the activity groups to update. + * @return the updated activity groups. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateActivityGroup { + class UpdateActivityGroups { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ActivityGroup + * @var ActivityGroup[] */ - public $activityGroup; + public $activityGroups; /** * Gets the namesapce of this class @@ -2601,27 +2212,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($activityGroup = null) { - $this->activityGroup = $activityGroup; + public function __construct($activityGroups = null) { + $this->activityGroups = $activityGroups; } } } -if (!class_exists("UpdateActivityGroupResponse", false)) { +if (!class_exists("UpdateActivityGroupsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateActivityGroupResponse { + class UpdateActivityGroupsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ActivityGroup + * @var ActivityGroup[] */ public $rval; @@ -2648,65 +2259,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateActivityGroups", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link ActivityGroup} objects. - * - * @param activityGroups the activity groups to update. - * @return the updated activity groups. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateActivityGroups { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $activityGroups; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityGroups = null) { - $this->activityGroups = $activityGroups; - } - - } -} - -if (!class_exists("UpdateActivityGroupsResponse", false)) { - /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateActivityGroupsResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ActivityGroup[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2724,8 +2293,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -2735,11 +2304,11 @@ public function __construct($rval = null) { /** * Errors relating to Activity and Activity Group services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivityError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityError"; /** @@ -2764,13 +2333,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2780,11 +2348,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2809,11 +2377,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2823,11 +2390,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2852,10 +2419,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2865,11 +2431,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2894,10 +2460,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2907,11 +2472,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2936,10 +2501,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2949,11 +2513,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2978,10 +2542,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -2991,11 +2595,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3020,10 +2624,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3033,25 +2636,26 @@ public function __construct($value = null, $ValueType = null) { /** * ActivityGroupService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivityGroupService extends DfpSoapClient { const SERVICE_NAME = "ActivityGroupService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ActivityGroupService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ActivityGroupService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ActivityGroupService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ActivityGroupService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivityError" => "ActivityError", "ActivityGroup" => "ActivityGroup", "ActivityGroupPage" => "ActivityGroupPage", @@ -3059,10 +2663,9 @@ class ActivityGroupService extends DfpSoapClient { "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3072,7 +2675,6 @@ class ActivityGroupService extends DfpSoapClient { "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -3080,6 +2682,7 @@ class ActivityGroupService extends DfpSoapClient { "RangeError" => "RangeError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3093,6 +2696,7 @@ class ActivityGroupService extends DfpSoapClient { "ActivityGroup.Status" => "ActivityGroupStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -3106,16 +2710,10 @@ class ActivityGroupService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createActivityGroup" => "CreateActivityGroup", - "createActivityGroupResponse" => "CreateActivityGroupResponse", "createActivityGroups" => "CreateActivityGroups", "createActivityGroupsResponse" => "CreateActivityGroupsResponse", - "getActivityGroup" => "GetActivityGroup", - "getActivityGroupResponse" => "GetActivityGroupResponse", "getActivityGroupsByStatement" => "GetActivityGroupsByStatement", "getActivityGroupsByStatementResponse" => "GetActivityGroupsByStatementResponse", - "updateActivityGroup" => "UpdateActivityGroup", - "updateActivityGroupResponse" => "UpdateActivityGroupResponse", "updateActivityGroups" => "UpdateActivityGroups", "updateActivityGroupsResponse" => "UpdateActivityGroupsResponse", ); @@ -3131,17 +2729,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link ActivityGroup}. - * - * @param activityGroup the activity group to be created. - * @return the created activity group with its ID filled in. - */ - public function createActivityGroup($activityGroup) { - $args = new CreateActivityGroup($activityGroup); - $result = $this->__soapCall("createActivityGroup", array($args)); - return $result->rval; - } /** * Creates a new {@link ActivityGroup} objects. * @@ -3153,17 +2740,6 @@ public function createActivityGroups($activityGroups) { $result = $this->__soapCall("createActivityGroups", array($args)); return $result->rval; } - /** - * Returns the {@link ActivityGroup} uniquely identified by the given ID. - * - * @param activityGroupId the ID of the activity group, which must already exist. - * @return the {@code ActivityGroup} uniquely identified by the given ID. - */ - public function getActivityGroup($activityGroupId) { - $args = new GetActivityGroup($activityGroupId); - $result = $this->__soapCall("getActivityGroup", array($args)); - return $result->rval; - } /** * Gets an {@link ActivityGroupPage} of {@link ActivityGroup} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -3202,17 +2778,6 @@ public function getActivityGroupsByStatement($filterStatement) { $result = $this->__soapCall("getActivityGroupsByStatement", array($args)); return $result->rval; } - /** - * Updates the specified {@link ActivityGroup}. - * - * @param activityGroup the activity group to update. - * @return the updated activity group. - */ - public function updateActivityGroup($activityGroup) { - $args = new UpdateActivityGroup($activityGroup); - $result = $this->__soapCall("updateActivityGroup", array($args)); - return $result->rval; - } /** * Updates the specified {@link ActivityGroup} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/ActivityService.php b/src/Google/Api/Ads/Dfp/v201502/ActivityService.php similarity index 78% rename from src/Google/Api/Ads/Dfp/v201308/ActivityService.php rename to src/Google/Api/Ads/Dfp/v201502/ActivityService.php index 8456ce46f..7c4165eb5 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ActivityService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ActivityService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -38,11 +38,11 @@ * promotional website after viewing or clicking on an ad. When a user views an ad, then visits the * page, that's one conversion.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Activity { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Activity"; /** @@ -113,11 +113,11 @@ public function __construct($id = null, $activityGroupId = null, $name = null, $ /** * Captures a page of {@link Activity} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivityPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityPage"; /** @@ -171,11 +171,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -196,44 +196,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -250,11 +212,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -264,11 +225,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -293,13 +254,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -309,11 +269,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -322,44 +282,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -376,81 +298,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -460,11 +309,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -489,36 +338,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -536,10 +382,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -549,11 +397,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -578,13 +426,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -594,11 +441,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -648,11 +495,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -717,11 +564,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -746,13 +593,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -764,11 +610,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -793,13 +639,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -809,11 +654,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -838,57 +683,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -898,11 +698,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -927,13 +727,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -944,11 +743,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -973,13 +772,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -990,11 +788,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1019,13 +817,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1036,11 +833,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1065,13 +862,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1081,11 +877,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1110,13 +906,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1126,11 +921,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1155,13 +950,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1171,11 +965,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1200,13 +994,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1216,11 +1009,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1235,12 +1028,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1257,10 +1044,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1270,11 +1056,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1345,11 +1131,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1392,11 +1178,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1421,13 +1207,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1437,11 +1222,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1466,13 +1251,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1483,11 +1267,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1530,11 +1314,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1553,12 +1337,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1568,51 +1351,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1629,8 +1374,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1640,11 +1384,11 @@ public function __construct($ValueType = null) { /** * The activity status. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivityStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Activity.Status"; /** @@ -1673,11 +1417,11 @@ public function __construct() { /** * The activity type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivityType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Activity.Type"; /** @@ -1706,11 +1450,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivityErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityError.Reason"; /** @@ -1740,11 +1484,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1776,11 +1520,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1805,15 +1549,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1842,11 +1619,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1875,11 +1652,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1908,11 +1685,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1941,11 +1718,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1974,11 +1751,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2007,11 +1784,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2050,11 +1827,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2083,11 +1860,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2116,11 +1893,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2149,11 +1926,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2182,11 +1959,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2215,11 +1992,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2251,11 +2028,11 @@ public function __construct() { * @param activities to be created. * @return the created activities with its IDs filled in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateActivities { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2291,11 +2068,11 @@ public function __construct($activities = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateActivitiesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2327,89 +2104,6 @@ public function __construct($rval = null) { } } -if (!class_exists("CreateActivity", false)) { - /** - * Creates a new {@link Activity}. - * - * @param activity to be created - * @return the created activity with its ID filled in. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateActivity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $activity; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activity = null) { - $this->activity = $activity; - } - - } -} - -if (!class_exists("CreateActivityResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateActivityResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetActivitiesByStatement", false)) { /** * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given @@ -2444,11 +2138,11 @@ public function __construct($rval = null) { * @param filterStatement a statement used to filter a set of activities. * @return the activities that match the given filter. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetActivitiesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2484,11 +2178,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetActivitiesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2520,89 +2214,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetActivity", false)) { - /** - * Returns the {@link Activity} uniquely identified by the given ID. - * - * @param activityId the ID of the activity, which must already exist - * @return the {@code Activity} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetActivity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $activityId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activityId = null) { - $this->activityId = $activityId; - } - - } -} - -if (!class_exists("GetActivityResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetActivityResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("UpdateActivities", false)) { /** * Updates the specified {@link Activity} objects. @@ -2610,11 +2221,11 @@ public function __construct($rval = null) { * @param activities to be updated. * @return the updated activities. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateActivities { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2650,11 +2261,11 @@ public function __construct($activities = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateActivitiesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2686,65 +2297,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateActivity", false)) { - /** - * Updates the specified {@link Activity}. - * - * @param activity to be updated. - * @return the updated activity. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateActivity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $activity; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($activity = null) { - $this->activity = $activity; - } - - } -} - -if (!class_exists("UpdateActivityResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateActivityResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Activity - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2762,8 +2331,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -2773,11 +2342,11 @@ public function __construct($rval = null) { /** * Errors relating to Activity and Activity Group services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivityError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivityError"; /** @@ -2802,13 +2371,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2818,11 +2386,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2847,11 +2415,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2861,11 +2428,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2890,10 +2457,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2903,11 +2469,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2932,10 +2498,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2945,11 +2510,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2974,10 +2539,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2987,11 +2551,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3016,10 +2580,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3029,11 +2633,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3058,10 +2662,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3071,25 +2674,26 @@ public function __construct($value = null, $ValueType = null) { /** * ActivityService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivityService extends DfpSoapClient { const SERVICE_NAME = "ActivityService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ActivityService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ActivityService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ActivityService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ActivityService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "Activity" => "Activity", "ActivityError" => "ActivityError", "ActivityPage" => "ActivityPage", @@ -3097,10 +2701,9 @@ class ActivityService extends DfpSoapClient { "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3110,7 +2713,6 @@ class ActivityService extends DfpSoapClient { "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -3118,6 +2720,7 @@ class ActivityService extends DfpSoapClient { "RangeError" => "RangeError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3132,6 +2735,7 @@ class ActivityService extends DfpSoapClient { "ActivityError.Reason" => "ActivityErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -3147,16 +2751,10 @@ class ActivityService extends DfpSoapClient { "StringLengthError.Reason" => "StringLengthErrorReason", "createActivities" => "CreateActivities", "createActivitiesResponse" => "CreateActivitiesResponse", - "createActivity" => "CreateActivity", - "createActivityResponse" => "CreateActivityResponse", "getActivitiesByStatement" => "GetActivitiesByStatement", "getActivitiesByStatementResponse" => "GetActivitiesByStatementResponse", - "getActivity" => "GetActivity", - "getActivityResponse" => "GetActivityResponse", "updateActivities" => "UpdateActivities", "updateActivitiesResponse" => "UpdateActivitiesResponse", - "updateActivity" => "UpdateActivity", - "updateActivityResponse" => "UpdateActivityResponse", ); @@ -3181,17 +2779,6 @@ public function createActivities($activities) { $result = $this->__soapCall("createActivities", array($args)); return $result->rval; } - /** - * Creates a new {@link Activity}. - * - * @param activity to be created - * @return the created activity with its ID filled in. - */ - public function createActivity($activity) { - $args = new CreateActivity($activity); - $result = $this->__soapCall("createActivity", array($args)); - return $result->rval; - } /** * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -3230,17 +2817,6 @@ public function getActivitiesByStatement($filterStatement) { $result = $this->__soapCall("getActivitiesByStatement", array($args)); return $result->rval; } - /** - * Returns the {@link Activity} uniquely identified by the given ID. - * - * @param activityId the ID of the activity, which must already exist - * @return the {@code Activity} uniquely identified by the given ID - */ - public function getActivity($activityId) { - $args = new GetActivity($activityId); - $result = $this->__soapCall("getActivity", array($args)); - return $result->rval; - } /** * Updates the specified {@link Activity} objects. * @@ -3252,17 +2828,6 @@ public function updateActivities($activities) { $result = $this->__soapCall("updateActivities", array($args)); return $result->rval; } - /** - * Updates the specified {@link Activity}. - * - * @param activity to be updated. - * @return the updated activity. - */ - public function updateActivity($activity) { - $args = new UpdateActivity($activity); - $result = $this->__soapCall("updateActivity", array($args)); - return $result->rval; - } } } diff --git a/src/Google/Api/Ads/Dfp/v201311/TeamService.php b/src/Google/Api/Ads/Dfp/v201502/AdExclusionRuleService.php similarity index 75% rename from src/Google/Api/Ads/Dfp/v201311/TeamService.php rename to src/Google/Api/Ads/Dfp/v201502/AdExclusionRuleService.php index dbb59de9e..aae66fa74 100755 --- a/src/Google/Api/Ads/Dfp/v201311/TeamService.php +++ b/src/Google/Api/Ads/Dfp/v201502/AdExclusionRuleService.php @@ -1,6 +1,6 @@ The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

+ * Represents the actions that can be performed on {@link AdExclusionRule} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiError { + class AdExclusionRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdExclusionRuleAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdExclusionRule", false)) { + /** + * Represents an inventory blocking rule, which prevents certain ads from being + * served to specified ad units. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AdExclusionRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdExclusionRule"; /** * @access public - * @var string + * @var integer */ - public $fieldPath; + public $id; /** * @access public * @var string */ - public $trigger; + public $name; /** * @access public - * @var string + * @var boolean */ - public $errorString; + public $isActive; /** * @access public - * @var string + * @var InventoryTargeting */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); + public $inventoryTargeting; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * @access public + * @var boolean */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $isBlockAll; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var integer[] */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $blockedLabelIds; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var integer[] */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $allowedLabelIds; + + /** + * @access public + * @var tnsAdExclusionRuleType + */ + public $type; /** * Gets the namesapce of this class @@ -115,32 +137,48 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $name = null, $isActive = null, $inventoryTargeting = null, $isBlockAll = null, $blockedLabelIds = null, $allowedLabelIds = null, $type = null) { + $this->id = $id; + $this->name = $name; + $this->isActive = $isActive; + $this->inventoryTargeting = $inventoryTargeting; + $this->isBlockAll = $isBlockAll; + $this->blockedLabelIds = $blockedLabelIds; + $this->allowedLabelIds = $allowedLabelIds; + $this->type = $type; } } } -if (!class_exists("ApiVersionError", false)) { +if (!class_exists("AdExclusionRulePage", false)) { /** - * Errors related to the usage of API versions. + * Represents a page of {@link AdExclusionRule} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionError extends ApiError { + class AdExclusionRulePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdExclusionRulePage"; /** * @access public - * @var tnsApiVersionErrorReason + * @var integer */ - public $reason; + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdExclusionRule[] + */ + public $results; /** * Gets the namesapce of this class @@ -158,72 +196,94 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; } } } -if (!class_exists("ApplicationException", false)) { +if (!class_exists("AdUnitTargeting", false)) { /** - * Base class for exceptions. + * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApplicationException { + class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitTargeting"; /** * @access public * @var string */ - public $message; + public $adUnitId; /** * @access public - * @var string + * @var boolean */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); + public $includeDescendants; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } + public function __construct($adUnitId = null, $includeDescendants = null) { + $this->adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; + } + + } +} + +if (!class_exists("ApiError", false)) { + /** + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiError"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var string */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; /** * Gets the namesapce of this class @@ -241,62 +301,75 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("ApiVersionError", false)) { /** - * A representation of the authentication protocols that can be used. + * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError"; /** * @access public - * @var string + * @var tnsApiVersionErrorReason */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); + public $reason; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApplicationException"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var string */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $message; /** * Gets the namesapce of this class @@ -314,8 +387,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($message = null) { + $this->message = $message; } } @@ -325,11 +398,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +427,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +471,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +486,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +515,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +530,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +584,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -577,23 +648,16 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("DeactivateAdExclusionRules", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * Deactivate action. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; + class DeactivateAdExclusionRules extends AdExclusionRuleAction { - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeactivateAdExclusionRules"; /** * Gets the namesapce of this class @@ -611,34 +675,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct() { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("FeatureError", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var tnsInternalApiErrorReason + * @var tnsFeatureErrorReason */ public $reason; @@ -658,32 +716,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsInternalApiErrorReason */ public $reason; @@ -703,34 +762,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("InventoryTargeting", false)) { /** - * Errors associated with violation of a NOT NULL check. + * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullError extends ApiError { + class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargeting"; /** * @access public - * @var tnsNullErrorReason + * @var AdUnitTargeting[] */ - public $reason; + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; /** * Gets the namesapce of this class @@ -748,36 +818,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("NotNullError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var string + * @var tnsNotNullErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -795,10 +860,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -808,11 +875,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -837,13 +904,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -854,11 +920,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -883,13 +949,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -900,11 +965,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -929,13 +994,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -946,11 +1010,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -975,13 +1039,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -991,11 +1098,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1020,13 +1127,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1036,11 +1142,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1065,13 +1171,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1081,11 +1186,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1100,12 +1205,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1122,10 +1221,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1135,11 +1233,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1210,11 +1308,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1257,11 +1355,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1286,41 +1384,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("String_ValueMapEntry", false)) { +if (!class_exists("StringLengthError", false)) { /** - * This represents an entry in a map with a key of type String - * and value of type Value. + * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; + class StringLengthError extends ApiError { - /** - * @access public - * @var string - */ - public $key; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError"; /** * @access public - * @var Value + * @var tnsStringLengthErrorReason */ - public $value; + public $reason; /** * Gets the namesapce of this class @@ -1338,73 +1428,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("Team", false)) { +if (!class_exists("String_ValueMapEntry", false)) { /** - * A {@code Team} defines a grouping of users and what entities they have access - * to. Users are added to teams with {@link UserTeamAssociation} objects. + * This represents an entry in a map with a key of type String + * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Team { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Team"; - - /** - * @access public - * @var integer - */ - public $id; + class String_ValueMapEntry { - /** - * @access public - * @var string - */ - public $name; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "String_ValueMapEntry"; /** * @access public * @var string */ - public $description; - - /** - * @access public - * @var boolean - */ - public $hasAllCompanies; - - /** - * @access public - * @var boolean - */ - public $hasAllInventory; - - /** - * @access public - * @var tnsTeamAccessType - */ - public $teamAccessType; - - /** - * @access public - * @var integer[] - */ - public $companyIds; + public $key; /** * @access public - * @var string[] + * @var Value */ - public $adUnitIds; + public $value; /** * Gets the namesapce of this class @@ -1422,36 +1479,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $hasAllCompanies = null, $hasAllInventory = null, $teamAccessType = null, $companyIds = null, $adUnitIds = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->hasAllCompanies = $hasAllCompanies; - $this->hasAllInventory = $hasAllInventory; - $this->teamAccessType = $teamAccessType; - $this->companyIds = $companyIds; - $this->adUnitIds = $adUnitIds; + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; } } } -if (!class_exists("TeamError", false)) { +if (!class_exists("UniqueError", false)) { /** - * Errors related to a Team. + * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError"; + class UniqueError extends ApiError { - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UniqueError"; /** * Gets the namesapce of this class @@ -1469,46 +1514,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("TeamPage", false)) { +if (!class_exists("UpdateResult", false)) { /** - * Captures a page of {@link Team} objects. + * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamPage"; + class UpdateResult { - /** - * @access public - * @var integer - */ - public $totalResultSetSize; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; /** * @access public * @var integer */ - public $startIndex; - - /** - * @access public - * @var Team[] - */ - public $results; + public $numChanges; /** * Gets the namesapce of this class @@ -1526,25 +1557,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; } } } -if (!class_exists("TypeError", false)) { +if (!class_exists("Value", false)) { /** - * An error for a field which is an invalid type. + * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TypeError extends ApiError { + class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; /** * Gets the namesapce of this class @@ -1562,27 +1591,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("UniqueError", false)) { +if (!class_exists("AdExclusionRuleErrorReason", false)) { /** - * An error for a field which must satisfy a uniqueness constraint + * The reasons for the ad exclusion rule error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UniqueError extends ApiError { + class AdExclusionRuleErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdExclusionRuleError.Reason"; /** * Gets the namesapce of this class @@ -1600,65 +1624,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Value", false)) { +if (!class_exists("AdExclusionRuleType", false)) { /** - * {@code Value} represents a value. + * The derived type of this rule: whether it is associated with labels, unified entities, + * or competitive groups. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + class AdExclusionRuleType { - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdExclusionRuleType"; /** * Gets the namesapce of this class @@ -1676,8 +1658,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1688,11 +1669,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1724,11 +1705,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1753,16 +1734,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Describes reasons for common errors + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -1786,16 +1767,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * A feature is being used that is not enabled on the current network. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureErrorReason { + class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -1819,16 +1800,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * The single reason for the internal API error. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiErrorReason { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -1852,16 +1833,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the target error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -1885,16 +1866,16 @@ public function __construct() { } } -if (!class_exists("NullErrorReason", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** - * The reasons for the validation error. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullErrorReason { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -1922,11 +1903,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1955,11 +1936,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -1988,11 +1969,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2031,11 +2012,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2060,16 +2041,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("RequiredCollectionErrorReason", false)) { /** - * The reasons for the target error. + * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredErrorReason { + class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError.Reason"; /** * Gets the namesapce of this class @@ -2093,16 +2074,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("RequiredErrorReason", false)) { /** - * Describes reasons for server errors + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError.Reason"; /** * Gets the namesapce of this class @@ -2126,16 +2107,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -2159,16 +2140,16 @@ public function __construct() { } } -if (!class_exists("TeamAccessType", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * Represents the types of team access supported for orders. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamAccessType { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamAccessType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -2192,16 +2173,16 @@ public function __construct() { } } -if (!class_exists("TeamErrorReason", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamErrorReason { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -2225,30 +2206,24 @@ public function __construct() { } } -if (!class_exists("CreateTeam", false)) { +if (!class_exists("CreateAdExclusionRules", false)) { /** - * Creates a new {@code Team}. - * - * The following fields are required: - *
    - *
  • {@link Team#name}
  • - *
- * - * @param team the team to create - * @return the team with its ID filled in + * Creates new {@link AdExclusionRule} objects. + * @param adExclusionRules the ad exclusion rules to create + * @return the created rules with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateTeam { + class CreateAdExclusionRules { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Team + * @var AdExclusionRule[] */ - public $team; + public $adExclusionRules; /** * Gets the namesapce of this class @@ -2266,27 +2241,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($team = null) { - $this->team = $team; + public function __construct($adExclusionRules = null) { + $this->adExclusionRules = $adExclusionRules; } } } -if (!class_exists("CreateTeamResponse", false)) { +if (!class_exists("CreateAdExclusionRulesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateTeamResponse { + class CreateAdExclusionRulesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Team + * @var AdExclusionRule[] */ public $rval; @@ -2313,30 +2288,46 @@ public function __construct($rval = null) { } } -if (!class_exists("CreateTeams", false)) { +if (!class_exists("GetAdExclusionRulesByStatement", false)) { /** - * Creates new {@link Team} objects. + * Gets a {@link AdExclusionRulePage} of {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: * - * The following fields are required: - *
    - *
  • {@link Team#name}
  • - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PQL Property Object Property
{@code id}{@link AdExclusionRule#id}
{@code name}{@link AdExclusionRule#name}
{@code status}{@link AdExclusionRule#status}
* - * @param teams the teams to create - * @return the created teams with their IDs filled in + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rules + * @return the rules that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateTeams { + class GetAdExclusionRulesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Team[] + * @var Statement */ - public $teams; + public $filterStatement; /** * Gets the namesapce of this class @@ -2354,27 +2345,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($teams = null) { - $this->teams = $teams; + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; } } } -if (!class_exists("CreateTeamsResponse", false)) { +if (!class_exists("GetAdExclusionRulesByStatementResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateTeamsResponse { + class GetAdExclusionRulesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Team[] + * @var AdExclusionRulePage */ public $rval; @@ -2401,25 +2392,34 @@ public function __construct($rval = null) { } } -if (!class_exists("GetTeam", false)) { +if (!class_exists("PerformAdExclusionRuleAction", false)) { /** - * Returns the {@code Team} uniquely identified by the given ID. + * Performs action on {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. * - * @param teamId the ID of the team, which must already exist - * @return the {@code Team} uniquely identified by the given ID + * @param adExclusionRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad exclusion rules + * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetTeam { + class PerformAdExclusionRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var AdExclusionRuleAction */ - public $teamId; + public $adExclusionRuleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; /** * Gets the namesapce of this class @@ -2437,27 +2437,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($teamId = null) { - $this->teamId = $teamId; + public function __construct($adExclusionRuleAction = null, $filterStatement = null) { + $this->adExclusionRuleAction = $adExclusionRuleAction; + $this->filterStatement = $filterStatement; } } } -if (!class_exists("GetTeamResponse", false)) { +if (!class_exists("PerformAdExclusionRuleActionResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetTeamResponse { + class PerformAdExclusionRuleActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Team + * @var UpdateResult */ public $rval; @@ -2484,46 +2485,25 @@ public function __construct($rval = null) { } } -if (!class_exists("GetTeamsByStatement", false)) { +if (!class_exists("UpdateAdExclusionRules", false)) { /** - * Gets a {@code TeamPage} of {@code Team} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: + * Updates the specified {@link AdExclusionRule} objects. * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
PQL Property Object Property
{@code id}{@link Team#id}
{@code name}{@link Team#name}
{@code description}{@link Team#description}
- * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of teams. - * @return the teams that match the given filter + * @param adExclusionRules the ad exclusion rules to update + * @return the updated rules * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetTeamsByStatement { + class UpdateAdExclusionRules { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Statement + * @var AdExclusionRule[] */ - public $filterStatement; + public $adExclusionRules; /** * Gets the namesapce of this class @@ -2541,27 +2521,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; + public function __construct($adExclusionRules = null) { + $this->adExclusionRules = $adExclusionRules; } } } -if (!class_exists("GetTeamsByStatementResponse", false)) { +if (!class_exists("UpdateAdExclusionRulesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetTeamsByStatementResponse { + class UpdateAdExclusionRulesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var TeamPage + * @var AdExclusionRule[] */ public $rval; @@ -2588,65 +2568,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateTeam", false)) { - /** - * Updates the specified {@code Team}. - * - * @param team the team to update - * @return the updated team - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateTeam { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $team; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($team = null) { - $this->team = $team; - } - - } -} - -if (!class_exists("UpdateTeamResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateTeamResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var Team - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2664,32 +2602,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateTeams", false)) { +if (!class_exists("ActivateAdExclusionRules", false)) { /** - * Updates the specified {@link Team} objects. - * - * @param teams the teams to update - * @return the updated teams + * Activate action. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateTeams { + class ActivateAdExclusionRules extends AdExclusionRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team[] - */ - public $teams; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ActivateAdExclusionRules"; /** * Gets the namesapce of this class @@ -2707,29 +2636,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($teams = null) { - $this->teams = $teams; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateTeamsResponse", false)) { +if (!class_exists("AdExclusionRuleError", false)) { /** - * + * Ad exclusion rule specific errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateTeamsResponse { + class AdExclusionRuleError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdExclusionRuleError"; /** * @access public - * @var Team[] + * @var tnsAdExclusionRuleErrorReason */ - public $rval; + public $reason; /** * Gets the namesapce of this class @@ -2747,8 +2676,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -2758,11 +2691,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2787,11 +2720,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2801,11 +2733,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2830,10 +2762,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2843,11 +2774,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2872,10 +2803,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2885,11 +2815,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2914,10 +2844,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2927,11 +2856,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2956,10 +2885,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2969,11 +2897,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -2998,10 +2926,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -3011,11 +2938,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3040,61 +2967,67 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("TeamService", false)) { +if (!class_exists("AdExclusionRuleService", false)) { /** - * TeamService + * AdExclusionRuleService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamService extends DfpSoapClient { + class AdExclusionRuleService extends DfpSoapClient { - const SERVICE_NAME = "TeamService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/TeamService"; + const SERVICE_NAME = "AdExclusionRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/AdExclusionRuleService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/TeamService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/AdExclusionRuleService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateAdExclusionRules" => "ActivateAdExclusionRules", + "AdExclusionRuleAction" => "AdExclusionRuleAction", + "AdExclusionRule" => "AdExclusionRule", + "AdExclusionRuleError" => "AdExclusionRuleError", + "AdExclusionRulePage" => "AdExclusionRulePage", + "AdUnitTargeting" => "AdUnitTargeting", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", + "DeactivateAdExclusionRules" => "DeactivateAdExclusionRules", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", "NotNullError" => "NotNullError", - "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", "SetValue" => "SetValue", @@ -3102,42 +3035,38 @@ class TeamService extends DfpSoapClient { "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", "String_ValueMapEntry" => "String_ValueMapEntry", - "Team" => "Team", - "TeamError" => "TeamError", - "TeamPage" => "TeamPage", "TextValue" => "TextValue", - "TypeError" => "TypeError", "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", "Value" => "Value", + "AdExclusionRuleError.Reason" => "AdExclusionRuleErrorReason", + "AdExclusionRuleType" => "AdExclusionRuleType", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", - "TeamAccessType" => "TeamAccessType", - "TeamError.Reason" => "TeamErrorReason", - "createTeam" => "CreateTeam", - "createTeamResponse" => "CreateTeamResponse", - "createTeams" => "CreateTeams", - "createTeamsResponse" => "CreateTeamsResponse", - "getTeam" => "GetTeam", - "getTeamResponse" => "GetTeamResponse", - "getTeamsByStatement" => "GetTeamsByStatement", - "getTeamsByStatementResponse" => "GetTeamsByStatementResponse", - "updateTeam" => "UpdateTeam", - "updateTeamResponse" => "UpdateTeamResponse", - "updateTeams" => "UpdateTeams", - "updateTeamsResponse" => "UpdateTeamsResponse", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createAdExclusionRules" => "CreateAdExclusionRules", + "createAdExclusionRulesResponse" => "CreateAdExclusionRulesResponse", + "getAdExclusionRulesByStatement" => "GetAdExclusionRulesByStatement", + "getAdExclusionRulesByStatementResponse" => "GetAdExclusionRulesByStatementResponse", + "performAdExclusionRuleAction" => "PerformAdExclusionRuleAction", + "performAdExclusionRuleActionResponse" => "PerformAdExclusionRuleActionResponse", + "updateAdExclusionRules" => "UpdateAdExclusionRules", + "updateAdExclusionRulesResponse" => "UpdateAdExclusionRulesResponse", ); @@ -3152,51 +3081,18 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Creates a new {@code Team}. - * - * The following fields are required: - *

    - *
  • {@link Team#name}
  • - *
- * - * @param team the team to create - * @return the team with its ID filled in - */ - public function createTeam($team) { - $args = new CreateTeam($team); - $result = $this->__soapCall("createTeam", array($args)); - return $result->rval; - } - /** - * Creates new {@link Team} objects. - * - * The following fields are required: - *
    - *
  • {@link Team#name}
  • - *
- * - * @param teams the teams to create - * @return the created teams with their IDs filled in - */ - public function createTeams($teams) { - $args = new CreateTeams($teams); - $result = $this->__soapCall("createTeams", array($args)); - return $result->rval; - } - /** - * Returns the {@code Team} uniquely identified by the given ID. - * - * @param teamId the ID of the team, which must already exist - * @return the {@code Team} uniquely identified by the given ID + * Creates new {@link AdExclusionRule} objects. + * @param adExclusionRules the ad exclusion rules to create + * @return the created rules with their IDs filled in */ - public function getTeam($teamId) { - $args = new GetTeam($teamId); - $result = $this->__soapCall("getTeam", array($args)); + public function createAdExclusionRules($adExclusionRules) { + $args = new CreateAdExclusionRules($adExclusionRules); + $result = $this->__soapCall("createAdExclusionRules", array($args)); return $result->rval; } /** - * Gets a {@code TeamPage} of {@code Team} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for + * Gets a {@link AdExclusionRulePage} of {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for * filtering: * * @@ -3205,47 +3101,50 @@ public function getTeam($teamId) { * * * - * + * * * * - * + * * * - * - * + * + * * *
{@code id}{@link Team#id}{@link AdExclusionRule#id}
{@code name}{@link Team#name}{@link AdExclusionRule#name}
{@code description}{@link Team#description}{@code status}{@link AdExclusionRule#status}
* * @param filterStatement a Publisher Query Language statement used to filter - * a set of teams. - * @return the teams that match the given filter + * a set of rules + * @return the rules that match the given filter */ - public function getTeamsByStatement($filterStatement) { - $args = new GetTeamsByStatement($filterStatement); - $result = $this->__soapCall("getTeamsByStatement", array($args)); + public function getAdExclusionRulesByStatement($filterStatement) { + $args = new GetAdExclusionRulesByStatement($filterStatement); + $result = $this->__soapCall("getAdExclusionRulesByStatement", array($args)); return $result->rval; } /** - * Updates the specified {@code Team}. + * Performs action on {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. * - * @param team the team to update - * @return the updated team + * @param adExclusionRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad exclusion rules + * @return the result of the action performed */ - public function updateTeam($team) { - $args = new UpdateTeam($team); - $result = $this->__soapCall("updateTeam", array($args)); + public function performAdExclusionRuleAction($adExclusionRuleAction, $filterStatement) { + $args = new PerformAdExclusionRuleAction($adExclusionRuleAction, $filterStatement); + $result = $this->__soapCall("performAdExclusionRuleAction", array($args)); return $result->rval; } /** - * Updates the specified {@link Team} objects. + * Updates the specified {@link AdExclusionRule} objects. * - * @param teams the teams to update - * @return the updated teams + * @param adExclusionRules the ad exclusion rules to update + * @return the updated rules */ - public function updateTeams($teams) { - $args = new UpdateTeams($teams); - $result = $this->__soapCall("updateTeams", array($args)); + public function updateAdExclusionRules($adExclusionRules) { + $args = new UpdateAdExclusionRules($adExclusionRules); + $result = $this->__soapCall("updateAdExclusionRules", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201502/AdRuleService.php similarity index 83% rename from src/Google/Api/Ads/Dfp/v201311/AdRuleService.php rename to src/Google/Api/Ads/Dfp/v201502/AdRuleService.php index 45352ff46..1daac96a4 100755 --- a/src/Google/Api/Ads/Dfp/v201311/AdRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201502/AdRuleService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,51 +32,13 @@ /** * Represents the actions that can be performed on {@link AdRule} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleAction"; - /** - * @access public - * @var string - */ - public $AdRuleActionType; - private $_parameterMap = array( - "AdRuleAction.Type" => "AdRuleActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -93,8 +55,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { - $this->AdRuleActionType = $AdRuleActionType; + public function __construct() { } } @@ -104,11 +65,11 @@ public function __construct($AdRuleActionType = null) { /** * An {@link AdRule} contains data that the ad server will use to generate a playlist of video ads. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRule { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRule"; /** @@ -242,11 +203,11 @@ public function __construct($id = null, $name = null, $priority = null, $targeti /** * Captures a page of {@link AdRule} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRulePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRulePage"; /** @@ -298,11 +259,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * contain information about the types/number of ads to display, as well * as additional information on how the ad server will generate playlists. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseAdRuleSlot { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseAdRuleSlot"; /** @@ -371,44 +332,6 @@ class BaseAdRuleSlot { */ public $maxAdsInPod; - /** - * @access public - * @var string - */ - public $BaseAdRuleSlotType; - private $_parameterMap = array( - "BaseAdRuleSlot.Type" => "BaseAdRuleSlotType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -425,7 +348,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { $this->id = $id; $this->slotBehavior = $slotBehavior; $this->minVideoAdDuration = $minVideoAdDuration; @@ -437,7 +360,6 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio $this->minPodDuration = $minPodDuration; $this->maxPodDuration = $maxPodDuration; $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; } } @@ -449,11 +371,11 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio * back to back. Standard pods are defined by a {@link BaseAdRuleSlot#maxAdsInPod} and a * {@link BaseAdRuleSlot#maxVideoAdDuration}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StandardPoddingAdRuleSlot"; /** @@ -472,7 +394,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { parent::__construct(); $this->id = $id; $this->slotBehavior = $slotBehavior; @@ -485,7 +407,6 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio $this->minPodDuration = $minPodDuration; $this->maxPodDuration = $maxPodDuration; $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; } } @@ -495,11 +416,11 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio /** * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTargeting"; /** @@ -546,11 +467,11 @@ public function __construct($adUnitId = null, $includeDescendants = null) { *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -571,44 +492,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -625,11 +508,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -640,11 +522,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Provides {@link LineItem} objects the ability to target or exclude * technologies. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargeting"; /** @@ -750,11 +632,11 @@ public function __construct($bandwidthGroupTargeting = null, $browserTargeting = /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -779,13 +661,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -795,11 +676,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -808,44 +689,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -862,81 +705,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -946,11 +716,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -975,13 +745,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -992,11 +761,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents bandwidth groups that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BandwidthGroupTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroupTargeting"; /** @@ -1040,11 +809,11 @@ public function __construct($isTargeted = null, $bandwidthGroups = null) { * Represents browser languages that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserLanguageTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguageTargeting"; /** @@ -1088,11 +857,11 @@ public function __construct($isTargeted = null, $browserLanguages = null) { * Represents browsers that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserTargeting"; /** @@ -1131,24 +900,22 @@ public function __construct($isTargeted = null, $browsers = null) { } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -1166,10 +933,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1179,11 +948,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -1208,13 +977,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1225,11 +993,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents one or more {@link CustomTargetingValue custom targeting values} from different * {@link CustomTargetingKey custom targeting keys} ANDed together. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; /** @@ -1265,11 +1033,11 @@ public function __construct($customTargetingValueIds = null) { /** * Lists all errors related to {@link ContentMetadataTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError"; /** @@ -1294,13 +1062,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1310,11 +1077,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Used to target {@link LineItem}s to specific videos on a publisher's site. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentTargeting"; /** @@ -1400,11 +1167,11 @@ public function __construct($targetedContentIds = null, $excludedContentIds = nu * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -1429,13 +1196,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1448,51 +1214,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is * subject to the rules defined on {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaNode"; - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1509,8 +1237,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + public function __construct() { } } @@ -1520,11 +1247,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1574,11 +1301,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1643,11 +1370,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * {@code DayPart} represents a time-period within a day of the week which is * targeted by a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPart { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPart"; /** @@ -1698,11 +1425,11 @@ public function __construct($dayOfWeek = null, $startTime = null, $endTime = nul * Modify the delivery times of line items for particular days of the week. By * default, line items are served at all days and times. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargeting"; /** @@ -1745,11 +1472,11 @@ public function __construct($dayParts = null, $timeZone = null) { /** * The action used for pausing {@link AdRule} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeactivateAdRules extends AdRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateAdRules"; /** @@ -1768,9 +1495,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { + public function __construct() { parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; } } @@ -1780,11 +1506,11 @@ public function __construct($AdRuleActionType = null) { /** * The action used for deleting {@link AdRule} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeleteAdRules extends AdRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeleteAdRules"; /** @@ -1803,9 +1529,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { + public function __construct() { parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; } } @@ -1815,11 +1540,11 @@ public function __construct($AdRuleActionType = null) { /** * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCapabilityTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapabilityTargeting"; /** @@ -1862,11 +1587,11 @@ public function __construct($targetedDeviceCapabilities = null, $excludedDeviceC /** * Represents device categories that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCategoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategoryTargeting"; /** @@ -1910,11 +1635,11 @@ public function __construct($targetedDeviceCategories = null, $excludedDeviceCat * Represents device manufacturer that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceManufacturerTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturerTargeting"; /** @@ -1958,11 +1683,11 @@ public function __construct($isTargeted = null, $deviceManufacturers = null) { * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1987,13 +1712,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2017,11 +1741,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * York as one of the targeted locations * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargeting"; /** @@ -2066,11 +1790,11 @@ public function __construct($targetedLocations = null, $excludedLocations = null * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -2095,13 +1819,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2111,11 +1834,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargeting"; /** @@ -2166,11 +1889,11 @@ public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $t * Lists all inventory errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError"; /** @@ -2195,13 +1918,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2214,11 +1936,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * the location will be represented as just the base class, otherwise it will be * sub-classed correctly. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpLocation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Location"; /** @@ -2245,44 +1967,6 @@ class DfpLocation { */ public $displayName; - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2299,12 +1983,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null, $LocationType = null) { + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { $this->id = $id; $this->type = $type; $this->canonicalParentId = $canonicalParentId; $this->displayName = $displayName; - $this->LocationType = $LocationType; } } @@ -2314,11 +1997,11 @@ public function __construct($id = null, $type = null, $canonicalParentId = null, /** * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileCarrierTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrierTargeting"; /** @@ -2361,11 +2044,11 @@ public function __construct($isTargeted = null, $mobileCarriers = null) { /** * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceSubmodelTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodelTargeting"; /** @@ -2408,11 +2091,11 @@ public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobi /** * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceTargeting"; /** @@ -2455,11 +2138,11 @@ public function __construct($targetedMobileDevices = null, $excludedMobileDevice /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -2484,57 +2167,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -2545,11 +2183,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { * Represents operating systems that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemTargeting"; /** @@ -2592,11 +2230,11 @@ public function __construct($isTargeted = null, $operatingSystems = null) { /** * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemVersionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersionTargeting"; /** @@ -2639,11 +2277,11 @@ public function __construct($targetedOperatingSystemVersions = null, $excludedOp /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -2668,13 +2306,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2684,11 +2321,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to podding fields in ad rule slots. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PoddingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PoddingError"; /** @@ -2713,13 +2350,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2730,11 +2366,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2759,13 +2395,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2776,11 +2411,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2805,13 +2440,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2822,11 +2456,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2851,13 +2485,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2867,11 +2500,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2896,13 +2529,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2913,11 +2545,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2942,13 +2574,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2958,11 +2589,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -2987,13 +2618,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3003,11 +2633,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -3022,12 +2652,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3044,10 +2668,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -3057,11 +2680,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -3132,11 +2755,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -3179,11 +2802,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -3208,13 +2831,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3224,11 +2846,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -3253,13 +2875,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3270,11 +2891,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -3318,11 +2939,11 @@ public function __construct($key = null, $value = null) { * Contains targeting criteria for {@link LineItem} objects. See * {@link LineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Targeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Targeting"; /** @@ -3407,11 +3028,11 @@ public function __construct($geoTargeting = null, $inventoryTargeting = null, $d /** * Represents a technology entity that can be targeted. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Technology"; /** @@ -3426,44 +3047,6 @@ class Technology { */ public $name; - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3480,10 +3063,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -3493,11 +3075,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific time in a day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TimeOfDay { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TimeOfDay"; /** @@ -3540,11 +3122,11 @@ public function __construct($hour = null, $minute = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -3563,12 +3145,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3579,11 +3160,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the * requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UnknownAdRuleSlot extends BaseAdRuleSlot { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UnknownAdRuleSlot"; /** @@ -3602,7 +3183,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { parent::__construct(); $this->id = $id; $this->slotBehavior = $slotBehavior; @@ -3615,7 +3196,6 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio $this->minPodDuration = $minPodDuration; $this->maxPodDuration = $maxPodDuration; $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; } } @@ -3625,11 +3205,11 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -3666,11 +3246,11 @@ public function __construct($numChanges = null) { * Provides line items the ability to target or exclude users visiting their * websites from a list of domains or subdomains. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UserDomainTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargeting"; /** @@ -3713,51 +3293,13 @@ public function __construct($domains = null, $targeted = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3774,8 +3316,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -3786,11 +3327,11 @@ public function __construct($ValueType = null) { * Represents a targetable position within a video. A video ad can be targeted * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPosition { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPosition"; /** @@ -3837,11 +3378,11 @@ public function __construct($positionType = null, $midrollIndex = null) { * {@code post-roll} (after a video has completed playback) and * {@code mid-roll} (during video playback). * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionTargeting"; /** @@ -3879,11 +3420,11 @@ public function __construct($targetedPositions = null) { * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, * either first or last will target that position. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionWithinPod { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionWithinPod"; /** @@ -3919,11 +3460,11 @@ public function __construct($index = null) { /** * Represents the options for targetable positions within a video. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionTarget { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionTarget"; /** @@ -3973,11 +3514,11 @@ public function __construct($videoPosition = null, $videoBumperType = null, $vid /** * Describes reasons for {@code AdRuleDateError}s. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleDateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleDateError.Reason"; /** @@ -4006,11 +3547,11 @@ public function __construct() { /** * Describes reason for {@code AdRuleFrequencyCapError}s. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleFrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleFrequencyCapError.Reason"; /** @@ -4039,11 +3580,11 @@ public function __construct() { /** * Reasons for an {@code AdRulePriorityError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRulePriorityErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRulePriorityError.Reason"; /** @@ -4072,11 +3613,11 @@ public function __construct() { /** * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleSlotBehavior { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleSlotBehavior"; /** @@ -4105,11 +3646,11 @@ public function __construct() { /** * Types of bumper ads on an ad rule slot. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleSlotBumper { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleSlotBumper"; /** @@ -4138,11 +3679,11 @@ public function __construct() { /** * Describes reason for {@code AdRuleSlotError}s. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleSlotErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleSlotError.Reason"; /** @@ -4171,11 +3712,11 @@ public function __construct() { /** * Represents the status of ad rules and ad rule slots. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleStatus"; /** @@ -4205,11 +3746,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -4241,11 +3782,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -4270,15 +3811,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -4307,11 +3881,11 @@ public function __construct() { /** * The reasons for the metadata targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError.Reason"; /** @@ -4340,11 +3914,11 @@ public function __construct() { /** * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria.ComparisonOperator"; /** @@ -4373,11 +3947,11 @@ public function __construct() { /** * Specifies the available logical operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaSetLogicalOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; /** @@ -4406,11 +3980,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError.Reason"; /** @@ -4439,11 +4013,11 @@ public function __construct() { /** * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceSegmentCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; /** @@ -4472,11 +4046,11 @@ public function __construct() { /** * Days of the week. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayOfWeek { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayOfWeek"; /** @@ -4505,11 +4079,11 @@ public function __construct() { /** * Represents the time zone to be used for {@link DayPartTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeliveryTimeZone { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeliveryTimeZone"; /** @@ -4538,11 +4112,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -4571,11 +4145,11 @@ public function __construct() { /** * Types of behavior for frequency caps within ad rules. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapBehavior { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapBehavior"; /** @@ -4604,11 +4178,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -4637,11 +4211,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError.Reason"; /** @@ -4670,11 +4244,11 @@ public function __construct() { /** * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MidrollFrequencyType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MidrollFrequencyType"; /** @@ -4704,11 +4278,11 @@ public function __construct() { * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This * field is required. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MinuteOfHour { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MinuteOfHour"; /** @@ -4737,11 +4311,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -4770,11 +4344,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -4803,11 +4377,11 @@ public function __construct() { /** * Describes reason for {@code PoddingError}s. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PoddingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PoddingError.Reason"; /** @@ -4836,11 +4410,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -4869,11 +4443,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -4912,11 +4486,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -4945,11 +4519,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -4978,11 +4552,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -5011,11 +4585,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -5045,11 +4619,11 @@ public function __construct() { * Specifies the start type to use for an entity with a start date time field. * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StartDateTimeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StartDateTimeType"; /** @@ -5078,11 +4652,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -5111,11 +4685,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -5147,11 +4721,11 @@ public function __construct() { * pod positions, {@link VideoPositionType#PREROLL}, * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoBumperType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoBumperType"; /** @@ -5180,11 +4754,11 @@ public function __construct() { /** * Represents a targetable position within a video. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPosition.Type"; /** @@ -5209,103 +4783,6 @@ public function __construct() { } } -if (!class_exists("CreateAdRule", false)) { - /** - * Creates a new {@link AdRule}. - * - * The following fields are required: - *
    - *
  • {@link AdRule#id}
  • - *
  • {@link AdRule#name}
  • - *
  • {@link AdRule#priority}
  • - *
  • {@link AdRule#startDateTime}
  • - *
  • {@link AdRule#endDateTime}
  • - *
  • {@link AdRule#preroll}
  • - *
  • {@link AdRule#midroll}
  • - *
  • {@link AdRule#postroll}
  • - *
- * - * @param adRule the ad rule to create - * @return the ad rule with its ID filled in - * @throws ApiException if there the ad rule is invalid or there is another - * error - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $adRule; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRule = null) { - $this->adRule = $adRule; - } - - } -} - -if (!class_exists("CreateAdRuleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateAdRuleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateAdRules", false)) { /** * Creates new {@link AdRule} objects. @@ -5313,11 +4790,11 @@ public function __construct($rval = null) { * @param adRules the ad rules to create * @return the created ad rules with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateAdRules { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5353,11 +4830,11 @@ public function __construct($adRules = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateAdRulesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5389,91 +4866,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetAdRule", false)) { - /** - * Returns the {@link AdRule} uniquely identified by the given ID. - * - * @param adRuleId the ID of the ad rule, which must already exist - * @return the {@code AdRule} uniquely identified by the given ID - * @throws ApiException if there is an error retrieving the ad rule - * or the ID is invalid - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $adRuleId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRuleId = null) { - $this->adRuleId = $adRuleId; - } - - } -} - -if (!class_exists("GetAdRuleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetAdRuleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetAdRulesByStatement", false)) { /** * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given @@ -5506,11 +4898,11 @@ public function __construct($rval = null) { * @throws ApiException if the ID of the active network does not exist or * there is a backend error * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetAdRulesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5546,11 +4938,11 @@ public function __construct($statement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetAdRulesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5592,11 +4984,11 @@ public function __construct($rval = null) { * a set of ad rules * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformAdRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5639,11 +5031,11 @@ public function __construct($adRuleAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformAdRuleActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5675,26 +5067,26 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateAdRule", false)) { +if (!class_exists("UpdateAdRules", false)) { /** - * Updates a previously-created {@link AdRule}. + * Updates the specified {@link AdRule} objects. * - * @param adRule the ad rule that should be updated - * @return the updated ad rule - * @throws ApiException if there is an error updating the ad rule + * @param adRules the ad rules to update + * @return the updated ad rules + * @throws ApiException if there is an error updating the ad rules * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateAdRule { + class UpdateAdRules { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var AdRule + * @var AdRule[] */ - public $adRule; + public $adRules; /** * Gets the namesapce of this class @@ -5712,27 +5104,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adRule = null) { - $this->adRule = $adRule; + public function __construct($adRules = null) { + $this->adRules = $adRules; } } } -if (!class_exists("UpdateAdRuleResponse", false)) { +if (!class_exists("UpdateAdRulesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateAdRuleResponse { + class UpdateAdRulesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var AdRule + * @var AdRule[] */ public $rval; @@ -5759,66 +5151,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateAdRules", false)) { - /** - * Updates the specified {@link AdRule} objects. - * - * @param adRules the ad rules to update - * @return the updated ad rules - * @throws ApiException if there is an error updating the ad rules - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateAdRules { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule[] - */ - public $adRules; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adRules = null) { - $this->adRules = $adRules; - } - - } -} - -if (!class_exists("UpdateAdRulesResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateAdRulesResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -5836,8 +5185,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -5847,11 +5196,11 @@ public function __construct($rval = null) { /** * The action used for resuming {@link AdRule} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ActivateAdRules extends AdRuleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateAdRules"; /** @@ -5870,9 +5219,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { + public function __construct() { parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; } } @@ -5882,11 +5230,11 @@ public function __construct($AdRuleActionType = null) { /** * Lists all errors associated with ad rule start and end dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleDateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleDateError"; /** @@ -5911,13 +5259,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5927,11 +5274,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to ad rule frequency caps * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleFrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleFrequencyCapError"; /** @@ -5956,13 +5303,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5972,11 +5318,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NoPoddingAdRuleSlot extends BaseAdRuleSlot { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NoPoddingAdRuleSlot"; /** @@ -5995,7 +5341,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { parent::__construct(); $this->id = $id; $this->slotBehavior = $slotBehavior; @@ -6008,7 +5354,6 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio $this->minPodDuration = $minPodDuration; $this->maxPodDuration = $maxPodDuration; $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; } } @@ -6020,11 +5365,11 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio * {@link BaseAdRuleSlot#maxPodDuration} and a {@link BaseAdRuleSlot#maxAdsInPod}, and the ad * server chooses the best ads for the alloted duration. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OptimizedPoddingAdRuleSlot"; /** @@ -6043,7 +5388,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { parent::__construct(); $this->id = $id; $this->slotBehavior = $slotBehavior; @@ -6056,7 +5401,6 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio $this->minPodDuration = $minPodDuration; $this->maxPodDuration = $maxPodDuration; $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; } } @@ -6066,11 +5410,11 @@ public function __construct($id = null, $slotBehavior = null, $minVideoAdDuratio /** * Errors associated with ad rule priorities. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRulePriorityError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRulePriorityError"; /** @@ -6095,13 +5439,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -6111,11 +5454,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to ad rule slots. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleSlotError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdRuleSlotError"; /** @@ -6140,13 +5483,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -6156,11 +5498,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -6185,11 +5527,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -6200,11 +5541,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti * Represents a group of bandwidths that are logically organized by some well * known generic names such as 'Cable' or 'DSL'. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BandwidthGroup extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroup"; /** @@ -6223,11 +5564,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6237,11 +5577,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -6266,10 +5606,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6279,11 +5618,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an internet browser. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Browser extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Browser"; /** @@ -6314,13 +5653,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6330,11 +5668,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $id = nu /** * Represents a Browser's language. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserLanguage extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguage"; /** @@ -6353,11 +5691,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6371,11 +5708,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * criteria targeting tree is subject to the rules defined on * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaSet"; /** @@ -6406,11 +5743,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { + public function __construct($logicalOperator = null, $children = null) { parent::__construct(); $this->logicalOperator = $logicalOperator; $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -6421,11 +5757,11 @@ public function __construct($logicalOperator = null, $children = null, $CustomCr * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree * structure. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaLeaf extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaLeaf"; /** @@ -6444,9 +5780,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { + public function __construct() { parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -6456,11 +5791,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentCriteria"; /** @@ -6504,11 +5839,11 @@ public function __construct($operator = null, $audienceSegmentIds = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -6533,10 +5868,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6546,11 +5880,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -6575,10 +5909,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6588,11 +5921,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents a capability of a physical device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCapability extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapability"; /** @@ -6611,11 +5944,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6625,11 +5957,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents the category of a device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCategory extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategory"; /** @@ -6648,11 +5980,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6662,11 +5993,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a mobile device's manufacturer. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceManufacturer extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturer"; /** @@ -6685,11 +6016,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6700,11 +6030,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * Represents a mobile carrier. * Carrier targeting is only available to DFP mobile publishers. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileCarrier extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrier"; /** @@ -6723,11 +6053,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6737,11 +6066,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a Mobile Device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDevice extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDevice"; /** @@ -6766,12 +6095,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->manufacturerCriterionId = $manufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6781,11 +6109,11 @@ public function __construct($manufacturerCriterionId = null, $id = null, $name = /** * Represents a mobile device submodel. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceSubmodel extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodel"; /** @@ -6816,13 +6144,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6832,11 +6159,11 @@ public function __construct($mobileDeviceCriterionId = null, $deviceManufacturer /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -6861,10 +6188,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6874,11 +6200,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an Operating System, such as Linux, Mac OS or Windows. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystem extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystem"; /** @@ -6897,11 +6223,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6911,11 +6236,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific version of an operating system. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemVersion extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersion"; /** @@ -6952,14 +6277,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->microVersion = $microVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6969,11 +6293,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $microVe /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -6998,10 +6322,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -7011,11 +6334,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -7040,10 +6363,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -7055,11 +6377,11 @@ public function __construct($value = null, $ValueType = null) { * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} * or {@link CustomTargetingKey.Type#FREEFORM}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria"; /** @@ -7110,25 +6432,26 @@ public function __construct($keyId = null, $valueIds = null, $operator = null) { /** * AdRuleService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdRuleService extends DfpSoapClient { const SERVICE_NAME = "AdRuleService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/AdRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/AdRuleService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/AdRuleService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/AdRuleService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateAdRules" => "ActivateAdRules", "AdRuleAction" => "AdRuleAction", "AdRuleDateError" => "AdRuleDateError", @@ -7147,7 +6470,6 @@ class AdRuleService extends DfpSoapClient { "TechnologyTargeting" => "TechnologyTargeting", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BandwidthGroup" => "BandwidthGroup", "BandwidthGroupTargeting" => "BandwidthGroupTargeting", @@ -7156,7 +6478,7 @@ class AdRuleService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -7195,7 +6517,6 @@ class AdRuleService extends DfpSoapClient { "MobileDeviceTargeting" => "MobileDeviceTargeting", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OperatingSystem" => "OperatingSystem", "OperatingSystemTargeting" => "OperatingSystemTargeting", "OperatingSystemVersion" => "OperatingSystemVersion", @@ -7237,6 +6558,7 @@ class AdRuleService extends DfpSoapClient { "AdRuleStatus" => "AdRuleStatus", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", @@ -7265,18 +6587,12 @@ class AdRuleService extends DfpSoapClient { "StringLengthError.Reason" => "StringLengthErrorReason", "VideoBumperType" => "VideoBumperType", "VideoPosition.Type" => "VideoPositionType", - "createAdRule" => "CreateAdRule", - "createAdRuleResponse" => "CreateAdRuleResponse", "createAdRules" => "CreateAdRules", "createAdRulesResponse" => "CreateAdRulesResponse", - "getAdRule" => "GetAdRule", - "getAdRuleResponse" => "GetAdRuleResponse", "getAdRulesByStatement" => "GetAdRulesByStatement", "getAdRulesByStatementResponse" => "GetAdRulesByStatementResponse", "performAdRuleAction" => "PerformAdRuleAction", "performAdRuleActionResponse" => "PerformAdRuleActionResponse", - "updateAdRule" => "UpdateAdRule", - "updateAdRuleResponse" => "UpdateAdRuleResponse", "updateAdRules" => "UpdateAdRules", "updateAdRulesResponse" => "UpdateAdRulesResponse", ); @@ -7292,31 +6608,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link AdRule}. - * - * The following fields are required: - *

    - *
  • {@link AdRule#id}
  • - *
  • {@link AdRule#name}
  • - *
  • {@link AdRule#priority}
  • - *
  • {@link AdRule#startDateTime}
  • - *
  • {@link AdRule#endDateTime}
  • - *
  • {@link AdRule#preroll}
  • - *
  • {@link AdRule#midroll}
  • - *
  • {@link AdRule#postroll}
  • - *
- * - * @param adRule the ad rule to create - * @return the ad rule with its ID filled in - * @throws ApiException if there the ad rule is invalid or there is another - * error - */ - public function createAdRule($adRule) { - $args = new CreateAdRule($adRule); - $result = $this->__soapCall("createAdRule", array($args)); - return $result->rval; - } /** * Creates new {@link AdRule} objects. * @@ -7328,19 +6619,6 @@ public function createAdRules($adRules) { $result = $this->__soapCall("createAdRules", array($args)); return $result->rval; } - /** - * Returns the {@link AdRule} uniquely identified by the given ID. - * - * @param adRuleId the ID of the ad rule, which must already exist - * @return the {@code AdRule} uniquely identified by the given ID - * @throws ApiException if there is an error retrieving the ad rule - * or the ID is invalid - */ - public function getAdRule($adRuleId) { - $args = new GetAdRule($adRuleId); - $result = $this->__soapCall("getAdRule", array($args)); - return $result->rval; - } /** * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -7391,18 +6669,6 @@ public function performAdRuleAction($adRuleAction, $filterStatement) { $result = $this->__soapCall("performAdRuleAction", array($args)); return $result->rval; } - /** - * Updates a previously-created {@link AdRule}. - * - * @param adRule the ad rule that should be updated - * @return the updated ad rule - * @throws ApiException if there is an error updating the ad rule - */ - public function updateAdRule($adRule) { - $args = new UpdateAdRule($adRule); - $result = $this->__soapCall("updateAdRule", array($args)); - return $result->rval; - } /** * Updates the specified {@link AdRule} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201502/AudienceSegmentService.php similarity index 84% rename from src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php rename to src/Google/Api/Ads/Dfp/v201502/AudienceSegmentService.php index 15b02f3ca..abb756479 100755 --- a/src/Google/Api/Ads/Dfp/v201308/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201502/AudienceSegmentService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTargeting"; /** @@ -83,11 +83,11 @@ public function __construct($adUnitId = null, $includeDescendants = null) { *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -108,44 +108,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -162,11 +124,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -176,11 +137,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -205,13 +166,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -221,11 +181,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -234,44 +194,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -288,9 +210,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -302,11 +223,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * publisher network. For a {@link SharedAudienceSegment} or a {@link ThirdPartyAudienceSegment}, it * would be the entity that provides that {@link AudienceSegment}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentDataProvider { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentDataProvider"; /** @@ -342,11 +263,11 @@ public function __construct($name = null) { /** * Represents a page of {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentPage"; /** @@ -392,87 +313,15 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res } } -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - if (!class_exists("AuthenticationError", false)) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -497,36 +346,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -544,10 +390,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -557,11 +405,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -586,13 +434,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -605,51 +452,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is * subject to the rules defined on {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaNode"; - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -666,8 +475,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + public function __construct() { } } @@ -677,11 +485,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -731,11 +539,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -800,11 +608,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -829,13 +637,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -847,11 +654,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -876,13 +683,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -892,11 +698,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargeting"; /** @@ -946,11 +752,11 @@ public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $t /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -993,11 +799,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1022,57 +828,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1082,11 +843,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1111,13 +872,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1127,11 +887,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1156,13 +916,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1173,11 +932,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1202,13 +961,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1219,11 +977,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1248,13 +1006,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1265,11 +1022,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Rule of a {@link FirstPartyAudienceSegment} that defines user's eligibility criteria to be part * of a segment. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FirstPartyAudienceSegmentRule { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FirstPartyAudienceSegmentRule"; /** @@ -1313,11 +1070,11 @@ public function __construct($inventoryRule = null, $customCriteriaRule = null) { * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1342,13 +1099,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1358,11 +1114,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1387,13 +1143,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1403,51 +1158,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Action that can be performed on {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentAction"; - /** - * @access public - * @var string - */ - public $AudienceSegmentActionType; - private $_parameterMap = array( - "AudienceSegmentAction.Type" => "AudienceSegmentActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1464,8 +1181,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AudienceSegmentActionType = null) { - $this->AudienceSegmentActionType = $AudienceSegmentActionType; + public function __construct() { } } @@ -1475,11 +1191,11 @@ public function __construct($AudienceSegmentActionType = null) { /** * An {@link AudienceSegment} represents audience segment object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegment { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegment"; /** @@ -1494,6 +1210,12 @@ class AudienceSegment { */ public $name; + /** + * @access public + * @var integer[] + */ + public $categoryIds; + /** * @access public * @var string @@ -1524,44 +1246,6 @@ class AudienceSegment { */ public $type; - /** - * @access public - * @var string - */ - public $AudienceSegmentType; - private $_parameterMap = array( - "AudienceSegment.Type" => "AudienceSegmentType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1578,15 +1262,15 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { + public function __construct($id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { $this->id = $id; $this->name = $name; + $this->categoryIds = $categoryIds; $this->description = $description; $this->status = $status; $this->size = $size; $this->dataProvider = $dataProvider; $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; } } @@ -1596,11 +1280,11 @@ public function __construct($id = null, $name = null, $description = null, $stat /** * Errors that could occur on audience segment related requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentError"; /** @@ -1625,13 +1309,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1641,11 +1324,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1670,13 +1353,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1687,11 +1369,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A {@link SharedAudienceSegment} is an {@link AudienceSegment} owned by another entity and shared * with the publisher network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SharedAudienceSegment extends AudienceSegment { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SharedAudienceSegment"; /** @@ -1710,16 +1392,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { + public function __construct($id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { parent::__construct(); $this->id = $id; $this->name = $name; + $this->categoryIds = $categoryIds; $this->description = $description; $this->status = $status; $this->size = $size; $this->dataProvider = $dataProvider; $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; } } @@ -1729,11 +1411,11 @@ public function __construct($id = null, $name = null, $description = null, $stat /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1748,12 +1430,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1770,10 +1446,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1783,11 +1458,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1858,11 +1533,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1905,11 +1580,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1934,13 +1609,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1951,11 +1625,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1998,11 +1672,11 @@ public function __construct($key = null, $value = null) { /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -2038,51 +1712,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2099,8 +1735,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2111,11 +1746,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2147,11 +1782,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2176,15 +1811,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2213,11 +1881,11 @@ public function __construct() { /** * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria.ComparisonOperator"; /** @@ -2246,11 +1914,11 @@ public function __construct() { /** * Specifies the available logical operators. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomCriteriaSetLogicalOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; /** @@ -2279,11 +1947,11 @@ public function __construct() { /** * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; /** @@ -2312,11 +1980,11 @@ public function __construct() { /** * Approval status values for {@link ThirdPartyAudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus"; /** @@ -2341,15 +2009,48 @@ public function __construct() { } } +if (!class_exists("ThirdPartyAudienceSegmentLicenseType", false)) { + /** + * Specifies the license type of a {@link ThirdPartyAudienceSegment}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ThirdPartyAudienceSegmentLicenseType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ThirdPartyAudienceSegment.LicenseType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2378,11 +2079,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2411,11 +2112,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2444,11 +2145,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2477,11 +2178,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2510,11 +2211,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2543,11 +2244,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2586,11 +2287,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2619,11 +2320,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2652,11 +2353,11 @@ public function __construct() { /** * Specifies types for {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentAudienceSegmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegment.AudienceSegmentType"; /** @@ -2685,11 +2386,11 @@ public function __construct() { /** * Specifies the statuses for {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegment.Status"; /** @@ -2718,11 +2419,11 @@ public function __construct() { /** * Reason of the given {@link AudienceSegmentError}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentError.Reason"; /** @@ -2751,11 +2452,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2784,11 +2485,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2820,11 +2521,11 @@ public function __construct() { * @param segments first-party audience segments to create * @return created first-party audience segments * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateAudienceSegments { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2860,11 +2561,11 @@ public function __construct($segments = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateAudienceSegmentsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2952,11 +2653,11 @@ public function __construct($rval = null) { * segments * @return the audience segments that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetAudienceSegmentsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2992,11 +2693,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetAudienceSegmentsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3038,11 +2739,11 @@ public function __construct($rval = null) { * segments * @return {@link UpdateResult} indicating the result * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformAudienceSegmentAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3085,11 +2786,11 @@ public function __construct($action = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformAudienceSegmentActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3128,11 +2829,11 @@ public function __construct($rval = null) { * @param segments first-party audience segments to update * @return updated first-party audience segments * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateAudienceSegments { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3168,11 +2869,11 @@ public function __construct($segments = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateAudienceSegmentsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3204,15 +2905,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ActivateAudienceSegments", false)) { /** * Action that can be performed on {@link FirstPartyAudienceSegment} objects to activate them. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivateAudienceSegments extends AudienceSegmentAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateAudienceSegments"; /** @@ -3231,9 +2973,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AudienceSegmentActionType = null) { + public function __construct() { parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; } } @@ -3243,11 +2984,11 @@ public function __construct($AudienceSegmentActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3272,11 +3013,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3286,11 +3026,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to approve them. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApproveAudienceSegments extends AudienceSegmentAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApproveAudienceSegments"; /** @@ -3309,9 +3049,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AudienceSegmentActionType = null) { + public function __construct() { parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; } } @@ -3321,11 +3060,11 @@ public function __construct($AudienceSegmentActionType = null) { /** * A {@link FirstPartyAudienceSegment} is an {@link AudienceSegment} owned by the publisher network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FirstPartyAudienceSegment extends AudienceSegment { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FirstPartyAudienceSegment"; /** @@ -3344,16 +3083,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { + public function __construct($id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { parent::__construct(); $this->id = $id; $this->name = $name; + $this->categoryIds = $categoryIds; $this->description = $description; $this->status = $status; $this->size = $size; $this->dataProvider = $dataProvider; $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; } } @@ -3363,11 +3102,11 @@ public function __construct($id = null, $name = null, $description = null, $stat /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3392,10 +3131,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3409,11 +3147,11 @@ public function __construct($value = null, $ValueType = null) { * criteria targeting tree is subject to the rules defined on * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaSet"; /** @@ -3444,11 +3182,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { + public function __construct($logicalOperator = null, $children = null) { parent::__construct(); $this->logicalOperator = $logicalOperator; $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -3459,11 +3196,11 @@ public function __construct($logicalOperator = null, $children = null, $CustomCr * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree * structure. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomCriteriaLeaf extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaLeaf"; /** @@ -3482,9 +3219,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { + public function __construct() { parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -3494,11 +3230,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentCriteria"; /** @@ -3542,11 +3278,11 @@ public function __construct($operator = null, $audienceSegmentIds = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3571,10 +3307,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3584,11 +3319,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3613,10 +3348,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3626,11 +3360,11 @@ public function __construct($value = null, $ValueType = null) { /** * Action that can be performed on {@link FirstPartyAudienceSegment} objects to deactivate them. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivateAudienceSegments extends AudienceSegmentAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateAudienceSegments"; /** @@ -3649,9 +3383,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AudienceSegmentActionType = null) { + public function __construct() { parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; } } @@ -3662,11 +3395,11 @@ public function __construct($AudienceSegmentActionType = null) { * A {@link ThirdPartyAudienceSegment} is an {@link AudienceSegment} owned by a data provider and * licensed to the DFP publisher. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ThirdPartyAudienceSegment extends AudienceSegment { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ThirdPartyAudienceSegment"; /** @@ -3681,6 +3414,12 @@ class ThirdPartyAudienceSegment extends AudienceSegment { */ public $cost; + /** + * @access public + * @var tnsThirdPartyAudienceSegmentLicenseType + */ + public $licenseType; + /** * @access public * @var DateTime @@ -3709,20 +3448,21 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($approvalStatus = null, $cost = null, $startDateTime = null, $endDateTime = null, $id = null, $name = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null, $AudienceSegmentType = null) { + public function __construct($approvalStatus = null, $cost = null, $licenseType = null, $startDateTime = null, $endDateTime = null, $id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { parent::__construct(); $this->approvalStatus = $approvalStatus; $this->cost = $cost; + $this->licenseType = $licenseType; $this->startDateTime = $startDateTime; $this->endDateTime = $endDateTime; $this->id = $id; $this->name = $name; + $this->categoryIds = $categoryIds; $this->description = $description; $this->status = $status; $this->size = $size; $this->dataProvider = $dataProvider; $this->type = $type; - $this->AudienceSegmentType = $AudienceSegmentType; } } @@ -3734,11 +3474,11 @@ public function __construct($approvalStatus = null, $cost = null, $startDateTime * the publisher network. It doesn't contain a rule. Cookies are usually added to this segment via * cookie upload. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NonRuleBasedFirstPartyAudienceSegment extends FirstPartyAudienceSegment { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NonRuleBasedFirstPartyAudienceSegment"; /** @@ -3768,11 +3508,11 @@ public function __construct() { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3797,10 +3537,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3811,11 +3550,11 @@ public function __construct($value = null, $ValueType = null) { * Action that can be performed on {@link FirstPartyAudienceSegment} objects to populate them based * on last 30 days of traffic. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PopulateAudienceSegments extends AudienceSegmentAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PopulateAudienceSegments"; /** @@ -3834,9 +3573,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AudienceSegmentActionType = null) { + public function __construct() { parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; } } @@ -3846,11 +3584,11 @@ public function __construct($AudienceSegmentActionType = null) { /** * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to reject them. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RejectAudienceSegments extends AudienceSegmentAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RejectAudienceSegments"; /** @@ -3869,9 +3607,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AudienceSegmentActionType = null) { + public function __construct() { parent::__construct(); - $this->AudienceSegmentActionType = $AudienceSegmentActionType; } } @@ -3882,11 +3619,11 @@ public function __construct($AudienceSegmentActionType = null) { * A {@link RuleBasedFirstPartyAudienceSegmentSummary} is a {@link FirstPartyAudienceSegment} owned * by the publisher network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RuleBasedFirstPartyAudienceSegmentSummary extends FirstPartyAudienceSegment { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RuleBasedFirstPartyAudienceSegmentSummary"; /** @@ -3933,15 +3670,56 @@ public function __construct($pageViews = null, $recencyDays = null, $membershipE } } +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + if (!class_exists("TextValue", false)) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3966,10 +3744,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3981,11 +3758,11 @@ public function __construct($value = null, $ValueType = null) { * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} * or {@link CustomTargetingKey.Type#FREEFORM}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria"; /** @@ -4037,11 +3814,11 @@ public function __construct($keyId = null, $valueIds = null, $operator = null) { * A {@link RuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by the * publisher network. It contains a rule. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RuleBasedFirstPartyAudienceSegment extends RuleBasedFirstPartyAudienceSegmentSummary { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RuleBasedFirstPartyAudienceSegment"; /** @@ -4081,25 +3858,26 @@ public function __construct($rule = null, $pageViews = null, $recencyDays = null /** * AudienceSegmentService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AudienceSegmentService extends DfpSoapClient { const SERVICE_NAME = "AudienceSegmentService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/AudienceSegmentService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/AudienceSegmentService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/AudienceSegmentService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateAudienceSegments" => "ActivateAudienceSegments", "AdUnitTargeting" => "AdUnitTargeting", "ApiError" => "ApiError", @@ -4109,11 +3887,10 @@ class AudienceSegmentService extends DfpSoapClient { "ApproveAudienceSegments" => "ApproveAudienceSegments", "AudienceSegmentDataProvider" => "AudienceSegmentDataProvider", "AudienceSegmentPage" => "AudienceSegmentPage", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomCriteria" => "CustomCriteria", "CustomCriteriaSet" => "CustomCriteriaSet", @@ -4133,7 +3910,6 @@ class AudienceSegmentService extends DfpSoapClient { "NonRuleBasedFirstPartyAudienceSegment" => "NonRuleBasedFirstPartyAudienceSegment", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PopulateAudienceSegments" => "PopulateAudienceSegments", @@ -4149,6 +3925,7 @@ class AudienceSegmentService extends DfpSoapClient { "AudienceSegment" => "AudienceSegment", "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SharedAudienceSegment" => "SharedAudienceSegment", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -4160,11 +3937,13 @@ class AudienceSegmentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", + "ThirdPartyAudienceSegment.LicenseType" => "ThirdPartyAudienceSegmentLicenseType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201502/BaseRateService.php similarity index 78% rename from src/Google/Api/Ads/Dfp/v201308/BaseRateService.php rename to src/Google/Api/Ads/Dfp/v201502/BaseRateService.php index 4ba88e320..51fb0d8a3 100755 --- a/src/Google/Api/Ads/Dfp/v201308/BaseRateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/BaseRateService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,13 +203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -370,51 +218,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the action that can be performed on {@link BaseRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateAction"; - /** - * @access public - * @var string - */ - public $BaseRateActionType; - private $_parameterMap = array( - "BaseRateAction.Type" => "BaseRateActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -431,8 +241,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($BaseRateActionType = null) { - $this->BaseRateActionType = $BaseRateActionType; + public function __construct() { } } @@ -442,11 +251,11 @@ public function __construct($BaseRateActionType = null) { /** * An error having to do with {@link BaseRate} when performing actions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateActionError"; /** @@ -471,13 +280,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -485,14 +293,14 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("BaseRate", false)) { /** - * A base rate that applies to a product template or product belonging to rate - * card. + * A base rate that applies to a product template, product or product package + * item belonging to rate card. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRate"; /** @@ -507,50 +315,6 @@ class BaseRate { */ public $id; - /** - * @access public - * @var tnsBaseRateStatus - */ - public $status; - - /** - * @access public - * @var string - */ - public $BaseRateType; - private $_parameterMap = array( - "BaseRate.Type" => "BaseRateType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -567,11 +331,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rateCardId = null, $id = null, $status = null, $BaseRateType = null) { + public function __construct($rateCardId = null, $id = null) { $this->rateCardId = $rateCardId; $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; } } @@ -581,11 +343,11 @@ public function __construct($rateCardId = null, $id = null, $status = null, $Bas /** * An error having to do with {@link BaseRate}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateError"; /** @@ -610,13 +372,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -626,11 +387,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link BaseRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRatePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRatePage"; /** @@ -676,24 +437,22 @@ public function __construct($results = null, $startIndex = null, $totalResultSet } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -711,10 +470,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -724,11 +485,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -753,13 +514,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -769,11 +529,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -823,11 +583,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -887,16 +647,16 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } -if (!class_exists("DeactivateBaseRates", false)) { +if (!class_exists("DeleteBaseRates", false)) { /** - * The action used to deactivate {@link BaseRate} objects. + * The action used to delete {@link BaseRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class DeactivateBaseRates extends BaseRateAction { + class DeleteBaseRates extends BaseRateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "DeactivateBaseRates"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeleteBaseRates"; /** * Gets the namesapce of this class @@ -914,9 +674,52 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($BaseRateActionType = null) { + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->BaseRateActionType = $BaseRateActionType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -927,11 +730,11 @@ public function __construct($BaseRateActionType = null) { * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -956,13 +759,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -974,11 +776,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1003,13 +805,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1019,11 +820,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -1066,11 +867,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1095,13 +896,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1111,11 +911,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1140,36 +940,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("PermissionError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var string + * @var tnsPermissionErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1187,31 +984,39 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("ProductBaseRate", false)) { /** - * Errors related to incorrect permission. + * A base rate applied to a {@link Product}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class PermissionError extends ApiError { + class ProductBaseRate extends BaseRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductBaseRate"; /** * @access public - * @var tnsPermissionErrorReason + * @var integer */ - public $reason; + public $productId; + + /** + * @access public + * @var Money + */ + public $rate; /** * Gets the namesapce of this class @@ -1229,34 +1034,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($productId = null, $rate = null, $rateCardId = null, $id = null) { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + $this->productId = $productId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; } } } -if (!class_exists("ProductBaseRate", false)) { +if (!class_exists("ProductPackageItemBaseRate", false)) { /** - * A base rate applied to a {@link Product}. + * A base rate applied to a {@link ProductPackageItem}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ProductBaseRate extends BaseRate { + class ProductPackageItemBaseRate extends BaseRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductBaseRate"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemBaseRate"; /** * @access public * @var integer */ - public $productId; + public $productPackageItemId; /** * @access public @@ -1280,14 +1084,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($productId = null, $rate = null, $rateCardId = null, $id = null, $status = null, $BaseRateType = null) { + public function __construct($productPackageItemId = null, $rate = null, $rateCardId = null, $id = null) { parent::__construct(); - $this->productId = $productId; + $this->productPackageItemId = $productPackageItemId; $this->rate = $rate; $this->rateCardId = $rateCardId; $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; } } @@ -1297,11 +1099,11 @@ public function __construct($productId = null, $rate = null, $rateCardId = null, /** * A base rate applied to a {@link ProductTemplate}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductTemplateBaseRate extends BaseRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateBaseRate"; /** @@ -1332,14 +1134,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($productTemplateId = null, $rate = null, $rateCardId = null, $id = null, $status = null, $BaseRateType = null) { + public function __construct($productTemplateId = null, $rate = null, $rateCardId = null, $id = null) { parent::__construct(); $this->productTemplateId = $productTemplateId; $this->rate = $rate; $this->rateCardId = $rateCardId; $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; } } @@ -1350,11 +1150,11 @@ public function __construct($productTemplateId = null, $rate = null, $rateCardId * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1379,13 +1179,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1396,11 +1195,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1425,13 +1224,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1442,11 +1240,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1471,13 +1269,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1487,11 +1284,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1516,13 +1313,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1532,11 +1328,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1561,13 +1357,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1577,11 +1372,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1606,13 +1401,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1622,11 +1416,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1641,12 +1435,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1663,10 +1451,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1676,11 +1463,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1751,11 +1538,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1798,11 +1585,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1827,13 +1614,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1844,11 +1630,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1887,22 +1673,17 @@ public function __construct($key = null, $value = null) { } } -if (!class_exists("UpdateResult", false)) { +if (!class_exists("UnknownBaseRate", false)) { /** - * Represents the result of performing an action on objects. + * The {@link BaseRate} returned if the actual base rate type is not exposed by + * the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateResult { + class UnknownBaseRate extends BaseRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnknownBaseRate"; /** * Gets the namesapce of this class @@ -1920,61 +1701,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; + public function __construct($rateCardId = null, $id = null) { + parent::__construct(); + $this->rateCardId = $rateCardId; + $this->id = $id; } } } -if (!class_exists("Value", false)) { +if (!class_exists("UpdateResult", false)) { /** - * {@code Value} represents a value. + * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class Value { + class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Value"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; /** * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var integer */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $numChanges; /** * Gets the namesapce of this class @@ -1992,23 +1743,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; } } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { /** * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2040,11 +1824,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2073,11 +1857,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateActionError.Reason"; /** @@ -2106,11 +1890,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateError.Reason"; /** @@ -2135,16 +1919,16 @@ public function __construct() { } } -if (!class_exists("BaseRateStatus", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The status of {@link BaseRate} objects. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class BaseRateStatus { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseRateStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -2172,11 +1956,11 @@ public function __construct() { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2201,15 +1985,48 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2238,11 +2055,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2271,11 +2088,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2304,11 +2121,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2337,11 +2154,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2370,11 +2187,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2403,11 +2220,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2446,11 +2263,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2479,11 +2296,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2512,11 +2329,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2545,11 +2362,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2578,11 +2395,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2607,89 +2424,6 @@ public function __construct() { } } -if (!class_exists("CreateBaseRate", false)) { - /** - * Creates a new {@link BaseRate} object. - * - * @param baseRate the base rate to be created - * @return the base rate with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $baseRate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRate = null) { - $this->baseRate = $baseRate; - } - - } -} - -if (!class_exists("CreateBaseRateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateBaseRates", false)) { /** * Creates a list of new {@link BaseRate} objects. @@ -2697,11 +2431,11 @@ public function __construct($rval = null) { * @param baseRates the base rates to be created * @return the base rates with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateBaseRates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2737,11 +2471,11 @@ public function __construct($baseRates = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateBaseRatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2773,88 +2507,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetBaseRate", false)) { - /** - * Returns the {@link BaseRate} object uniquely identified by the given ID. - * - * @param baseRateId the ID of the base rate, which must already exist - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $baseRateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRateId = null) { - $this->baseRateId = $baseRateId; - } - - } -} - -if (!class_exists("GetBaseRateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetBaseRatesByStatement", false)) { /** * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given @@ -2889,11 +2541,11 @@ public function __construct($rval = null) { * a set of base rates. * @return the page of base rates that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetBaseRatesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2929,11 +2581,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetBaseRatesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2975,11 +2627,11 @@ public function __construct($rval = null) { * a set of base rates. * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformBaseRateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3022,11 +2674,11 @@ public function __construct($baseRateAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformBaseRateActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3058,89 +2710,6 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateBaseRate", false)) { - /** - * Updates the specified {@link BaseRate} object. - * - * @param baseRate the base rate to be updated - * @return the updated base rate - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $baseRate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($baseRate = null) { - $this->baseRate = $baseRate; - } - - } -} - -if (!class_exists("UpdateBaseRateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var BaseRate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("UpdateBaseRates", false)) { /** * Updates the specified {@link BaseRate} objects. @@ -3148,11 +2717,11 @@ public function __construct($rval = null) { * @param baseRates the base rates to be updated * @return the updated base rates * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateBaseRates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3188,11 +2757,11 @@ public function __construct($baseRates = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateBaseRatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3224,16 +2793,23 @@ public function __construct($rval = null) { } } -if (!class_exists("ActivateBaseRates", false)) { +if (!class_exists("ObjectValue", false)) { /** - * The action used to activate {@link BaseRate} objects. + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ActivateBaseRates extends BaseRateAction { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ActivateBaseRates"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3251,9 +2827,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($BaseRateActionType = null) { + public function __construct() { parent::__construct(); - $this->BaseRateActionType = $BaseRateActionType; } } @@ -3263,11 +2838,11 @@ public function __construct($BaseRateActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3292,11 +2867,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3306,11 +2880,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3335,10 +2909,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3348,11 +2921,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3377,10 +2950,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3390,11 +2962,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3419,10 +2991,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3432,11 +3003,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3461,10 +3032,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3474,11 +3085,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3503,10 +3114,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3516,31 +3126,30 @@ public function __construct($value = null, $ValueType = null) { /** * BaseRateService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateService extends DfpSoapClient { const SERVICE_NAME = "BaseRateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/BaseRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/BaseRateService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/BaseRateService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/BaseRateService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( - "ActivateBaseRates" => "ActivateBaseRates", + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BaseRateAction" => "BaseRateAction", "BaseRateActionError" => "BaseRateActionError", @@ -3548,22 +3157,23 @@ class BaseRateService extends DfpSoapClient { "BaseRateError" => "BaseRateError", "BaseRatePage" => "BaseRatePage", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", - "DeactivateBaseRates" => "DeactivateBaseRates", + "DeleteBaseRates" => "DeleteBaseRates", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "Money" => "Money", "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "ProductBaseRate" => "ProductBaseRate", + "ProductPackageItemBaseRate" => "ProductPackageItemBaseRate", "ProductTemplateBaseRate" => "ProductTemplateBaseRate", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -3571,20 +3181,23 @@ class BaseRateService extends DfpSoapClient { "RangeError" => "RangeError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", "StatementError" => "StatementError", "String_ValueMapEntry" => "String_ValueMapEntry", "TextValue" => "TextValue", + "UnknownBaseRate" => "UnknownBaseRate", "UpdateResult" => "UpdateResult", "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateActionError.Reason" => "BaseRateActionErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", - "BaseRateStatus" => "BaseRateStatus", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", @@ -3597,18 +3210,12 @@ class BaseRateService extends DfpSoapClient { "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", - "createBaseRate" => "CreateBaseRate", - "createBaseRateResponse" => "CreateBaseRateResponse", "createBaseRates" => "CreateBaseRates", "createBaseRatesResponse" => "CreateBaseRatesResponse", - "getBaseRate" => "GetBaseRate", - "getBaseRateResponse" => "GetBaseRateResponse", "getBaseRatesByStatement" => "GetBaseRatesByStatement", "getBaseRatesByStatementResponse" => "GetBaseRatesByStatementResponse", "performBaseRateAction" => "PerformBaseRateAction", "performBaseRateActionResponse" => "PerformBaseRateActionResponse", - "updateBaseRate" => "UpdateBaseRate", - "updateBaseRateResponse" => "UpdateBaseRateResponse", "updateBaseRates" => "UpdateBaseRates", "updateBaseRatesResponse" => "UpdateBaseRatesResponse", ); @@ -3624,17 +3231,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link BaseRate} object. - * - * @param baseRate the base rate to be created - * @return the base rate with its ID filled in - */ - public function createBaseRate($baseRate) { - $args = new CreateBaseRate($baseRate); - $result = $this->__soapCall("createBaseRate", array($args)); - return $result->rval; - } /** * Creates a list of new {@link BaseRate} objects. * @@ -3646,16 +3242,6 @@ public function createBaseRates($baseRates) { $result = $this->__soapCall("createBaseRates", array($args)); return $result->rval; } - /** - * Returns the {@link BaseRate} object uniquely identified by the given ID. - * - * @param baseRateId the ID of the base rate, which must already exist - */ - public function getBaseRate($baseRateId) { - $args = new GetBaseRate($baseRateId); - $result = $this->__soapCall("getBaseRate", array($args)); - return $result->rval; - } /** * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given * {@link Statement#query}. @@ -3708,17 +3294,6 @@ public function performBaseRateAction($baseRateAction, $filterStatement) { $result = $this->__soapCall("performBaseRateAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link BaseRate} object. - * - * @param baseRate the base rate to be updated - * @return the updated base rate - */ - public function updateBaseRate($baseRate) { - $args = new UpdateBaseRate($baseRate); - $result = $this->__soapCall("updateBaseRate", array($args)); - return $result->rval; - } /** * Updates the specified {@link BaseRate} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/CompanyService.php b/src/Google/Api/Ads/Dfp/v201502/CompanyService.php similarity index 81% rename from src/Google/Api/Ads/Dfp/v201308/CompanyService.php rename to src/Google/Api/Ads/Dfp/v201502/CompanyService.php index 8b834b776..d8104d8ef 100755 --- a/src/Google/Api/Ads/Dfp/v201308/CompanyService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CompanyService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,9 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -255,11 +176,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -298,54 +219,22 @@ public function __construct($labelId = null, $isNegated = null) { } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -363,27 +252,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("AvailableBillingError", false)) { /** - * An error for an exception that occurred when authenticating. + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class AvailableBillingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsAvailableBillingErrorReason */ public $reason; @@ -403,36 +297,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -450,10 +341,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -463,11 +356,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -492,13 +385,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -508,11 +400,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors due to {@link Company#creditStatus}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyCreditStatusError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError"; /** @@ -537,13 +429,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -554,11 +445,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A {@code Company} represents an agency, a single advertiser or an entire * advertising network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Company { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Company"; /** @@ -627,12 +518,6 @@ class Company { */ public $appliedLabels; - /** - * @access public - * @var boolean - */ - public $enableSameAdvertiserCompetitiveExclusion; - /** * @access public * @var integer @@ -673,7 +558,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $type = null, $address = null, $email = null, $faxPhone = null, $primaryPhone = null, $externalId = null, $comment = null, $creditStatus = null, $appliedLabels = null, $enableSameAdvertiserCompetitiveExclusion = null, $primaryContactId = null, $appliedTeamIds = null, $thirdPartyCompanyId = null, $lastModifiedDateTime = null) { + public function __construct($id = null, $name = null, $type = null, $address = null, $email = null, $faxPhone = null, $primaryPhone = null, $externalId = null, $comment = null, $creditStatus = null, $appliedLabels = null, $primaryContactId = null, $appliedTeamIds = null, $thirdPartyCompanyId = null, $lastModifiedDateTime = null) { $this->id = $id; $this->name = $name; $this->type = $type; @@ -685,7 +570,6 @@ public function __construct($id = null, $name = null, $type = null, $address = n $this->comment = $comment; $this->creditStatus = $creditStatus; $this->appliedLabels = $appliedLabels; - $this->enableSameAdvertiserCompetitiveExclusion = $enableSameAdvertiserCompetitiveExclusion; $this->primaryContactId = $primaryContactId; $this->appliedTeamIds = $appliedTeamIds; $this->thirdPartyCompanyId = $thirdPartyCompanyId; @@ -699,11 +583,11 @@ public function __construct($id = null, $name = null, $type = null, $address = n /** * A list of all errors associated with companies. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyError"; /** @@ -728,13 +612,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -744,11 +627,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Company} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyPage"; /** @@ -798,11 +681,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Lists all errors associated with cross selling. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CrossSellError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError"; /** @@ -827,13 +710,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -843,11 +725,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -897,11 +779,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -966,11 +848,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -995,13 +877,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1013,11 +894,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1042,13 +923,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1059,11 +939,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Caused by supplying a value for an email attribute that is not a valid * email address. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidEmailError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError"; /** @@ -1088,13 +968,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1104,11 +983,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -1133,13 +1012,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1149,11 +1027,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1178,57 +1056,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1238,11 +1071,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1267,13 +1100,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1283,11 +1115,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1312,13 +1144,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1329,11 +1160,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1358,13 +1189,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1375,11 +1205,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1404,13 +1234,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1421,11 +1250,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1450,13 +1279,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1466,11 +1294,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1495,13 +1323,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1511,11 +1338,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1540,13 +1367,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1556,11 +1382,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1575,12 +1401,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1597,10 +1417,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1610,11 +1429,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1685,11 +1504,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1732,11 +1551,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1761,13 +1580,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1777,11 +1595,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1806,13 +1624,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1823,11 +1640,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1870,11 +1687,11 @@ public function __construct($key = null, $value = null) { /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -1899,13 +1716,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1915,11 +1731,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1938,12 +1754,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1953,11 +1768,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1976,12 +1791,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1991,51 +1805,83 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { } + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; + /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - protected function getParameterMap() { - return $this->_parameterMap; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { } + } +} + +if (!class_exists("AuthenticationErrorReason", false)) { + /** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2052,24 +1898,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("AvailableBillingErrorReason", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * The error reason represented by an enum. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class AvailableBillingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError.Reason"; /** * Gets the namesapce of this class @@ -2093,19 +1937,16 @@ public function __construct() { } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -2133,11 +1974,11 @@ public function __construct() { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2166,11 +2007,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyCreditStatusErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError.Reason"; /** @@ -2208,11 +2049,11 @@ public function __construct() { * been enabled, or using the Basic setting without turning the feature on * will result in an error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyCreditStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Company.CreditStatus"; /** @@ -2242,11 +2083,11 @@ public function __construct() { * The type of the company. Once a company is created, it is not possible to * change its type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Company.Type"; /** @@ -2275,11 +2116,11 @@ public function __construct() { /** * Enumerates all possible company specific errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyError.Reason"; /** @@ -2308,11 +2149,11 @@ public function __construct() { /** * The reason of the error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CrossSellErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError.Reason"; /** @@ -2341,11 +2182,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2374,11 +2215,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2407,11 +2248,11 @@ public function __construct() { /** * Describes reasons for an email to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidEmailErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError.Reason"; /** @@ -2440,11 +2281,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -2473,11 +2314,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2506,11 +2347,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2539,11 +2380,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2572,11 +2413,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2605,11 +2446,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2648,11 +2489,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2681,11 +2522,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2714,11 +2555,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2747,11 +2588,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2780,11 +2621,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2813,11 +2654,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -2849,11 +2690,11 @@ public function __construct() { * @param companies the companies to create * @return the created companies with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCompanies { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2889,11 +2730,11 @@ public function __construct($companies = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCompaniesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2925,95 +2766,6 @@ public function __construct($rval = null) { } } -if (!class_exists("CreateCompany", false)) { - /** - * Creates a new {@link Company}. - * - * The following fields are required: - *
    - *
  • {@link Company#name}
  • - *
  • {@link Company#type}
  • - *
- * - * @param company the company to create - * @return the new company with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $company; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($company = null) { - $this->company = $company; - } - - } -} - -if (!class_exists("CreateCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetCompaniesByStatement", false)) { /** * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the @@ -3046,11 +2798,11 @@ public function __construct($rval = null) { * a set of companies * @return the companies that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCompaniesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3086,11 +2838,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCompaniesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3122,89 +2874,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetCompany", false)) { - /** - * Returns the {@link Company} uniquely identified by the given ID. - * - * @param companyId ID of the company, which must already exist - * @return the {@code Company} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $companyId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($companyId = null) { - $this->companyId = $companyId; - } - - } -} - -if (!class_exists("GetCompanyResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCompanyResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("UpdateCompanies", false)) { /** * Updates the specified {@link Company} objects. @@ -3212,11 +2881,11 @@ public function __construct($rval = null) { * @param companies the companies to update * @return the updated companies * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateCompanies { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3252,11 +2921,11 @@ public function __construct($companies = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateCompaniesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3288,65 +2957,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCompany", false)) { - /** - * Updates the specified {@link Company}. - * - * @param company the company to update - * @return the updated company - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCompany { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $company; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($company = null) { - $this->company = $company; - } - - } -} - -if (!class_exists("UpdateCompanyResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateCompanyResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Company - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3364,8 +2991,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -3375,11 +3002,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3404,11 +3031,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3418,11 +3044,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3447,10 +3073,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3460,11 +3085,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3489,10 +3114,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3502,11 +3126,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3531,10 +3155,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3544,11 +3167,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3573,10 +3196,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3586,11 +3249,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3615,10 +3278,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3628,34 +3290,35 @@ public function __construct($value = null, $ValueType = null) { /** * CompanyService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CompanyService extends DfpSoapClient { const SERVICE_NAME = "CompanyService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/CompanyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/CompanyService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/CompanyService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/CompanyService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AppliedLabel" => "AppliedLabel", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "Company" => "Company", @@ -3672,7 +3335,6 @@ class CompanyService extends DfpSoapClient { "LabelEntityAssociationError" => "LabelEntityAssociationError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3680,6 +3342,7 @@ class CompanyService extends DfpSoapClient { "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3693,6 +3356,8 @@ class CompanyService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "Company.CreditStatus" => "CompanyCreditStatus", @@ -3716,16 +3381,10 @@ class CompanyService extends DfpSoapClient { "TeamError.Reason" => "TeamErrorReason", "createCompanies" => "CreateCompanies", "createCompaniesResponse" => "CreateCompaniesResponse", - "createCompany" => "CreateCompany", - "createCompanyResponse" => "CreateCompanyResponse", "getCompaniesByStatement" => "GetCompaniesByStatement", "getCompaniesByStatementResponse" => "GetCompaniesByStatementResponse", - "getCompany" => "GetCompany", - "getCompanyResponse" => "GetCompanyResponse", "updateCompanies" => "UpdateCompanies", "updateCompaniesResponse" => "UpdateCompaniesResponse", - "updateCompany" => "UpdateCompany", - "updateCompanyResponse" => "UpdateCompanyResponse", ); @@ -3750,23 +3409,6 @@ public function createCompanies($companies) { $result = $this->__soapCall("createCompanies", array($args)); return $result->rval; } - /** - * Creates a new {@link Company}. - * - * The following fields are required: - *

    - *
  • {@link Company#name}
  • - *
  • {@link Company#type}
  • - *
- * - * @param company the company to create - * @return the new company with its ID filled in - */ - public function createCompany($company) { - $args = new CreateCompany($company); - $result = $this->__soapCall("createCompany", array($args)); - return $result->rval; - } /** * Gets a {@link CompanyPage} of {@link Company} objects that satisfy the * given {@link Statement#query}. The following fields are supported for @@ -3803,17 +3445,6 @@ public function getCompaniesByStatement($filterStatement) { $result = $this->__soapCall("getCompaniesByStatement", array($args)); return $result->rval; } - /** - * Returns the {@link Company} uniquely identified by the given ID. - * - * @param companyId ID of the company, which must already exist - * @return the {@code Company} uniquely identified by the given ID - */ - public function getCompany($companyId) { - $args = new GetCompany($companyId); - $result = $this->__soapCall("getCompany", array($args)); - return $result->rval; - } /** * Updates the specified {@link Company} objects. * @@ -3825,17 +3456,6 @@ public function updateCompanies($companies) { $result = $this->__soapCall("updateCompanies", array($args)); return $result->rval; } - /** - * Updates the specified {@link Company}. - * - * @param company the company to update - * @return the updated company - */ - public function updateCompany($company) { - $args = new UpdateCompany($company); - $result = $this->__soapCall("updateCompany", array($args)); - return $result->rval; - } } } diff --git a/src/Google/Api/Ads/Dfp/v201308/ContactService.php b/src/Google/Api/Ads/Dfp/v201502/ContactService.php similarity index 77% rename from src/Google/Api/Ads/Dfp/v201308/ContactService.php rename to src/Google/Api/Ads/Dfp/v201502/ContactService.php index 6cc5ab446..f4a3a82ae 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ContactService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ContactService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with {@code Contact}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContactError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContactError"; /** @@ -488,13 +335,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -504,11 +350,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Contact} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContactPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContactPage"; /** @@ -558,51 +404,13 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Base class for a {@link Contact}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseContact { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseContact"; - /** - * @access public - * @var string - */ - public $BaseContactType; - private $_parameterMap = array( - "BaseContact.Type" => "BaseContactType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -619,8 +427,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($BaseContactType = null) { - $this->BaseContactType = $BaseContactType; + public function __construct() { } } @@ -630,11 +437,11 @@ public function __construct($BaseContactType = null) { /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -684,11 +491,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -753,11 +560,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -782,13 +589,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -800,11 +606,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -829,13 +635,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -846,11 +651,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Caused by supplying a value for an email attribute that is not a valid * email address. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidEmailError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError"; /** @@ -875,13 +680,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -891,11 +695,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -920,57 +724,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -980,11 +739,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1009,13 +768,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1026,11 +784,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1055,13 +813,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1072,11 +829,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1101,13 +858,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1118,11 +874,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1147,13 +903,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1163,11 +918,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1192,13 +947,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1208,11 +962,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1237,13 +991,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1253,11 +1006,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1272,12 +1025,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1294,10 +1041,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1307,11 +1053,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1382,11 +1128,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1429,11 +1175,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1458,13 +1204,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1474,11 +1219,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1503,13 +1248,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1520,11 +1264,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1567,11 +1311,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1590,12 +1334,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1605,51 +1348,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1666,8 +1371,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1678,11 +1382,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1714,11 +1418,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1743,15 +1447,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1780,11 +1517,11 @@ public function __construct() { /** * Describes the contact statuses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContactStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Contact.Status"; /** @@ -1813,11 +1550,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContactErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContactError.Reason"; /** @@ -1846,11 +1583,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1879,11 +1616,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1912,11 +1649,11 @@ public function __construct() { /** * Describes reasons for an email to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidEmailErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError.Reason"; /** @@ -1945,11 +1682,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1978,11 +1715,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2011,11 +1748,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2044,11 +1781,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2087,11 +1824,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2120,11 +1857,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2153,11 +1890,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2186,11 +1923,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2219,11 +1956,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2248,95 +1985,6 @@ public function __construct() { } } -if (!class_exists("CreateContact", false)) { - /** - * Creates a new {@link Contact}. - * - * The following fields are required: - *
    - *
  • {@link Contact#companyId}
  • - *
  • {@link Contact#name}
  • - *
- * - * @param contact the contact to create - * @return the contact with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $contact; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contact = null) { - $this->contact = $contact; - } - - } -} - -if (!class_exists("CreateContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateContacts", false)) { /** * Creates new {@link Contact} objects. @@ -2344,11 +1992,11 @@ public function __construct($rval = null) { * @param contacts the contacts to create * @return the created contacts with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateContacts { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2384,11 +2032,11 @@ public function __construct($contacts = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateContactsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2420,89 +2068,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetContact", false)) { - /** - * Returns the {@link Contact} uniquely identified by the given ID. - * - * @param contactId the ID of the contact, which must already exist - * @return the {@code Contact} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetContact { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $contactId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contactId = null) { - $this->contactId = $contactId; - } - - } -} - -if (!class_exists("GetContactResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetContactResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetContactsByStatement", false)) { /** * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given @@ -2558,11 +2123,11 @@ public function __construct($rval = null) { * a set of contacts * @return the contacts that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContactsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2598,11 +2163,11 @@ public function __construct($statement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContactsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2634,25 +2199,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateContact", false)) { +if (!class_exists("UpdateContacts", false)) { /** - * Updates the specified {@link Contact}. + * Updates the specified {@link Contact} objects. * - * @param contact the contact to update - * @return the updated contact + * @param contacts the contacts to update + * @return the updated contacts * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateContact { + class UpdateContacts { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Contact + * @var Contact[] */ - public $contact; + public $contacts; /** * Gets the namesapce of this class @@ -2670,27 +2235,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($contact = null) { - $this->contact = $contact; + public function __construct($contacts = null) { + $this->contacts = $contacts; } } } -if (!class_exists("UpdateContactResponse", false)) { +if (!class_exists("UpdateContactsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateContactResponse { + class UpdateContactsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Contact + * @var Contact[] */ public $rval; @@ -2717,65 +2282,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateContacts", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link Contact} objects. - * - * @param contacts the contacts to update - * @return the updated contacts - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateContacts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Contact[] - */ - public $contacts; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contacts = null) { - $this->contacts = $contacts; - } - - } -} - -if (!class_exists("UpdateContactsResponse", false)) { - /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateContactsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var Contact[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2793,8 +2316,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -2804,11 +2327,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2833,11 +2356,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2847,11 +2369,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2876,10 +2398,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2892,11 +2413,11 @@ public function __construct($value = null, $ValueType = null) { * associated to it, and can be invited to view their company's orders, line * items, creatives, and reports. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Contact extends BaseContact { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Contact"; /** @@ -2981,7 +2502,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $companyId = null, $status = null, $address = null, $cellPhone = null, $comment = null, $email = null, $faxPhone = null, $title = null, $workPhone = null, $BaseContactType = null) { + public function __construct($id = null, $name = null, $companyId = null, $status = null, $address = null, $cellPhone = null, $comment = null, $email = null, $faxPhone = null, $title = null, $workPhone = null) { parent::__construct(); $this->id = $id; $this->name = $name; @@ -2994,7 +2515,6 @@ public function __construct($id = null, $name = null, $companyId = null, $status $this->faxPhone = $faxPhone; $this->title = $title; $this->workPhone = $workPhone; - $this->BaseContactType = $BaseContactType; } } @@ -3004,11 +2524,11 @@ public function __construct($id = null, $name = null, $companyId = null, $status /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3033,10 +2553,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3046,11 +2565,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3075,10 +2594,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3088,11 +2606,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3117,10 +2635,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3130,11 +2688,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3159,10 +2717,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3172,33 +2729,33 @@ public function __construct($value = null, $ValueType = null) { /** * ContactService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContactService extends DfpSoapClient { const SERVICE_NAME = "ContactService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ContactService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ContactService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ContactService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ContactService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Contact" => "Contact", "ContactError" => "ContactError", @@ -3213,13 +2770,13 @@ class ContactService extends DfpSoapClient { "InvalidEmailError" => "InvalidEmailError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3231,6 +2788,7 @@ class ContactService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "Contact.Status" => "ContactStatus", "ContactError.Reason" => "ContactErrorReason", @@ -3246,16 +2804,10 @@ class ContactService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createContact" => "CreateContact", - "createContactResponse" => "CreateContactResponse", "createContacts" => "CreateContacts", "createContactsResponse" => "CreateContactsResponse", - "getContact" => "GetContact", - "getContactResponse" => "GetContactResponse", "getContactsByStatement" => "GetContactsByStatement", "getContactsByStatementResponse" => "GetContactsByStatementResponse", - "updateContact" => "UpdateContact", - "updateContactResponse" => "UpdateContactResponse", "updateContacts" => "UpdateContacts", "updateContactsResponse" => "UpdateContactsResponse", ); @@ -3271,23 +2823,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link Contact}. - * - * The following fields are required: - *

    - *
  • {@link Contact#companyId}
  • - *
  • {@link Contact#name}
  • - *
- * - * @param contact the contact to create - * @return the contact with its ID filled in - */ - public function createContact($contact) { - $args = new CreateContact($contact); - $result = $this->__soapCall("createContact", array($args)); - return $result->rval; - } /** * Creates new {@link Contact} objects. * @@ -3299,17 +2834,6 @@ public function createContacts($contacts) { $result = $this->__soapCall("createContacts", array($args)); return $result->rval; } - /** - * Returns the {@link Contact} uniquely identified by the given ID. - * - * @param contactId the ID of the contact, which must already exist - * @return the {@code Contact} uniquely identified by the given ID - */ - public function getContact($contactId) { - $args = new GetContact($contactId); - $result = $this->__soapCall("getContact", array($args)); - return $result->rval; - } /** * Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -3369,17 +2893,6 @@ public function getContactsByStatement($statement) { $result = $this->__soapCall("getContactsByStatement", array($args)); return $result->rval; } - /** - * Updates the specified {@link Contact}. - * - * @param contact the contact to update - * @return the updated contact - */ - public function updateContact($contact) { - $args = new UpdateContact($contact); - $result = $this->__soapCall("updateContact", array($args)); - return $result->rval; - } /** * Updates the specified {@link Contact} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201502/ContentBundleService.php similarity index 77% rename from src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php rename to src/Google/Api/Ads/Dfp/v201502/ContentBundleService.php index 6eabe8e6b..eb4b2b75b 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ContentBundleService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ContentBundleService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,51 +306,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the actions that can be performed on {@link ContentBundle} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentBundleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentBundleAction"; - /** - * @access public - * @var string - */ - public $ContentBundleActionType; - private $_parameterMap = array( - "ContentBundleAction.Type" => "ContentBundleActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -520,8 +329,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ContentBundleActionType = null) { - $this->ContentBundleActionType = $ContentBundleActionType; + public function __construct() { } } @@ -533,11 +341,11 @@ public function __construct($ContentBundleActionType = null) { * defined as including the {@code Content} that match certain filter rules, along with the * option to explicitly include or exclude certain {@code Content} IDs. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentBundle { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentBundle"; /** @@ -594,11 +402,11 @@ public function __construct($id = null, $name = null, $description = null, $stat /** * Captures a page of {@link ContentBundle} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentBundlePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentBundlePage"; /** @@ -648,11 +456,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -702,11 +510,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -770,11 +578,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second /** * The action used for deactivating {@link ContentBundle} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivateContentBundles extends ContentBundleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateContentBundles"; /** @@ -793,9 +601,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ContentBundleActionType = null) { + public function __construct() { parent::__construct(); - $this->ContentBundleActionType = $ContentBundleActionType; } } @@ -805,11 +612,11 @@ public function __construct($ContentBundleActionType = null) { /** * The action used for explicitly excluding specific content from a {@link ContentBundle} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ExcludeContentFromContentBundle extends ContentBundleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExcludeContentFromContentBundle"; /** @@ -834,10 +641,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($contentStatement = null, $ContentBundleActionType = null) { + public function __construct($contentStatement = null) { parent::__construct(); $this->contentStatement = $contentStatement; - $this->ContentBundleActionType = $ContentBundleActionType; } } @@ -848,11 +654,11 @@ public function __construct($contentStatement = null, $ContentBundleActionType = * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -877,13 +683,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -893,11 +698,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The action used for explicitly including specific content in a {@link ContentBundle} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class IncludeContentInContentBundle extends ContentBundleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "IncludeContentInContentBundle"; /** @@ -922,10 +727,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($contentStatement = null, $ContentBundleActionType = null) { + public function __construct($contentStatement = null) { parent::__construct(); $this->contentStatement = $contentStatement; - $this->ContentBundleActionType = $ContentBundleActionType; } } @@ -937,11 +741,11 @@ public function __construct($contentStatement = null, $ContentBundleActionType = * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -966,13 +770,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -982,11 +785,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1011,57 +814,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1071,11 +829,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1100,13 +858,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1116,11 +873,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Class defining all validation errors for a placement. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PlacementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PlacementError"; /** @@ -1145,13 +902,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1162,11 +918,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1191,13 +947,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1208,11 +963,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1237,13 +992,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1254,11 +1008,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1283,13 +1037,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1299,11 +1052,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1328,13 +1081,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1344,11 +1096,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1373,13 +1125,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1389,11 +1140,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1408,12 +1159,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1430,10 +1175,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1443,11 +1187,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1518,11 +1262,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1565,11 +1309,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1594,13 +1338,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1611,11 +1354,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1658,11 +1401,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1681,12 +1424,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1696,11 +1438,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1736,51 +1478,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1797,8 +1501,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1809,11 +1512,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1845,11 +1548,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1874,15 +1577,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1911,11 +1647,11 @@ public function __construct() { /** * Status for {@code ContentBundle} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentBundleStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentBundleStatus"; /** @@ -1944,11 +1680,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1977,11 +1713,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2010,11 +1746,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2043,11 +1779,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2076,11 +1812,11 @@ public function __construct() { /** * Possible reasons for the error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PlacementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PlacementError.Reason"; /** @@ -2109,11 +1845,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2142,11 +1878,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2185,11 +1921,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2218,11 +1954,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2251,11 +1987,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2284,11 +2020,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2313,95 +2049,6 @@ public function __construct() { } } -if (!class_exists("CreateContentBundle", false)) { - /** - * Creates a new {@link ContentBundle}. - * - * These fields are required: - *
    - *
  • {@link ContentBundle#name}
  • - *
  • {@link ContentBundle#description}
  • - *
- * - * @param contentBundle the content bundle to create - * @return the content bundle with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $contentBundle; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundle = null) { - $this->contentBundle = $contentBundle; - } - - } -} - -if (!class_exists("CreateContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateContentBundles", false)) { /** * Creates new {@link ContentBundle} objects. @@ -2409,11 +2056,11 @@ public function __construct($rval = null) { * @param contentBundles the content bundles to create * @return the created content bundles with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateContentBundles { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2449,11 +2096,11 @@ public function __construct($contentBundles = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateContentBundlesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2485,90 +2132,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetContentBundle", false)) { - /** - * Returns the {@link ContentBundle} uniquely identified by the given ID. - * - * @param contentBundleId the ID of the content bundle, which must already exist - * @return the {@code ContentBundle} uniquely identified by the given ID - * @throws ApiException if there were errors, such as invalid ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetContentBundle { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $contentBundleId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($contentBundleId = null) { - $this->contentBundleId = $contentBundleId; - } - - } -} - -if (!class_exists("GetContentBundleResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetContentBundleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetContentBundlesByStatement", false)) { /** * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the @@ -2596,11 +2159,11 @@ public function __construct($rval = null) { * a set of content bundles * @return the content bundles that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContentBundlesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2636,11 +2199,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContentBundlesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2682,11 +2245,11 @@ public function __construct($rval = null) { * a set of content bundles * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformContentBundleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2729,11 +2292,11 @@ public function __construct($contentBundleAction = null, $filterStatement = null /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformContentBundleActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2765,25 +2328,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateContentBundle", false)) { +if (!class_exists("UpdateContentBundles", false)) { /** - * Updates the specified {@link ContentBundle}. + * Updates the specified {@link ContentBundle} objects. * - * @param contentBundle the content bundle to update - * @return the updated content bundle + * @param contentBundles the content bundles to update + * @return the updated content bundles * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateContentBundle { + class UpdateContentBundles { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ContentBundle + * @var ContentBundle[] */ - public $contentBundle; + public $contentBundles; /** * Gets the namesapce of this class @@ -2801,27 +2364,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($contentBundle = null) { - $this->contentBundle = $contentBundle; + public function __construct($contentBundles = null) { + $this->contentBundles = $contentBundles; } } } -if (!class_exists("UpdateContentBundleResponse", false)) { +if (!class_exists("UpdateContentBundlesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateContentBundleResponse { + class UpdateContentBundlesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ContentBundle + * @var ContentBundle[] */ public $rval; @@ -2848,25 +2411,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateContentBundles", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link ContentBundle} objects. - * - * @param contentBundles the content bundles to update - * @return the updated content bundles + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateContentBundles { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var ContentBundle[] - */ - public $contentBundles; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2884,48 +2445,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($contentBundles = null) { - $this->contentBundles = $contentBundles; - } - - } -} - -if (!class_exists("UpdateContentBundlesResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateContentBundlesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ContentBundle[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -2935,11 +2456,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link ContentBundle} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivateContentBundles extends ContentBundleAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateContentBundles"; /** @@ -2958,9 +2479,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ContentBundleActionType = null) { + public function __construct() { parent::__construct(); - $this->ContentBundleActionType = $ContentBundleActionType; } } @@ -2970,11 +2490,11 @@ public function __construct($ContentBundleActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2999,11 +2519,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3013,11 +2532,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3042,10 +2561,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3055,11 +2573,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3084,10 +2602,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3097,11 +2614,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3126,10 +2643,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3139,11 +2655,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3168,10 +2684,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3181,11 +2737,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3210,10 +2766,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3223,34 +2778,34 @@ public function __construct($value = null, $ValueType = null) { /** * ContentBundleService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentBundleService extends DfpSoapClient { const SERVICE_NAME = "ContentBundleService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ContentBundleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ContentBundleService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ContentBundleService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ContentBundleService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateContentBundles" => "ActivateContentBundles", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentBundleAction" => "ContentBundleAction", "ContentBundle" => "ContentBundle", @@ -3266,7 +2821,6 @@ class ContentBundleService extends DfpSoapClient { "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PlacementError" => "PlacementError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3274,6 +2828,7 @@ class ContentBundleService extends DfpSoapClient { "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3285,6 +2840,7 @@ class ContentBundleService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentBundleStatus" => "ContentBundleStatus", "FeatureError.Reason" => "FeatureErrorReason", @@ -3298,18 +2854,12 @@ class ContentBundleService extends DfpSoapClient { "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", - "createContentBundle" => "CreateContentBundle", - "createContentBundleResponse" => "CreateContentBundleResponse", "createContentBundles" => "CreateContentBundles", "createContentBundlesResponse" => "CreateContentBundlesResponse", - "getContentBundle" => "GetContentBundle", - "getContentBundleResponse" => "GetContentBundleResponse", "getContentBundlesByStatement" => "GetContentBundlesByStatement", "getContentBundlesByStatementResponse" => "GetContentBundlesByStatementResponse", "performContentBundleAction" => "PerformContentBundleAction", "performContentBundleActionResponse" => "PerformContentBundleActionResponse", - "updateContentBundle" => "UpdateContentBundle", - "updateContentBundleResponse" => "UpdateContentBundleResponse", "updateContentBundles" => "UpdateContentBundles", "updateContentBundlesResponse" => "UpdateContentBundlesResponse", ); @@ -3325,23 +2875,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link ContentBundle}. - * - * These fields are required: - *

    - *
  • {@link ContentBundle#name}
  • - *
  • {@link ContentBundle#description}
  • - *
- * - * @param contentBundle the content bundle to create - * @return the content bundle with its ID filled in - */ - public function createContentBundle($contentBundle) { - $args = new CreateContentBundle($contentBundle); - $result = $this->__soapCall("createContentBundle", array($args)); - return $result->rval; - } /** * Creates new {@link ContentBundle} objects. * @@ -3353,18 +2886,6 @@ public function createContentBundles($contentBundles) { $result = $this->__soapCall("createContentBundles", array($args)); return $result->rval; } - /** - * Returns the {@link ContentBundle} uniquely identified by the given ID. - * - * @param contentBundleId the ID of the content bundle, which must already exist - * @return the {@code ContentBundle} uniquely identified by the given ID - * @throws ApiException if there were errors, such as invalid ID - */ - public function getContentBundle($contentBundleId) { - $args = new GetContentBundle($contentBundleId); - $result = $this->__soapCall("getContentBundle", array($args)); - return $result->rval; - } /** * Gets a {@link ContentBundlePage} of {@link ContentBundle} objects that satisfy the * given {@link Statement#query}. The following fields are supported for filtering: @@ -3410,17 +2931,6 @@ public function performContentBundleAction($contentBundleAction, $filterStatemen $result = $this->__soapCall("performContentBundleAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link ContentBundle}. - * - * @param contentBundle the content bundle to update - * @return the updated content bundle - */ - public function updateContentBundle($contentBundle) { - $args = new UpdateContentBundle($contentBundle); - $result = $this->__soapCall("updateContentBundle", array($args)); - return $result->rval; - } /** * Updates the specified {@link ContentBundle} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201502/ContentMetadataKeyHierarchyService.php similarity index 77% rename from src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php rename to src/Google/Api/Ads/Dfp/v201502/ContentMetadataKeyHierarchyService.php index 6e817e587..23522e6f9 100755 --- a/src/Google/Api/Ads/Dfp/v201311/ContentMetadataKeyHierarchyService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ContentMetadataKeyHierarchyService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,62 +163,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -314,27 +203,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * An error for an exception that occurred when authenticating. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsCollectionSizeErrorReason */ public $reason; @@ -354,36 +247,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CommonError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; /** * @access public - * @var string + * @var tnsCommonErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,31 +291,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("CommonError", false)) { +if (!class_exists("ContentMetadataKeyHierarchyAction", false)) { /** - * A place for common errors that can be used across services. + * Represents the actions that can be performed on {@link ContentMetadataKeyHierarchy} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonError extends ApiError { + class ContentMetadataKeyHierarchyAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentMetadataKeyHierarchyAction"; /** * Gets the namesapce of this class @@ -443,13 +329,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } @@ -460,11 +340,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A {@code ContentMetadataKeyHierarchy} defines a hierarchical relationship between content * metadata keys. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchy { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchy"; /** @@ -485,6 +365,12 @@ class ContentMetadataKeyHierarchy { */ public $hierarchyLevels; + /** + * @access public + * @var tnsContentMetadataKeyHierarchyStatus + */ + public $status; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -501,10 +387,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $hierarchyLevels = null) { + public function __construct($id = null, $name = null, $hierarchyLevels = null, $status = null) { $this->id = $id; $this->name = $name; $this->hierarchyLevels = $hierarchyLevels; + $this->status = $status; } } @@ -514,11 +401,11 @@ public function __construct($id = null, $name = null, $hierarchyLevels = null) { /** * Lists all errors associated with content hierarchies. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyError"; /** @@ -543,13 +430,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -561,11 +447,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@link ContentMetadataKeyHierarchy}. The level consists of a {@link CustomTargetingKey} * and an integer that represents the level's position in the hierarchy. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyLevel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyLevel"; /** @@ -608,11 +494,11 @@ public function __construct($customTargetingKeyId = null, $hierarchyLevel = null /** * Captures a page of {@link ContentMetadataKeyHierarchy} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyPage"; /** @@ -662,11 +548,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -716,11 +602,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -780,23 +666,16 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("DeleteContentMetadataKeyHierarchies", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * The action used for deleting {@link ContentMetadataKeyHierarchy} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class DeleteContentMetadataKeyHierarchies extends ContentMetadataKeyHierarchyAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeleteContentMetadataKeyHierarchies"; /** * Gets the namesapce of this class @@ -814,34 +693,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct() { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("FeatureError", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var tnsInternalApiErrorReason + * @var tnsFeatureErrorReason */ public $reason; @@ -861,32 +734,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsInternalApiErrorReason */ public $reason; @@ -906,36 +780,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("NotNullError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var string + * @var tnsNotNullErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -953,10 +824,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -966,11 +839,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -995,13 +868,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1012,11 +884,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1041,13 +913,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1058,11 +929,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1087,13 +958,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1104,11 +974,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1133,13 +1003,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1149,11 +1018,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -1178,13 +1047,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1194,11 +1062,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1223,13 +1091,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1240,11 +1107,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -1269,13 +1136,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1285,11 +1151,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1314,13 +1180,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1330,11 +1195,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1349,12 +1214,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1371,10 +1230,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1384,11 +1242,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1459,11 +1317,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1506,11 +1364,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1535,13 +1393,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1551,11 +1408,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1580,13 +1437,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1597,11 +1453,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1644,11 +1500,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1667,66 +1523,67 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Value", false)) { +if (!class_exists("UpdateResult", false)) { /** - * {@code Value} represents a value. + * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Value { + class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; /** * @access public - * @var string + * @var integer */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public $numChanges; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; } + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1743,8 +1600,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1755,11 +1611,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1791,11 +1647,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1820,15 +1676,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1857,11 +1746,11 @@ public function __construct() { /** * The reasons for the {@link ContentMetadataKeyHierarchyError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyError.Reason"; /** @@ -1886,15 +1775,48 @@ public function __construct() { } } +if (!class_exists("ContentMetadataKeyHierarchyStatus", false)) { + /** + * Represents the status of a {@link ContentMetadataKeyHierarchy}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ContentMetadataKeyHierarchyStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentMetadataKeyHierarchyStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1923,11 +1845,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1956,11 +1878,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1989,11 +1911,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2022,11 +1944,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2055,11 +1977,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2098,11 +2020,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2131,11 +2053,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -2164,11 +2086,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2197,11 +2119,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -2230,11 +2152,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2263,11 +2185,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2296,11 +2218,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2325,6 +2247,96 @@ public function __construct() { } } +if (!class_exists("CreateContentMetadataKeyHierarchies", false)) { + /** + * Creates new {@link ContentMetadataKeyHierarchy} objects. + * + * The following fields are required: + *
    + *
  • {@link ContentMetadataKeyHierarchy#id}
  • + *
  • {@link ContentMetadataKeyHierarchy#name}
  • + *
  • {@link ContentMetadataKeyHierarchy#hierarchyLevels}
  • + *
+ * + * @param contentMetadataKeyHierarchies the hierarchies to create + * @return the created hierarchies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CreateContentMetadataKeyHierarchies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $contentMetadataKeyHierarchies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentMetadataKeyHierarchies = null) { + $this->contentMetadataKeyHierarchies = $contentMetadataKeyHierarchies; + } + + } +} + +if (!class_exists("CreateContentMetadataKeyHierarchiesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CreateContentMetadataKeyHierarchiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + if (!class_exists("GetContentMetadataKeyHierarchiesByStatement", false)) { /** * Gets a {@link ContentMetadataKeyHierarchyPage} of {@link ContentMetadataKeyHierarchy} @@ -2355,11 +2367,11 @@ public function __construct() { * @throws ApiException if the ID of the active network does not exist or there is a * backend error * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetContentMetadataKeyHierarchiesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2395,11 +2407,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetContentMetadataKeyHierarchiesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2431,15 +2443,233 @@ public function __construct($rval = null) { } } +if (!class_exists("PerformContentMetadataKeyHierarchyAction", false)) { + /** + * Performs actions on {@link ContentMetadataKeyHierarchy} objects that match the given + * {@link Statement#query}. + * + * @param contentMetadataKeyHierarchyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of hierarchies + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PerformContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchyAction + */ + public $contentMetadataKeyHierarchyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentMetadataKeyHierarchyAction = null, $filterStatement = null) { + $this->contentMetadataKeyHierarchyAction = $contentMetadataKeyHierarchyAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformContentMetadataKeyHierarchyActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PerformContentMetadataKeyHierarchyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateContentMetadataKeyHierarchies", false)) { + /** + * Updates the specified {@link ContentMetadataKeyHierarchy} objects. + * + * @param contentMetadataKeyHierarchies the hierarchies to update + * @return the updated hierarchies + * @throws ApiException if there is an error updating the one of the hierarchies + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UpdateContentMetadataKeyHierarchies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $contentMetadataKeyHierarchies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentMetadataKeyHierarchies = null) { + $this->contentMetadataKeyHierarchies = $contentMetadataKeyHierarchies; + } + + } +} + +if (!class_exists("UpdateContentMetadataKeyHierarchiesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UpdateContentMetadataKeyHierarchiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2464,11 +2694,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2478,11 +2707,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2507,10 +2736,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2520,11 +2748,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2549,10 +2777,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2562,11 +2789,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2591,10 +2818,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2604,11 +2830,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2633,10 +2859,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2646,11 +2871,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -2675,10 +2900,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -2688,11 +2912,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -2717,10 +2941,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2730,34 +2953,35 @@ public function __construct($value = null, $ValueType = null) { /** * ContentMetadataKeyHierarchyService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyService extends DfpSoapClient { const SERVICE_NAME = "ContentMetadataKeyHierarchyService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ContentMetadataKeyHierarchyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ContentMetadataKeyHierarchyService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ContentMetadataKeyHierarchyService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ContentMetadataKeyHierarchyService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyAction" => "ContentMetadataKeyHierarchyAction", "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", "ContentMetadataKeyHierarchyError" => "ContentMetadataKeyHierarchyError", "ContentMetadataKeyHierarchyLevel" => "ContentMetadataKeyHierarchyLevel", @@ -2766,11 +2990,11 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", + "DeleteContentMetadataKeyHierarchies" => "DeleteContentMetadataKeyHierarchies", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -2788,11 +3012,14 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "String_ValueMapEntry" => "String_ValueMapEntry", "TextValue" => "TextValue", "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", + "ContentMetadataKeyHierarchyStatus" => "ContentMetadataKeyHierarchyStatus", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", @@ -2806,8 +3033,14 @@ class ContentMetadataKeyHierarchyService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", + "createContentMetadataKeyHierarchies" => "CreateContentMetadataKeyHierarchies", + "createContentMetadataKeyHierarchiesResponse" => "CreateContentMetadataKeyHierarchiesResponse", "getContentMetadataKeyHierarchiesByStatement" => "GetContentMetadataKeyHierarchiesByStatement", "getContentMetadataKeyHierarchiesByStatementResponse" => "GetContentMetadataKeyHierarchiesByStatementResponse", + "performContentMetadataKeyHierarchyAction" => "PerformContentMetadataKeyHierarchyAction", + "performContentMetadataKeyHierarchyActionResponse" => "PerformContentMetadataKeyHierarchyActionResponse", + "updateContentMetadataKeyHierarchies" => "UpdateContentMetadataKeyHierarchies", + "updateContentMetadataKeyHierarchiesResponse" => "UpdateContentMetadataKeyHierarchiesResponse", ); @@ -2821,6 +3054,24 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } + /** + * Creates new {@link ContentMetadataKeyHierarchy} objects. + * + * The following fields are required: + *

    + *
  • {@link ContentMetadataKeyHierarchy#id}
  • + *
  • {@link ContentMetadataKeyHierarchy#name}
  • + *
  • {@link ContentMetadataKeyHierarchy#hierarchyLevels}
  • + *
+ * + * @param contentMetadataKeyHierarchies the hierarchies to create + * @return the created hierarchies with their IDs filled in + */ + public function createContentMetadataKeyHierarchies($contentMetadataKeyHierarchies) { + $args = new CreateContentMetadataKeyHierarchies($contentMetadataKeyHierarchies); + $result = $this->__soapCall("createContentMetadataKeyHierarchies", array($args)); + return $result->rval; + } /** * Gets a {@link ContentMetadataKeyHierarchyPage} of {@link ContentMetadataKeyHierarchy} * objects that satisfy the given {@link Statement#query}. The following fields are supported @@ -2855,6 +3106,32 @@ public function getContentMetadataKeyHierarchiesByStatement($filterStatement) { $result = $this->__soapCall("getContentMetadataKeyHierarchiesByStatement", array($args)); return $result->rval; } + /** + * Performs actions on {@link ContentMetadataKeyHierarchy} objects that match the given + * {@link Statement#query}. + * + * @param contentMetadataKeyHierarchyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of hierarchies + * @return the result of the action performed + */ + public function performContentMetadataKeyHierarchyAction($contentMetadataKeyHierarchyAction, $filterStatement) { + $args = new PerformContentMetadataKeyHierarchyAction($contentMetadataKeyHierarchyAction, $filterStatement); + $result = $this->__soapCall("performContentMetadataKeyHierarchyAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ContentMetadataKeyHierarchy} objects. + * + * @param contentMetadataKeyHierarchies the hierarchies to update + * @return the updated hierarchies + * @throws ApiException if there is an error updating the one of the hierarchies + */ + public function updateContentMetadataKeyHierarchies($contentMetadataKeyHierarchies) { + $args = new UpdateContentMetadataKeyHierarchies($contentMetadataKeyHierarchies); + $result = $this->__soapCall("updateContentMetadataKeyHierarchies", array($args)); + return $result->rval; + } } } diff --git a/src/Google/Api/Ads/Dfp/v201308/ContentService.php b/src/Google/Api/Ads/Dfp/v201502/ContentService.php similarity index 85% rename from src/Google/Api/Ads/Dfp/v201308/ContentService.php rename to src/Google/Api/Ads/Dfp/v201502/ContentService.php index 76cc34b85..0fd9156c7 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ContentService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CmsContent", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Contains information about {@link Content} from the CMS it was ingested from. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CmsContent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CmsContent"; + + /** + * @access public + * @var integer + */ + public $id; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + /** + * @access public + * @var string + */ + public $displayName; /** * @access public * @var string */ - public $token; + public $cmsContentId; /** * Gets the namesapce of this class @@ -401,43 +259,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + public function __construct($id = null, $displayName = null, $cmsContentId = null) { + $this->id = $id; + $this->displayName = $displayName; + $this->cmsContentId = $cmsContentId; } } } -if (!class_exists("CmsContent", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * Contains information about {@link Content} from the CMS it was ingested from. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class CmsContent { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CmsContent"; + class CollectionSizeError extends ApiError { - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $displayName; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $cmsContentId; + public $reason; /** * Gets the namesapce of this class @@ -455,10 +301,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $displayName = null, $cmsContentId = null) { - $this->id = $id; - $this->displayName = $displayName; - $this->cmsContentId = $cmsContentId; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -468,11 +316,11 @@ public function __construct($id = null, $displayName = null, $cmsContentId = nul /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -497,13 +345,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -517,11 +364,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Video line items can be targeted to {@code Content} * to indicate what ads should match when the {@code Content} is being played. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Content { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Content"; /** @@ -548,6 +395,18 @@ class Content { */ public $statusDefinedBy; + /** + * @access public + * @var DateTime + */ + public $importDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + /** * @access public * @var integer[] @@ -582,11 +441,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $status = null, $statusDefinedBy = null, $userDefinedCustomTargetingValueIds = null, $mappingRuleDefinedCustomTargetingValueIds = null, $cmsSources = null) { + public function __construct($id = null, $name = null, $status = null, $statusDefinedBy = null, $importDateTime = null, $lastModifiedDateTime = null, $userDefinedCustomTargetingValueIds = null, $mappingRuleDefinedCustomTargetingValueIds = null, $cmsSources = null) { $this->id = $id; $this->name = $name; $this->status = $status; $this->statusDefinedBy = $statusDefinedBy; + $this->importDateTime = $importDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; $this->userDefinedCustomTargetingValueIds = $userDefinedCustomTargetingValueIds; $this->mappingRuleDefinedCustomTargetingValueIds = $mappingRuleDefinedCustomTargetingValueIds; $this->cmsSources = $cmsSources; @@ -599,11 +460,11 @@ public function __construct($id = null, $name = null, $status = null, $statusDef /** * Captures a page of {@code Content} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentPage"; /** @@ -653,11 +514,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * The content partner related validation errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentPartnerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentPartnerError"; /** @@ -682,13 +543,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -698,11 +558,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -752,11 +612,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -821,11 +681,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -850,13 +710,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -868,11 +727,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -897,13 +756,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -913,11 +771,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -942,13 +800,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -958,11 +815,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -987,57 +844,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1047,11 +859,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1076,13 +888,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1093,11 +904,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1122,13 +933,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1139,11 +949,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1168,13 +978,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1185,11 +994,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1214,13 +1023,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1230,11 +1038,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -1259,13 +1067,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1276,11 +1083,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -1305,13 +1112,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1321,11 +1127,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1350,13 +1156,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1366,11 +1171,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1385,12 +1190,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1407,10 +1206,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1420,11 +1218,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1495,11 +1293,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1542,11 +1340,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1571,13 +1369,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1587,11 +1384,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1616,13 +1413,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1633,11 +1429,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1680,11 +1476,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1703,12 +1499,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1718,51 +1513,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1779,8 +1536,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1791,11 +1547,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1827,11 +1583,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1856,15 +1612,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1893,11 +1682,11 @@ public function __construct() { /** * Describes reason for {@code ContentPartnerError}s. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentPartnerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentPartnerError.Reason"; /** @@ -1926,11 +1715,11 @@ public function __construct() { /** * Describes the status of a {@link Content} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentStatus"; /** @@ -1959,11 +1748,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1992,11 +1781,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2025,11 +1814,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -2058,11 +1847,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2091,11 +1880,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2124,11 +1913,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2157,11 +1946,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2200,11 +1989,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2233,11 +2022,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -2266,11 +2055,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -2299,11 +2088,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2332,11 +2121,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2365,11 +2154,11 @@ public function __construct() { /** * Describes who defined the effective status of the {@code Content}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentStatusDefinedBy { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentStatusDefinedBy"; /** @@ -2398,11 +2187,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2459,11 +2248,11 @@ public function __construct() { * filter a set of content * @return the content that matches the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContentByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2499,11 +2288,11 @@ public function __construct($statement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContentByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2569,11 +2358,11 @@ public function __construct($rval = null) { * @param customTargetingValueId the id of the value to match * @return the content that matches the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContentByStatementAndCustomTargetingValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2616,11 +2405,11 @@ public function __construct($filterStatement = null, $customTargetingValueId = n /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetContentByStatementAndCustomTargetingValueResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2652,15 +2441,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2685,11 +2515,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2699,11 +2528,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2728,10 +2557,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2741,11 +2569,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2770,10 +2598,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2783,11 +2610,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2812,10 +2639,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2825,11 +2651,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2854,10 +2680,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -2867,11 +2733,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -2896,10 +2762,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2909,34 +2774,34 @@ public function __construct($value = null, $ValueType = null) { /** * ContentService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ContentService extends DfpSoapClient { const SERVICE_NAME = "ContentService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ContentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ContentService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ContentService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ContentService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", "CmsContent" => "CmsContent", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Content" => "Content", "ContentPage" => "ContentPage", @@ -2950,7 +2815,6 @@ class ContentService extends DfpSoapClient { "InvalidUrlError" => "InvalidUrlError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -2958,6 +2822,7 @@ class ContentService extends DfpSoapClient { "RequiredCollectionError" => "RequiredCollectionError", "RequiredNumberError" => "RequiredNumberError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -2969,6 +2834,7 @@ class ContentService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ContentPartnerError.Reason" => "ContentPartnerErrorReason", "ContentStatus" => "ContentStatus", diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeService.php b/src/Google/Api/Ads/Dfp/v201502/CreativeService.php similarity index 85% rename from src/Google/Api/Ads/Dfp/v201311/CreativeService.php rename to src/Google/Api/Ads/Dfp/v201502/CreativeService.php index bb31fc19d..d0f328bc2 100755 --- a/src/Google/Api/Ads/Dfp/v201311/CreativeService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CreativeService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * A base class for storing values of the {@link CreativeTemplateVariable}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseCreativeTemplateVariableValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCreativeTemplateVariableValue"; /** @@ -45,44 +45,6 @@ class BaseCreativeTemplateVariableValue { */ public $uniqueName; - /** - * @access public - * @var string - */ - public $BaseCreativeTemplateVariableValueType; - private $_parameterMap = array( - "BaseCreativeTemplateVariableValue.Type" => "BaseCreativeTemplateVariableValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -99,9 +61,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { + public function __construct($uniqueName = null) { $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; } } @@ -115,11 +76,11 @@ public function __construct($uniqueName = null, $BaseCreativeTemplateVariableVal *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -140,44 +101,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -194,11 +117,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -208,11 +130,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -237,13 +159,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -253,11 +174,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -266,44 +187,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -320,9 +203,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -334,11 +216,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -381,11 +263,11 @@ public function __construct($labelId = null, $isNegated = null) { /** * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#ASSET}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetCreativeTemplateVariableValue"; /** @@ -422,13 +304,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($assetId = null, $assetByteArray = null, $fileName = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { + public function __construct($assetId = null, $assetByteArray = null, $fileName = null, $uniqueName = null) { parent::__construct(); $this->assetId = $assetId; $this->assetByteArray = $assetByteArray; $this->fileName = $fileName; $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; } } @@ -438,51 +319,13 @@ public function __construct($assetId = null, $assetByteArray = null, $fileName = /** * Base asset properties. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Asset { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Asset"; - /** - * @access public - * @var string - */ - public $AssetType; - private $_parameterMap = array( - "Asset.Type" => "AssetType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -499,8 +342,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AssetType = null) { - $this->AssetType = $AssetType; + public function __construct() { } } @@ -510,11 +352,11 @@ public function __construct($AssetType = null) { /** * Lists all errors associated with assets. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AssetError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetError"; /** @@ -539,85 +381,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -627,11 +396,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -656,13 +425,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -672,11 +440,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -685,44 +453,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -739,32 +469,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -782,10 +509,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -795,11 +524,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -824,13 +553,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -841,11 +569,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type ConversionEvent * and value of type TrackingUrls. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ConversionEvent_TrackingUrlsMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ConversionEvent_TrackingUrlsMapEntry"; /** @@ -888,11 +616,11 @@ public function __construct($key = null, $value = null) { /** * A {@code CreativeAsset} is an asset that can be used in creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeAsset { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeAsset"; /** @@ -972,11 +700,11 @@ public function __construct($assetId = null, $assetByteArray = null, $fileName = * {@link CustomCreative} and an asset. Any assets that are associated with a * creative can be inserted into its HTML snippet. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCreativeAsset { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreativeAsset"; /** @@ -1040,11 +768,11 @@ public function __construct($macroName = null, $assetId = null, $assetByteArray /** * Lists all errors associated with creative asset macros. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeAssetMacroError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeAssetMacroError"; /** @@ -1069,13 +797,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1085,11 +812,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A {@code Creative} represents the media for the ad being served. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Creative"; /** @@ -1140,44 +867,6 @@ class Creative { */ public $customFieldValues; - /** - * @access public - * @var string - */ - public $CreativeType; - private $_parameterMap = array( - "Creative.Type" => "CreativeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1194,7 +883,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { $this->advertiserId = $advertiserId; $this->id = $id; $this->name = $name; @@ -1203,7 +892,6 @@ public function __construct($advertiserId = null, $id = null, $name = null, $siz $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -1213,11 +901,11 @@ public function __construct($advertiserId = null, $id = null, $name = null, $siz /** * Lists all errors associated with creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError"; /** @@ -1242,13 +930,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1258,11 +945,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Creative} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativePage"; /** @@ -1312,11 +999,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Errors relating to creative sets & subclasses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeSetError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSetError"; /** @@ -1341,13 +1028,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1357,11 +1043,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with custom creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreativeError"; /** @@ -1386,13 +1072,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1403,11 +1088,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -1432,11 +1117,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -1446,11 +1130,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -1475,13 +1159,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1491,11 +1174,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1545,11 +1228,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1614,11 +1297,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -1643,11 +1326,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -1658,11 +1340,11 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -1681,12 +1363,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1697,11 +1378,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1726,13 +1407,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1742,11 +1422,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for problems related to files. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FileError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FileError"; /** @@ -1771,13 +1451,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1787,11 +1466,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A {@code Creative} that has a destination url * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class HasDestinationUrlCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "HasDestinationUrlCreative"; /** @@ -1800,6 +1479,12 @@ class HasDestinationUrlCreative extends Creative { */ public $destinationUrl; + /** + * @access public + * @var tnsDestinationUrlType + */ + public $destinationUrlType; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1816,9 +1501,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($destinationUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($destinationUrl = null, $destinationUrlType = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; $this->advertiserId = $advertiserId; $this->id = $id; $this->name = $name; @@ -1827,7 +1513,6 @@ public function __construct($destinationUrl = null, $advertiserId = null, $id = $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -1837,11 +1522,11 @@ public function __construct($destinationUrl = null, $advertiserId = null, $id = /** * Lists all errors associated with images. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ImageError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageError"; /** @@ -1866,13 +1551,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1884,11 +1568,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1913,13 +1597,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1934,13 +1617,19 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * creative asset. However, DoubleClick tags are not sent to the user's browser. * Instead, they are processed internally within the DoubleClick system.. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalRedirectCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalRedirectCreative"; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * @access public * @var Size @@ -1965,6 +1654,18 @@ class InternalRedirectCreative extends Creative { */ public $isInterstitial; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1981,12 +1682,15 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($assetSize = null, $internalRedirectUrl = null, $overrideSize = null, $isInterstitial = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($lockedOrientation = null, $assetSize = null, $internalRedirectUrl = null, $overrideSize = null, $isInterstitial = null, $sslScanResult = null, $sslManualOverride = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); + $this->lockedOrientation = $lockedOrientation; $this->assetSize = $assetSize; $this->internalRedirectUrl = $internalRedirectUrl; $this->overrideSize = $overrideSize; $this->isInterstitial = $isInterstitial; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->advertiserId = $advertiserId; $this->id = $id; $this->name = $name; @@ -1995,7 +1699,6 @@ public function __construct($assetSize = null, $internalRedirectUrl = null, $ove $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -2005,11 +1708,11 @@ public function __construct($assetSize = null, $internalRedirectUrl = null, $ove /** * Lists all errors associated with phone numbers. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidPhoneNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidPhoneNumberError"; /** @@ -2034,13 +1737,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2050,11 +1752,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -2079,13 +1781,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2095,11 +1796,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -2124,13 +1825,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2141,11 +1841,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A {@code Creative} that isn't supported by Google DFP, but was migrated * from DART. Creatives of this type cannot be created or modified. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LegacyDfpCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LegacyDfpCreative"; /** @@ -2164,7 +1864,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->advertiserId = $advertiserId; $this->id = $id; @@ -2174,7 +1874,6 @@ public function __construct($advertiserId = null, $id = null, $name = null, $siz $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -2184,11 +1883,11 @@ public function __construct($advertiserId = null, $id = null, $name = null, $siz /** * Lists all errors associated with line item-to-creative association dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemCreativeAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError"; /** @@ -2213,13 +1912,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2229,11 +1927,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LongCreativeTemplateVariableValue"; /** @@ -2258,11 +1956,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { + public function __construct($value = null, $uniqueName = null) { parent::__construct(); $this->value = $value; $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; } } @@ -2272,11 +1969,11 @@ public function __construct($value = null, $uniqueName = null, $BaseCreativeTemp /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -2301,13 +1998,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2317,11 +2013,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -2346,36 +2042,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("ParseError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError"; /** * @access public - * @var string + * @var tnsParseErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -2393,29 +2086,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ParseError", false)) { +if (!class_exists("PermissionError", false)) { /** - * Lists errors related to parsing. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseError extends ApiError { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var tnsParseErrorReason + * @var tnsPermissionErrorReason */ public $reason; @@ -2435,34 +2130,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("ProgrammaticCreative", false)) { /** - * Errors related to incorrect permission. + * A {@code Creative} used for programmatic trafficking. This creative will be auto-created with + * the right approval from the buyer. This creative cannot be created through + * the API. This creative can be updated. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; + class ProgrammaticCreative extends Creative { - /** - * @access public - * @var tnsPermissionErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticCreative"; /** * Gets the namesapce of this class @@ -2480,13 +2170,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; } } @@ -2497,11 +2190,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2526,13 +2219,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2543,11 +2235,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2572,13 +2264,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2589,11 +2280,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2618,13 +2309,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2634,11 +2324,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -2663,13 +2353,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2679,11 +2368,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An externally hosted asset. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RedirectAsset extends Asset { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RedirectAsset"; /** @@ -2708,10 +2397,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($redirectUrl = null, $AssetType = null) { + public function __construct($redirectUrl = null) { parent::__construct(); $this->redirectUrl = $redirectUrl; - $this->AssetType = $AssetType; } } @@ -2721,11 +2409,11 @@ public function __construct($redirectUrl = null, $AssetType = null) { /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -2750,13 +2438,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2766,11 +2453,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2795,13 +2482,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2812,11 +2498,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2841,13 +2527,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2857,11 +2542,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating {@link Size}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError"; /** @@ -2886,13 +2571,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2902,11 +2586,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a child asset in {@code RichMediaStudioCreative}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioChildAssetProperty { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioChildAssetProperty"; /** @@ -2977,11 +2661,11 @@ public function __construct($name = null, $type = null, $totalFileSize = null, $ /** * Lists all errors associated with Rich Media Studio creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeError"; /** @@ -3006,13 +2690,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3022,11 +2705,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -3051,48 +2734,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Size", false)) { +if (!class_exists("SetTopBoxCreativeError", false)) { /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

- * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * Errors associated with {@link SetTopBoxCreative set-top box creatives}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; + class SetTopBoxCreativeError extends ApiError { - /** - * @access public - * @var integer - */ - public $height; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxCreativeError"; /** * @access public - * @var boolean + * @var tnsSetTopBoxCreativeErrorReason */ - public $isAspectRatio; + public $reason; /** * Gets the namesapce of this class @@ -3110,24 +2778,82 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("SoapRequestHeader", false)) { +if (!class_exists("Size", false)) { /** - * Represents the SOAP request header used by API requests. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

+ * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Size"; + + /** + * @access public + * @var integer + */ + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($width = null, $height = null, $isAspectRatio = null) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -3142,12 +2868,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3164,10 +2884,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -3177,11 +2896,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -3252,11 +2971,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -3299,11 +3018,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -3328,13 +3047,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3345,11 +3063,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Stores values of {@link CreativeTemplateVariable} of * {@link VariableType#STRING} and {@link VariableType#LIST}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringCreativeTemplateVariableValue"; /** @@ -3374,11 +3092,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { + public function __construct($value = null, $uniqueName = null) { parent::__construct(); $this->value = $value; $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; } } @@ -3388,11 +3105,11 @@ public function __construct($value = null, $uniqueName = null, $BaseCreativeTemp /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -3417,13 +3134,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3434,11 +3150,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -3481,11 +3197,11 @@ public function __construct($key = null, $value = null) { /** * Error for converting flash to swiffy asset. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SwiffyConversionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SwiffyConversionError"; /** @@ -3510,13 +3226,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3526,11 +3241,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A fallback swiffy asset used for flash creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SwiffyFallbackAsset { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SwiffyFallbackAsset"; /** @@ -3580,11 +3295,11 @@ public function __construct($asset = null, $html5Features = null, $localizedInfo /** * A {@code Creative} that is created by the specified creative template. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TemplateCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TemplateCreative"; /** @@ -3599,6 +3314,12 @@ class TemplateCreative extends Creative { */ public $isInterstitial; + /** + * @access public + * @var boolean + */ + public $isNativeEligible; + /** * @access public * @var string @@ -3611,6 +3332,24 @@ class TemplateCreative extends Creative { */ public $creativeTemplateVariableValues; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -3627,12 +3366,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeTemplateId = null, $isInterstitial = null, $destinationUrl = null, $creativeTemplateVariableValues = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($creativeTemplateId = null, $isInterstitial = null, $isNativeEligible = null, $destinationUrl = null, $creativeTemplateVariableValues = null, $sslScanResult = null, $sslManualOverride = null, $lockedOrientation = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->creativeTemplateId = $creativeTemplateId; $this->isInterstitial = $isInterstitial; + $this->isNativeEligible = $isNativeEligible; $this->destinationUrl = $destinationUrl; $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->lockedOrientation = $lockedOrientation; $this->advertiserId = $advertiserId; $this->id = $id; $this->name = $name; @@ -3641,7 +3384,6 @@ public function __construct($creativeTemplateId = null, $isInterstitial = null, $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -3651,11 +3393,11 @@ public function __construct($creativeTemplateId = null, $isInterstitial = null, /** * Lists all errors associated with template instantiated creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TemplateInstantiatedCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TemplateInstantiatedCreativeError"; /** @@ -3680,13 +3422,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3696,11 +3437,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A {@code Creative} that is served by a 3rd-party vendor. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ThirdPartyCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ThirdPartyCreative"; /** @@ -3715,6 +3456,24 @@ class ThirdPartyCreative extends Creative { */ public $expandedSnippet; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -3731,10 +3490,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($snippet = null, $expandedSnippet = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($snippet = null, $expandedSnippet = null, $sslScanResult = null, $sslManualOverride = null, $lockedOrientation = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->snippet = $snippet; $this->expandedSnippet = $expandedSnippet; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->lockedOrientation = $lockedOrientation; $this->advertiserId = $advertiserId; $this->id = $id; $this->name = $name; @@ -3743,7 +3505,6 @@ public function __construct($snippet = null, $expandedSnippet = null, $advertise $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -3753,11 +3514,11 @@ public function __construct($snippet = null, $expandedSnippet = null, $advertise /** * A list of URLs that should be pinged for a conversion event. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TrackingUrls { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TrackingUrls"; /** @@ -3793,11 +3554,11 @@ public function __construct($urls = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -3816,12 +3577,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3831,11 +3591,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -3854,12 +3614,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3871,11 +3630,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * This object is readonly and when encountered should be reported * on the DFP API forum. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UnsupportedCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UnsupportedCreative"; /** @@ -3900,7 +3659,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($unsupportedCreativeType = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($unsupportedCreativeType = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->unsupportedCreativeType = $unsupportedCreativeType; $this->advertiserId = $advertiserId; @@ -3911,7 +3670,6 @@ public function __construct($unsupportedCreativeType = null, $advertiserId = nul $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -3921,11 +3679,11 @@ public function __construct($unsupportedCreativeType = null, $advertiserId = nul /** * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UrlCreativeTemplateVariableValue"; /** @@ -3950,11 +3708,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $uniqueName = null, $BaseCreativeTemplateVariableValueType = null) { + public function __construct($value = null, $uniqueName = null) { parent::__construct(); $this->value = $value; $this->uniqueName = $uniqueName; - $this->BaseCreativeTemplateVariableValueType = $BaseCreativeTemplateVariableValueType; } } @@ -3964,51 +3721,13 @@ public function __construct($value = null, $uniqueName = null, $BaseCreativeTemp /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -4025,8 +3744,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -4037,11 +3755,11 @@ public function __construct($ValueType = null) { * A {@code Creative} that points to an externally hosted VAST ad and is * served via VAST XML as a VAST Wrapper. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VastRedirectCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VastRedirectCreative"; /** @@ -4080,6 +3798,18 @@ class VastRedirectCreative extends Creative { */ public $vastPreviewUrl; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4096,7 +3826,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($vastXmlUrl = null, $vastRedirectType = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $vastPreviewUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($vastXmlUrl = null, $vastRedirectType = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->vastXmlUrl = $vastXmlUrl; $this->vastRedirectType = $vastRedirectType; @@ -4104,6 +3834,8 @@ public function __construct($vastXmlUrl = null, $vastRedirectType = null, $durat $this->companionCreativeIds = $companionCreativeIds; $this->trackingUrls = $trackingUrls; $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->advertiserId = $advertiserId; $this->id = $id; $this->name = $name; @@ -4112,7 +3844,102 @@ public function __construct($vastXmlUrl = null, $vastRedirectType = null, $durat $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; + } + + } +} + +if (!class_exists("VideoMetadata", false)) { + /** + * Metadata for a video asset. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoMetadata { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoMetadata"; + + /** + * @access public + * @var tnsScalableType + */ + public $scalableType; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $bitRate; + + /** + * @access public + * @var integer + */ + public $minimumBitRate; + + /** + * @access public + * @var integer + */ + public $maximumBitRate; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsMimeType + */ + public $mimeType; + + /** + * @access public + * @var tnsVideoDeliveryType + */ + public $deliveryType; + + /** + * @access public + * @var string[] + */ + public $codecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($scalableType = null, $duration = null, $bitRate = null, $minimumBitRate = null, $maximumBitRate = null, $size = null, $mimeType = null, $deliveryType = null, $codecs = null) { + $this->scalableType = $scalableType; + $this->duration = $duration; + $this->bitRate = $bitRate; + $this->minimumBitRate = $minimumBitRate; + $this->maximumBitRate = $maximumBitRate; + $this->size = $size; + $this->mimeType = $mimeType; + $this->deliveryType = $deliveryType; + $this->codecs = $codecs; } } @@ -4122,13 +3949,19 @@ public function __construct($vastXmlUrl = null, $vastRedirectType = null, $durat /** * An externally-hosted video asset. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoRedirectAsset extends RedirectAsset { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoRedirectAsset"; + /** + * @access public + * @var VideoMetadata + */ + public $metadata; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4145,8 +3978,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($redirectUrl = null) { + public function __construct($metadata = null, $redirectUrl = null) { parent::__construct(); + $this->metadata = $metadata; $this->redirectUrl = $redirectUrl; } @@ -4159,11 +3993,11 @@ public function __construct($redirectUrl = null) { * and is served via VAST 2.0 XML. It is displayed in a linear fashion * with a video (before, after, interrupting). This creative is read only. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VpaidLinearCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VpaidLinearCreative"; /** @@ -4220,6 +4054,18 @@ class VpaidLinearCreative extends HasDestinationUrlCreative { */ public $vastPreviewUrl; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4236,7 +4082,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($flashName = null, $flashByteArray = null, $overrideSize = null, $flashAssetSize = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $destinationUrl = null) { + public function __construct($flashName = null, $flashByteArray = null, $overrideSize = null, $flashAssetSize = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->flashName = $flashName; $this->flashByteArray = $flashByteArray; @@ -4247,7 +4093,10 @@ public function __construct($flashName = null, $flashByteArray = null, $override $this->customParameters = $customParameters; $this->duration = $duration; $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -4259,11 +4108,11 @@ public function __construct($flashName = null, $flashByteArray = null, $override * and is served via VAST 2.0 XML. It is displayed in a linear fashion * with a video (before, after, interrupting). This creative is read only. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VpaidLinearRedirectCreative"; /** @@ -4308,6 +4157,18 @@ class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { */ public $vastPreviewUrl; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4324,7 +4185,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $flashUrl = null, $flashAssetSize = null, $vastPreviewUrl = null, $destinationUrl = null) { + public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $flashUrl = null, $flashAssetSize = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->companionCreativeIds = $companionCreativeIds; $this->trackingUrls = $trackingUrls; @@ -4333,7 +4194,10 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, $this->flashUrl = $flashUrl; $this->flashAssetSize = $flashAssetSize; $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -4343,11 +4207,11 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, /** * The various ApiFramework types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiFramework { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiFramework"; /** @@ -4377,11 +4241,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -4410,11 +4274,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AssetErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetError.Reason"; /** @@ -4446,11 +4310,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -4475,15 +4339,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -4513,11 +4410,11 @@ public function __construct() { * All possible tracking event types. Not all events are supported by every * kind of creative. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ConversionEvent { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ConversionEvent"; /** @@ -4546,11 +4443,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeAssetMacroErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeAssetMacroError.Reason"; /** @@ -4579,11 +4476,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError.Reason"; /** @@ -4612,11 +4509,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeSetErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSetError.Reason"; /** @@ -4645,11 +4542,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreativeError.Reason"; /** @@ -4678,11 +4575,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError.Reason"; /** @@ -4707,15 +4604,48 @@ public function __construct() { } } +if (!class_exists("DestinationUrlType", false)) { + /** + * The valid actions that a destination URL may perform if the user clicks on the ad. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DestinationUrlType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DestinationUrlType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -4744,11 +4674,11 @@ public function __construct() { /** * The provided byte array is empty. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FileErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FileError.Reason"; /** @@ -4777,11 +4707,11 @@ public function __construct() { /** * An HTML5 features required by HTML5 assets. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Html5Feature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Html5Feature"; /** @@ -4810,11 +4740,11 @@ public function __construct() { /** * Image densities. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ImageDensity { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageDensity"; /** @@ -4843,11 +4773,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ImageErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageError.Reason"; /** @@ -4876,11 +4806,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -4909,11 +4839,11 @@ public function __construct() { /** * The phone number is invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidPhoneNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidPhoneNumberError.Reason"; /** @@ -4942,11 +4872,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -4975,11 +4905,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -5008,11 +4938,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemCreativeAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; /** @@ -5037,15 +4967,81 @@ public function __construct() { } } +if (!class_exists("LockedOrientation", false)) { + /** + * Describes the orientation that a creative should be served with. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LockedOrientation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LockedOrientation"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MimeType", false)) { + /** + * Enum of supported mime types + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class MimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MimeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("NotNullErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -5074,11 +5070,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -5107,11 +5103,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -5140,11 +5136,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -5173,11 +5169,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -5206,11 +5202,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -5249,11 +5245,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -5282,11 +5278,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -5315,11 +5311,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -5348,11 +5344,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -5381,11 +5377,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -5415,11 +5411,11 @@ public function __construct() { * {@link Creative#size} or {@link LineItem#creativeSizes} is * missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError.Reason"; /** @@ -5448,11 +5444,11 @@ public function __construct() { /** * Type of {@code RichMediaStudioChildAssetProperty} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioChildAssetPropertyType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioChildAssetProperty.Type"; /** @@ -5481,11 +5477,11 @@ public function __construct() { /** * Rich Media Studio creative artwork types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioCreativeArtworkType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeArtworkType"; /** @@ -5517,11 +5513,11 @@ public function __construct() { * This is determined by Rich Media Studio based on the content * of the creative and is not updateable. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioCreativeBillingAttribute { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeBillingAttribute"; /** @@ -5550,11 +5546,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; /** @@ -5583,11 +5579,11 @@ public function __construct() { /** * Different creative format supported by Rich Media Studio creative. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioCreativeFormat { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeFormat"; /** @@ -5612,15 +5608,48 @@ public function __construct() { } } +if (!class_exists("ScalableType", false)) { + /** + * The different ways a video/flash can scale. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ScalableType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ScalableType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -5645,16 +5674,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("SetTopBoxCreativeErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * Error reasons for set-top box creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class SetTopBoxCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxCreativeError.Reason"; /** * Gets the namesapce of this class @@ -5678,16 +5707,17 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("SslManualOverride", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * Enum to store the creative SSL compatibility manual override. + * Its three states are similar to that of {@link SslScanResult}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthErrorReason { + class SslManualOverride { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SslManualOverride"; /** * Gets the namesapce of this class @@ -5711,16 +5741,16 @@ public function __construct() { } } -if (!class_exists("SwiffyConversionErrorReason", false)) { +if (!class_exists("SslScanResult", false)) { /** - * Error reason for {@link SwiffyConversionError}. + * Enum to store the creative SSL compatibility scan result. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class SwiffyConversionErrorReason { + class SslScanResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SwiffyConversionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SslScanResult"; /** * Gets the namesapce of this class @@ -5744,16 +5774,16 @@ public function __construct() { } } -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * The reason for the error + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TemplateInstantiatedCreativeErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -5777,16 +5807,16 @@ public function __construct() { } } -if (!class_exists("VastRedirectType", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VastRedirectType { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VastRedirectType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -5810,33 +5840,16 @@ public function __construct() { } } -if (!class_exists("CreateCreative", false)) { +if (!class_exists("SwiffyConversionErrorReason", false)) { /** - * Creates a new {@link Creative}. - * - * The following fields are required along with the required fields of the - * sub-class: - *
    - *
  • {@link Creative#advertiserId}
  • - *
  • {@link Creative#name}
  • - *
  • {@link Creative#size}
  • - *
- * - * @param creative the creative to create - * @return the new creative with its ID set + * Error reason for {@link SwiffyConversionError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateCreative { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class SwiffyConversionErrorReason { - /** - * @access public - * @var Creative - */ - public $creative; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SwiffyConversionError.Reason"; /** * Gets the namesapce of this class @@ -5854,29 +5867,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creative = null) { - $this->creative = $creative; + public function __construct() { } } } -if (!class_exists("CreateCreativeResponse", false)) { +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { /** - * + * The reason for the error * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateCreativeResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class TemplateInstantiatedCreativeErrorReason { - /** - * @access public - * @var Creative - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; /** * Gets the namesapce of this class @@ -5894,32 +5900,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("CreateCreatives", false)) { +if (!class_exists("VastRedirectType", false)) { /** - * Creates new {@link Creative} objects. - * - * @param creatives the creatives to create - * @return the created creatives with their IDs filled in + * The types of VAST ads that a {@link VastRedirectCreative} can point to. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateCreatives { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class VastRedirectType { - /** - * @access public - * @var Creative[] - */ - public $creatives; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VastRedirectType"; /** * Gets the namesapce of this class @@ -5937,29 +5933,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creatives = null) { - $this->creatives = $creatives; + public function __construct() { } } } -if (!class_exists("CreateCreativesResponse", false)) { +if (!class_exists("VideoDeliveryType", false)) { /** - * + * The video delivery type. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateCreativesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class VideoDeliveryType { - /** - * @access public - * @var Creative[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoDeliveryType"; /** * Gets the namesapce of this class @@ -5977,32 +5966,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("GetCreative", false)) { +if (!class_exists("CreateCreatives", false)) { /** - * Returns the {@link Creative} uniquely identified by the given ID. + * Creates new {@link Creative} objects. * - * @param creativeId the ID of the creative, which must already exist - * @return the {@code Creative} uniquely identified by the given ID + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetCreative { + class CreateCreatives { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var Creative[] */ - public $creativeId; + public $creatives; /** * Gets the namesapce of this class @@ -6020,27 +6008,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeId = null) { - $this->creativeId = $creativeId; + public function __construct($creatives = null) { + $this->creatives = $creatives; } } } -if (!class_exists("GetCreativeResponse", false)) { +if (!class_exists("CreateCreativesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetCreativeResponse { + class CreateCreativesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Creative + * @var Creative[] */ public $rval; @@ -6107,11 +6095,11 @@ public function __construct($rval = null) { * a set of creatives * @return the creatives that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetCreativesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -6147,11 +6135,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetCreativesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -6183,25 +6171,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCreative", false)) { +if (!class_exists("UpdateCreatives", false)) { /** - * Updates the specified {@link Creative}. + * Updates the specified {@link Creative} objects. * - * @param creative the creative to update - * @return the updated creative + * @param creatives the creatives to update + * @return the updated creatives * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateCreative { + class UpdateCreatives { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Creative + * @var Creative[] */ - public $creative; + public $creatives; /** * Gets the namesapce of this class @@ -6219,27 +6207,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creative = null) { - $this->creative = $creative; + public function __construct($creatives = null) { + $this->creatives = $creatives; } } } -if (!class_exists("UpdateCreativeResponse", false)) { +if (!class_exists("UpdateCreativesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateCreativeResponse { + class UpdateCreativesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Creative + * @var Creative[] */ public $rval; @@ -6266,65 +6254,16 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCreatives", false)) { - /** - * Updates the specified {@link Creative} objects. - * - * @param creatives the creatives to update - * @return the updated creatives - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateCreatives { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Creative[] - */ - public $creatives; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creatives = null) { - $this->creatives = $creatives; - } - - } -} - -if (!class_exists("UpdateCreativesResponse", false)) { +if (!class_exists("BaseDynamicAllocationCreative", false)) { /** - * + * A base class for dynamic allocation creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateCreativesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class BaseDynamicAllocationCreative extends Creative { - /** - * @access public - * @var Creative[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BaseDynamicAllocationCreative"; /** * Gets the namesapce of this class @@ -6342,23 +6281,38 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { + parent::__construct(); + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; } } } -if (!class_exists("BaseDynamicAllocationCreative", false)) { +if (!class_exists("ObjectValue", false)) { /** - * A base class for dynamic allocation creatives. + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseDynamicAllocationCreative extends Creative { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseDynamicAllocationCreative"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -6376,17 +6330,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct() { parent::__construct(); - $this->advertiserId = $advertiserId; - $this->id = $id; - $this->name = $name; - $this->size = $size; - $this->previewUrl = $previewUrl; - $this->appliedLabels = $appliedLabels; - $this->lastModifiedDateTime = $lastModifiedDateTime; - $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -6396,11 +6341,11 @@ public function __construct($advertiserId = null, $id = null, $name = null, $siz /** * An AdMob backfill creative. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdMobBackfillCreative extends BaseDynamicAllocationCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdMobBackfillCreative"; /** @@ -6415,6 +6360,12 @@ class AdMobBackfillCreative extends BaseDynamicAllocationCreative { */ public $publisherId; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -6431,10 +6382,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($additionalParameters = null, $publisherId = null) { + public function __construct($additionalParameters = null, $publisherId = null, $lockedOrientation = null) { parent::__construct(); $this->additionalParameters = $additionalParameters; $this->publisherId = $publisherId; + $this->lockedOrientation = $lockedOrientation; } } @@ -6444,11 +6396,11 @@ public function __construct($additionalParameters = null, $publisherId = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -6473,11 +6425,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -6491,11 +6442,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti * {@link Size#isAspectRatio}. It can have multiple images whose dimensions * conform to that aspect ratio. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AspectRatioImageCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AspectRatioImageCreative"; /** @@ -6538,13 +6489,14 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($imageAssets = null, $altText = null, $thirdPartyImpressionUrl = null, $overrideSize = null, $destinationUrl = null) { + public function __construct($imageAssets = null, $altText = null, $thirdPartyImpressionUrl = null, $overrideSize = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->imageAssets = $imageAssets; $this->altText = $altText; $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; $this->overrideSize = $overrideSize; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -6555,11 +6507,11 @@ public function __construct($imageAssets = null, $altText = null, $thirdPartyImp * A base type for creatives that display a Flash-based ad. If the Flash ad * cannot load, a fallback image is displayed instead. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseFlashCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseFlashCreative"; /** @@ -6616,6 +6568,18 @@ class BaseFlashCreative extends HasDestinationUrlCreative { */ public $fallbackAssetSize; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -6632,7 +6596,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $destinationUrl = null) { + public function __construct($flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->flashName = $flashName; $this->flashByteArray = $flashByteArray; @@ -6643,7 +6607,10 @@ public function __construct($flashName = null, $flashByteArray = null, $fallback $this->fallbackPreviewUrl = $fallbackPreviewUrl; $this->flashAssetSize = $flashAssetSize; $this->fallbackAssetSize = $fallbackAssetSize; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -6655,11 +6622,11 @@ public function __construct($flashName = null, $flashByteArray = null, $fallback * If the remote flash asset cannot be served, a fallback image is used at an * alternate URL. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseFlashRedirectCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseFlashRedirectCreative"; /** @@ -6680,6 +6647,18 @@ class BaseFlashRedirectCreative extends HasDestinationUrlCreative { */ public $fallbackPreviewUrl; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -6696,12 +6675,15 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $destinationUrl = null) { + public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->flashUrl = $flashUrl; $this->fallbackUrl = $fallbackUrl; $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -6711,11 +6693,11 @@ public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPrev /** * The base type for creatives that display an image. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseImageCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseImageCreative"; /** @@ -6746,11 +6728,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($overrideSize = null, $primaryImageAsset = null, $destinationUrl = null) { + public function __construct($overrideSize = null, $primaryImageAsset = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->overrideSize = $overrideSize; $this->primaryImageAsset = $primaryImageAsset; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -6760,11 +6743,11 @@ public function __construct($overrideSize = null, $primaryImageAsset = null, $de /** * The base type for creatives that load an image asset from a specified URL. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseImageRedirectCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseImageRedirectCreative"; /** @@ -6789,10 +6772,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($imageUrl = null, $destinationUrl = null) { + public function __construct($imageUrl = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->imageUrl = $imageUrl; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -6802,11 +6786,11 @@ public function __construct($imageUrl = null, $destinationUrl = null) { /** * A {@code Creative} that is created by a Rich Media Studio. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseRichMediaStudioCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRichMediaStudioCreative"; /** @@ -6899,6 +6883,18 @@ class BaseRichMediaStudioCreative extends Creative { */ public $richMediaStudioChildAssetProperties; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -6915,7 +6911,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null, $sslScanResult = null, $sslManualOverride = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->studioCreativeId = $studioCreativeId; $this->creativeFormat = $creativeFormat; @@ -6932,6 +6928,8 @@ public function __construct($studioCreativeId = null, $creativeFormat = null, $a $this->duration = $duration; $this->billingAttribute = $billingAttribute; $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->advertiserId = $advertiserId; $this->id = $id; $this->name = $name; @@ -6940,7 +6938,6 @@ public function __construct($studioCreativeId = null, $creativeFormat = null, $a $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -6950,11 +6947,11 @@ public function __construct($studioCreativeId = null, $creativeFormat = null, $a /** * A base type for video creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseVideoCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseVideoCreative"; /** @@ -6993,6 +6990,18 @@ class BaseVideoCreative extends HasDestinationUrlCreative { */ public $vastPreviewUrl; + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -7009,7 +7018,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $destinationUrl = null) { + public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->duration = $duration; $this->allowDurationOverride = $allowDurationOverride; @@ -7017,7 +7026,10 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr $this->companionCreativeIds = $companionCreativeIds; $this->customParameters = $customParameters; $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -7027,11 +7039,11 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -7056,10 +7068,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -7072,11 +7083,11 @@ public function __construct($value = null, $ValueType = null) { * NOTE: The size attribute is not used for click tracking creative and it will * not be persisted upon save. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingCreative extends Creative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingCreative"; /** @@ -7101,7 +7112,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($clickTrackingUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null) { + public function __construct($clickTrackingUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { parent::__construct(); $this->clickTrackingUrl = $clickTrackingUrl; $this->advertiserId = $advertiserId; @@ -7112,7 +7123,6 @@ public function __construct($clickTrackingUrl = null, $advertiserId = null, $id $this->appliedLabels = $appliedLabels; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; - $this->CreativeType = $CreativeType; } } @@ -7122,11 +7132,11 @@ public function __construct($clickTrackingUrl = null, $advertiserId = null, $id /** * A {@code Creative} that contains an arbitrary HTML snippet and file assets. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreative"; /** @@ -7147,6 +7157,24 @@ class CustomCreative extends HasDestinationUrlCreative { */ public $isInterstitial; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -7163,12 +7191,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($htmlSnippet = null, $customCreativeAssets = null, $isInterstitial = null, $destinationUrl = null) { + public function __construct($htmlSnippet = null, $customCreativeAssets = null, $isInterstitial = null, $lockedOrientation = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->htmlSnippet = $htmlSnippet; $this->customCreativeAssets = $customCreativeAssets; $this->isInterstitial = $isInterstitial; + $this->lockedOrientation = $lockedOrientation; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -7178,11 +7210,11 @@ public function __construct($htmlSnippet = null, $customCreativeAssets = null, $ /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -7207,10 +7239,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -7220,11 +7251,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -7249,10 +7280,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -7263,11 +7293,11 @@ public function __construct($value = null, $ValueType = null) { * A mobile {@code Creative} that isn't supported by Google DFP, but was * migrated from DART. Creatives of this type cannot be created or modified. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LegacyDfpMobileCreative extends HasDestinationUrlCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LegacyDfpMobileCreative"; /** @@ -7286,9 +7316,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($destinationUrl = null) { + public function __construct($destinationUrl = null, $destinationUrlType = null) { parent::__construct(); $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; } } @@ -7299,11 +7330,11 @@ public function __construct($destinationUrl = null) { * A {@code Creative} that displays a Flash-based ad. If the Flash ad cannot * load, a fallback image is displayed instead. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FlashCreative extends BaseFlashCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FlashCreative"; /** @@ -7318,6 +7349,18 @@ class FlashCreative extends BaseFlashCreative { */ public $createSwiffyAsset; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * @access public + * @var boolean + */ + public $clickTagOverlayEnabled; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -7334,10 +7377,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($swiffyAsset = null, $createSwiffyAsset = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null) { + public function __construct($swiffyAsset = null, $createSwiffyAsset = null, $lockedOrientation = null, $clickTagOverlayEnabled = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $sslScanResult = null, $sslManualOverride = null) { parent::__construct(); $this->swiffyAsset = $swiffyAsset; $this->createSwiffyAsset = $createSwiffyAsset; + $this->lockedOrientation = $lockedOrientation; + $this->clickTagOverlayEnabled = $clickTagOverlayEnabled; $this->flashName = $flashName; $this->flashByteArray = $flashByteArray; $this->fallbackImageName = $fallbackImageName; @@ -7347,6 +7392,8 @@ public function __construct($swiffyAsset = null, $createSwiffyAsset = null, $fla $this->fallbackPreviewUrl = $fallbackPreviewUrl; $this->flashAssetSize = $flashAssetSize; $this->fallbackAssetSize = $fallbackAssetSize; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; } } @@ -7358,11 +7405,11 @@ public function __construct($swiffyAsset = null, $createSwiffyAsset = null, $fla * served via VAST 2.0 XML. Overlays cover part of the video content * they are displayed on top of. This creative is read-only. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FlashOverlayCreative extends BaseFlashCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FlashOverlayCreative"; /** @@ -7401,6 +7448,12 @@ class FlashOverlayCreative extends BaseFlashCreative { */ public $vastPreviewUrl; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -7417,7 +7470,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $vastPreviewUrl = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null) { + public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $vastPreviewUrl = null, $lockedOrientation = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $sslScanResult = null, $sslManualOverride = null) { parent::__construct(); $this->companionCreativeIds = $companionCreativeIds; $this->trackingUrls = $trackingUrls; @@ -7425,6 +7478,7 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, $this->apiFramework = $apiFramework; $this->duration = $duration; $this->vastPreviewUrl = $vastPreviewUrl; + $this->lockedOrientation = $lockedOrientation; $this->flashName = $flashName; $this->flashByteArray = $flashByteArray; $this->fallbackImageName = $fallbackImageName; @@ -7434,6 +7488,8 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, $this->fallbackPreviewUrl = $fallbackPreviewUrl; $this->flashAssetSize = $flashAssetSize; $this->fallbackAssetSize = $fallbackAssetSize; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; } } @@ -7445,11 +7501,11 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, * remote flash asset cannot be served, a fallback image is used at an * alternate URL. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FlashRedirectCreative extends BaseFlashRedirectCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FlashRedirectCreative"; /** @@ -7468,11 +7524,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null) { + public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { parent::__construct(); $this->flashUrl = $flashUrl; $this->fallbackUrl = $fallbackUrl; $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; } } @@ -7484,11 +7542,11 @@ public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPrev * and is served via VAST 2.0 XML. Overlays cover part of the video content * they are displayed on top of. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FlashRedirectOverlayCreative"; /** @@ -7549,7 +7607,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $flashAssetSize = null, $vastPreviewUrl = null, $flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null) { + public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $flashAssetSize = null, $vastPreviewUrl = null, $flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { parent::__construct(); $this->companionCreativeIds = $companionCreativeIds; $this->trackingUrls = $trackingUrls; @@ -7561,6 +7619,8 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, $this->flashUrl = $flashUrl; $this->fallbackUrl = $fallbackUrl; $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; } } @@ -7570,11 +7630,11 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, /** * Dynamic allocation creative with a backfill code snippet. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "HasHtmlSnippetDynamicAllocationCreative"; /** @@ -7611,11 +7671,11 @@ public function __construct($codeSnippet = null) { /** * A {@code Creative} that displays an image. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ImageCreative extends BaseImageCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageCreative"; /** @@ -7636,6 +7696,12 @@ class ImageCreative extends BaseImageCreative { */ public $secondaryImageAssets; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -7652,11 +7718,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($altText = null, $thirdPartyImpressionUrl = null, $secondaryImageAssets = null, $overrideSize = null, $primaryImageAsset = null) { + public function __construct($altText = null, $thirdPartyImpressionUrl = null, $secondaryImageAssets = null, $lockedOrientation = null, $overrideSize = null, $primaryImageAsset = null) { parent::__construct(); $this->altText = $altText; $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; $this->secondaryImageAssets = $secondaryImageAssets; + $this->lockedOrientation = $lockedOrientation; $this->overrideSize = $overrideSize; $this->primaryImageAsset = $primaryImageAsset; } @@ -7670,11 +7737,11 @@ public function __construct($altText = null, $thirdPartyImpressionUrl = null, $s * 2.0 XML. Overlays cover part of the video content they are displayed on * top of. This creative is read only. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ImageOverlayCreative extends BaseImageCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageOverlayCreative"; /** @@ -7689,6 +7756,12 @@ class ImageOverlayCreative extends BaseImageCreative { */ public $trackingUrls; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * @access public * @var string @@ -7723,10 +7796,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $overrideSize = null, $primaryImageAsset = null) { + public function __construct($companionCreativeIds = null, $trackingUrls = null, $lockedOrientation = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $overrideSize = null, $primaryImageAsset = null) { parent::__construct(); $this->companionCreativeIds = $companionCreativeIds; $this->trackingUrls = $trackingUrls; + $this->lockedOrientation = $lockedOrientation; $this->customParameters = $customParameters; $this->duration = $duration; $this->vastPreviewUrl = $vastPreviewUrl; @@ -7741,11 +7815,11 @@ public function __construct($companionCreativeIds = null, $trackingUrls = null, /** * A {@code Creative} that loads an image asset from a specified URL. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ImageRedirectCreative extends BaseImageRedirectCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageRedirectCreative"; /** @@ -7792,11 +7866,11 @@ public function __construct($altText = null, $thirdPartyImpressionUrl = null, $i * and is served via VAST 2.0 XML. Overlays cover part of the video content * they are displayed on top of. This creative is read only. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageRedirectOverlayCreative"; /** @@ -7869,11 +7943,11 @@ public function __construct($assetSize = null, $duration = null, $companionCreat /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -7898,10 +7972,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -7912,13 +7985,19 @@ public function __construct($value = null, $ValueType = null) { * A {@code Creative} that is created by a Rich Media Studio. You cannot create this creative, * but you can update some fields of this creative. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RichMediaStudioCreative extends BaseRichMediaStudioCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreative"; + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + /** * @access public * @var boolean @@ -7941,8 +8020,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isInterstitial = null, $studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null) { + public function __construct($lockedOrientation = null, $isInterstitial = null, $studioCreativeId = null, $creativeFormat = null, $artworkType = null, $totalFileSize = null, $adTagKeys = null, $customKeyValues = null, $surveyUrl = null, $allImpressionsUrl = null, $richMediaImpressionsUrl = null, $backupImageImpressionsUrl = null, $overrideCss = null, $requiredFlashPluginVersion = null, $duration = null, $billingAttribute = null, $richMediaStudioChildAssetProperties = null, $sslScanResult = null, $sslManualOverride = null) { parent::__construct(); + $this->lockedOrientation = $lockedOrientation; $this->isInterstitial = $isInterstitial; $this->studioCreativeId = $studioCreativeId; $this->creativeFormat = $creativeFormat; @@ -7959,6 +8039,65 @@ public function __construct($isInterstitial = null, $studioCreativeId = null, $c $this->duration = $duration; $this->billingAttribute = $billingAttribute; $this->richMediaStudioChildAssetProperties = $richMediaStudioChildAssetProperties; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +if (!class_exists("SetTopBoxCreative", false)) { + /** + * A {@code Creative} that will be served into cable set-top boxes. There are no assets for this + * creative type, as they are hosted by Canoe. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxCreative"; + + /** + * @access public + * @var string + */ + public $externalAssetId; + + /** + * @access public + * @var string + */ + public $providerId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($externalAssetId = null, $providerId = null, $duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { + parent::__construct(); + $this->externalAssetId = $externalAssetId; + $this->providerId = $providerId; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; } } @@ -7968,11 +8107,11 @@ public function __construct($isInterstitial = null, $studioCreativeId = null, $c /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -7997,10 +8136,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -8010,11 +8148,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -8039,10 +8177,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -8053,11 +8190,11 @@ public function __construct($value = null, $ValueType = null) { * A {@code Creative} that contains DFP-hosted video ads and is served * via VAST 2.0 XML. This creative is read-only. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoCreative extends BaseVideoCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoCreative"; /** @@ -8076,7 +8213,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null) { + public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { parent::__construct(); $this->duration = $duration; $this->allowDurationOverride = $allowDurationOverride; @@ -8084,6 +8221,8 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr $this->companionCreativeIds = $companionCreativeIds; $this->customParameters = $customParameters; $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; } } @@ -8092,13 +8231,14 @@ public function __construct($duration = null, $allowDurationOverride = null, $tr if (!class_exists("VideoRedirectCreative", false)) { /** * A {@code Creative} that contains externally hosted video ads and - * is served via VAST 2.0 XML. This creative is read-only. + * is served via VAST 2.0 XML. This creative is read-only in versions + * V201408 and lower. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoRedirectCreative extends BaseVideoCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoRedirectCreative"; /** @@ -8123,7 +8263,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($videoAssets = null, $duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null) { + public function __construct($videoAssets = null, $duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { parent::__construct(); $this->videoAssets = $videoAssets; $this->duration = $duration; @@ -8132,6 +8272,8 @@ public function __construct($videoAssets = null, $duration = null, $allowDuratio $this->companionCreativeIds = $companionCreativeIds; $this->customParameters = $customParameters; $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; } } @@ -8141,13 +8283,19 @@ public function __construct($videoAssets = null, $duration = null, $allowDuratio /** * An Ad Exchange dynamic allocation creative. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdExchangeCreative"; + /** + * @access public + * @var boolean + */ + public $isNativeEligible; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -8164,8 +8312,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($codeSnippet = null) { + public function __construct($isNativeEligible = null, $codeSnippet = null) { parent::__construct(); + $this->isNativeEligible = $isNativeEligible; $this->codeSnippet = $codeSnippet; } @@ -8176,11 +8325,11 @@ public function __construct($codeSnippet = null) { /** * An AdSense dynamic allocation creative. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseCreative"; /** @@ -8211,19 +8360,19 @@ public function __construct($codeSnippet = null) { /** * CreativeService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeService extends DfpSoapClient { const SERVICE_NAME = "CreativeService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/CreativeService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/CreativeService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/CreativeService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/CreativeService"; /** * Default class map for wsdl=>php * @access private @@ -8232,6 +8381,7 @@ class CreativeService extends DfpSoapClient { public static $classmap = array( "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "ObjectValue" => "ObjectValue", "AdExchangeCreative" => "AdExchangeCreative", "AdMobBackfillCreative" => "AdMobBackfillCreative", "AdSenseCreative" => "AdSenseCreative", @@ -8244,7 +8394,6 @@ class CreativeService extends DfpSoapClient { "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", "Asset" => "Asset", "AssetError" => "AssetError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BaseFlashCreative" => "BaseFlashCreative", @@ -8255,7 +8404,7 @@ class CreativeService extends DfpSoapClient { "BaseVideoCreative" => "BaseVideoCreative", "BooleanValue" => "BooleanValue", "ClickTrackingCreative" => "ClickTrackingCreative", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", "CreativeAsset" => "CreativeAsset", @@ -8300,9 +8449,9 @@ class CreativeService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", + "ProgrammaticCreative" => "ProgrammaticCreative", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", @@ -8316,6 +8465,8 @@ class CreativeService extends DfpSoapClient { "RichMediaStudioCreative" => "RichMediaStudioCreative", "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", "ServerError" => "ServerError", + "SetTopBoxCreative" => "SetTopBoxCreative", + "SetTopBoxCreativeError" => "SetTopBoxCreativeError", "SetValue" => "SetValue", "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", @@ -8339,6 +8490,7 @@ class CreativeService extends DfpSoapClient { "Value" => "Value", "VastRedirectCreative" => "VastRedirectCreative", "VideoCreative" => "VideoCreative", + "VideoMetadata" => "VideoMetadata", "VideoRedirectAsset" => "VideoRedirectAsset", "VideoRedirectCreative" => "VideoRedirectCreative", "VpaidLinearCreative" => "VpaidLinearCreative", @@ -8347,6 +8499,7 @@ class CreativeService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ConversionEvent" => "ConversionEvent", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", @@ -8354,6 +8507,7 @@ class CreativeService extends DfpSoapClient { "CreativeSetError.Reason" => "CreativeSetErrorReason", "CustomCreativeError.Reason" => "CustomCreativeErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "DestinationUrlType" => "DestinationUrlType", "FeatureError.Reason" => "FeatureErrorReason", "FileError.Reason" => "FileErrorReason", "Html5Feature" => "Html5Feature", @@ -8364,6 +8518,8 @@ class CreativeService extends DfpSoapClient { "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LockedOrientation" => "LockedOrientation", + "MimeType" => "MimeType", "NotNullError.Reason" => "NotNullErrorReason", "NullError.Reason" => "NullErrorReason", "ParseError.Reason" => "ParseErrorReason", @@ -8381,22 +8537,21 @@ class CreativeService extends DfpSoapClient { "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ScalableType" => "ScalableType", "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxCreativeError.Reason" => "SetTopBoxCreativeErrorReason", + "SslManualOverride" => "SslManualOverride", + "SslScanResult" => "SslScanResult", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", "VastRedirectType" => "VastRedirectType", - "createCreative" => "CreateCreative", - "createCreativeResponse" => "CreateCreativeResponse", + "VideoDeliveryType" => "VideoDeliveryType", "createCreatives" => "CreateCreatives", "createCreativesResponse" => "CreateCreativesResponse", - "getCreative" => "GetCreative", - "getCreativeResponse" => "GetCreativeResponse", "getCreativesByStatement" => "GetCreativesByStatement", "getCreativesByStatementResponse" => "GetCreativesByStatementResponse", - "updateCreative" => "UpdateCreative", - "updateCreativeResponse" => "UpdateCreativeResponse", "updateCreatives" => "UpdateCreatives", "updateCreativesResponse" => "UpdateCreativesResponse", ); @@ -8412,25 +8567,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link Creative}. - * - * The following fields are required along with the required fields of the - * sub-class: - *

    - *
  • {@link Creative#advertiserId}
  • - *
  • {@link Creative#name}
  • - *
  • {@link Creative#size}
  • - *
- * - * @param creative the creative to create - * @return the new creative with its ID set - */ - public function createCreative($creative) { - $args = new CreateCreative($creative); - $result = $this->__soapCall("createCreative", array($args)); - return $result->rval; - } /** * Creates new {@link Creative} objects. * @@ -8442,17 +8578,6 @@ public function createCreatives($creatives) { $result = $this->__soapCall("createCreatives", array($args)); return $result->rval; } - /** - * Returns the {@link Creative} uniquely identified by the given ID. - * - * @param creativeId the ID of the creative, which must already exist - * @return the {@code Creative} uniquely identified by the given ID - */ - public function getCreative($creativeId) { - $args = new GetCreative($creativeId); - $result = $this->__soapCall("getCreative", array($args)); - return $result->rval; - } /** * Gets a {@link CreativePage} of {@link Creative} objects that satisfy the * given {@link Statement#query}. The following fields are supported for @@ -8497,17 +8622,6 @@ public function getCreativesByStatement($filterStatement) { $result = $this->__soapCall("getCreativesByStatement", array($args)); return $result->rval; } - /** - * Updates the specified {@link Creative}. - * - * @param creative the creative to update - * @return the updated creative - */ - public function updateCreative($creative) { - $args = new UpdateCreative($creative); - $result = $this->__soapCall("updateCreative", array($args)); - return $result->rval; - } /** * Updates the specified {@link Creative} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201502/CreativeSetService.php similarity index 86% rename from src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php rename to src/Google/Api/Ads/Dfp/v201502/CreativeSetService.php index e59b42038..7777a0ca0 100755 --- a/src/Google/Api/Ads/Dfp/v201306/CreativeSetService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CreativeSetService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,9 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -253,11 +174,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { /** * Lists all errors associated with assets. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AssetError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetError"; /** @@ -282,85 +203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -370,11 +218,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -399,36 +247,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -446,10 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -459,11 +306,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -488,13 +335,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -504,11 +350,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with creative asset macros. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeAssetMacroError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeAssetMacroError"; /** @@ -533,13 +379,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -549,11 +394,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError"; /** @@ -578,13 +423,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -594,11 +438,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A creative set is comprised of a master creative and its companion creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeSet { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSet"; /** @@ -662,11 +506,11 @@ public function __construct($id = null, $name = null, $masterCreativeId = null, /** * Errors relating to creative sets & subclasses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeSetError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSetError"; /** @@ -691,13 +535,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -707,11 +550,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link CreativeSet} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeSetPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSetPage"; /** @@ -761,11 +604,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Lists all errors associated with custom creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreativeError"; /** @@ -790,13 +633,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -806,11 +648,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -835,13 +677,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -851,11 +692,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -905,11 +746,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -974,11 +815,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -997,12 +838,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1013,11 +853,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1042,13 +882,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1058,11 +897,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for problems related to files. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FileError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FileError"; /** @@ -1087,13 +926,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1103,11 +941,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with images. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ImageError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageError"; /** @@ -1132,13 +970,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1150,11 +987,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1179,13 +1016,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1195,11 +1031,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with phone numbers. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidPhoneNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidPhoneNumberError"; /** @@ -1224,13 +1060,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1240,11 +1075,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -1269,13 +1104,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1285,11 +1119,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -1314,13 +1148,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1330,11 +1163,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1359,13 +1192,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1375,11 +1207,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1404,57 +1236,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1464,11 +1251,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1493,13 +1280,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1509,11 +1295,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1538,13 +1324,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1555,11 +1340,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1584,13 +1369,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1601,11 +1385,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1630,13 +1414,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1647,11 +1430,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1676,13 +1459,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1692,11 +1474,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1721,13 +1503,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1737,11 +1518,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -1766,13 +1547,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1782,11 +1562,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1811,13 +1591,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1828,11 +1607,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -1857,13 +1636,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1873,11 +1651,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating {@link Size}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError"; /** @@ -1902,13 +1680,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1918,11 +1695,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with Rich Media Studio creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RichMediaStudioCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeError"; /** @@ -1947,13 +1724,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1963,11 +1739,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1992,13 +1768,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxCreativeError", false)) { + /** + * Errors associated with {@link SetTopBoxCreative set-top box creatives}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxCreativeError"; + + /** + * @access public + * @var tnsSetTopBoxCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2008,11 +1827,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -2027,12 +1846,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2049,10 +1862,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -2062,11 +1874,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -2137,11 +1949,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -2184,11 +1996,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -2213,13 +2025,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2229,11 +2040,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -2258,13 +2069,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2275,11 +2085,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -2322,11 +2132,11 @@ public function __construct($key = null, $value = null) { /** * Error for converting flash to swiffy asset. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SwiffyConversionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SwiffyConversionError"; /** @@ -2351,13 +2161,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2367,11 +2176,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with template instantiated creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TemplateInstantiatedCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TemplateInstantiatedCreativeError"; /** @@ -2396,13 +2205,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2412,11 +2220,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -2435,12 +2243,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2450,11 +2257,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -2473,12 +2280,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2488,51 +2294,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2549,8 +2317,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2561,11 +2328,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2594,11 +2361,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AssetErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetError.Reason"; /** @@ -2630,11 +2397,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2659,15 +2426,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2696,11 +2496,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeAssetMacroErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeAssetMacroError.Reason"; /** @@ -2729,11 +2529,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError.Reason"; /** @@ -2762,11 +2562,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeSetErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSetError.Reason"; /** @@ -2795,11 +2595,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreativeError.Reason"; /** @@ -2828,11 +2628,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError.Reason"; /** @@ -2861,11 +2661,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2894,11 +2694,11 @@ public function __construct() { /** * The provided byte array is empty. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FileErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FileError.Reason"; /** @@ -2927,11 +2727,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ImageErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageError.Reason"; /** @@ -2960,11 +2760,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2993,11 +2793,11 @@ public function __construct() { /** * The phone number is invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidPhoneNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidPhoneNumberError.Reason"; /** @@ -3026,11 +2826,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -3059,11 +2859,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -3092,11 +2892,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -3125,11 +2925,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -3158,11 +2958,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -3191,11 +2991,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -3224,11 +3024,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -3257,11 +3057,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -3300,11 +3100,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -3333,11 +3133,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -3366,11 +3166,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -3399,11 +3199,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -3432,11 +3232,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -3466,11 +3266,11 @@ public function __construct() { * {@link Creative#size} or {@link LineItem#creativeSizes} is * missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError.Reason"; /** @@ -3499,11 +3299,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RichMediaStudioCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; /** @@ -3532,11 +3332,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -3561,16 +3361,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("SetTopBoxCreativeErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * Error reasons for set-top box creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StatementErrorReason { + class SetTopBoxCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxCreativeError.Reason"; /** * Gets the namesapce of this class @@ -3594,16 +3394,16 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StringLengthErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -3627,16 +3427,16 @@ public function __construct() { } } -if (!class_exists("SwiffyConversionErrorReason", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * Error reason for {@link SwiffyConversionError}. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class SwiffyConversionErrorReason { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SwiffyConversionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -3660,16 +3460,16 @@ public function __construct() { } } -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { +if (!class_exists("SwiffyConversionErrorReason", false)) { /** - * The reason for the error + * Error reason for {@link SwiffyConversionError}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class TemplateInstantiatedCreativeErrorReason { + class SwiffyConversionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SwiffyConversionError.Reason"; /** * Gets the namesapce of this class @@ -3693,25 +3493,16 @@ public function __construct() { } } -if (!class_exists("CreateCreativeSet", false)) { +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { /** - * Creates a new {@link CreativeSet}. - * - * @param creativeSet the creative set to create - * @return the creative set with its ID filled in + * The reason for the error * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateCreativeSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class TemplateInstantiatedCreativeErrorReason { - /** - * @access public - * @var CreativeSet - */ - public $creativeSet; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; /** * Gets the namesapce of this class @@ -3729,72 +3520,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeSet = null) { - $this->creativeSet = $creativeSet; + public function __construct() { } } } -if (!class_exists("CreateCreativeSetResponse", false)) { +if (!class_exists("CreateCreativeSet", false)) { /** + * Creates a new {@link CreativeSet}. * + * @param creativeSet the creative set to create + * @return the creative set with its ID filled in * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateCreativeSetResponse { + class CreateCreativeSet { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public * @var CreativeSet */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCreativeSet", false)) { - /** - * Returns the {@link CreativeSet} uniquely identified by the given ID. - * - * @param creativeSetId the ID of the creative set, which must already exist - * @return the {@code CreativeSet} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeSet { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeSetId; + public $creativeSet; /** * Gets the namesapce of this class @@ -3812,22 +3562,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeSetId = null) { - $this->creativeSetId = $creativeSetId; + public function __construct($creativeSet = null) { + $this->creativeSet = $creativeSet; } } } -if (!class_exists("GetCreativeSetResponse", false)) { +if (!class_exists("CreateCreativeSetResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetCreativeSetResponse { + class CreateCreativeSetResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3891,11 +3641,11 @@ public function __construct($rval = null) { * a set of creative sets * @return the creative sets that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCreativeSetsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3931,11 +3681,11 @@ public function __construct($statement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCreativeSetsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3974,11 +3724,11 @@ public function __construct($rval = null) { * @param creativeSet the creative set to update * @return the updated creative set * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateCreativeSet { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4014,11 +3764,11 @@ public function __construct($creativeSet = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateCreativeSetResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4050,15 +3800,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -4083,11 +3874,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -4097,11 +3887,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -4126,10 +3916,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4139,11 +3928,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -4168,10 +3957,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4181,11 +3969,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -4210,10 +3998,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4223,11 +4010,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -4252,10 +4039,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -4265,11 +4092,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -4294,10 +4121,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4307,34 +4133,34 @@ public function __construct($value = null, $ValueType = null) { /** * CreativeSetService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeSetService extends DfpSoapClient { const SERVICE_NAME = "CreativeSetService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/CreativeSetService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/CreativeSetService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/CreativeSetService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AssetError" => "AssetError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", @@ -4358,7 +4184,6 @@ class CreativeSetService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -4371,6 +4196,8 @@ class CreativeSetService extends DfpSoapClient { "RequiredSizeError" => "RequiredSizeError", "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", "ServerError" => "ServerError", + "SetTopBoxCreativeError" => "SetTopBoxCreativeError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -4386,6 +4213,7 @@ class CreativeSetService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", @@ -4413,14 +4241,13 @@ class CreativeSetService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxCreativeError.Reason" => "SetTopBoxCreativeErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", "createCreativeSet" => "CreateCreativeSet", "createCreativeSetResponse" => "CreateCreativeSetResponse", - "getCreativeSet" => "GetCreativeSet", - "getCreativeSetResponse" => "GetCreativeSetResponse", "getCreativeSetsByStatement" => "GetCreativeSetsByStatement", "getCreativeSetsByStatementResponse" => "GetCreativeSetsByStatementResponse", "updateCreativeSet" => "UpdateCreativeSet", @@ -4449,17 +4276,6 @@ public function createCreativeSet($creativeSet) { $result = $this->__soapCall("createCreativeSet", array($args)); return $result->rval; } - /** - * Returns the {@link CreativeSet} uniquely identified by the given ID. - * - * @param creativeSetId the ID of the creative set, which must already exist - * @return the {@code CreativeSet} uniquely identified by the given ID - */ - public function getCreativeSet($creativeSetId) { - $args = new GetCreativeSet($creativeSetId); - $result = $this->__soapCall("getCreativeSet", array($args)); - return $result->rval; - } /** * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the * given {@link Statement#query}. The following fields are supported for diff --git a/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201502/CreativeTemplateService.php similarity index 83% rename from src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php rename to src/Google/Api/Ads/Dfp/v201502/CreativeTemplateService.php index b5a07c328..d91b2d7e1 100755 --- a/src/Google/Api/Ads/Dfp/v201306/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CreativeTemplateService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A template upon which a creative can be created. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeTemplate"; /** @@ -490,6 +337,12 @@ class CreativeTemplate { */ public $variables; + /** + * @access public + * @var string + */ + public $snippet; + /** * @access public * @var tnsCreativeTemplateStatus @@ -508,6 +361,12 @@ class CreativeTemplate { */ public $isInterstitial; + /** + * @access public + * @var boolean + */ + public $isNativeEligible; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -524,14 +383,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $variables = null, $status = null, $type = null, $isInterstitial = null) { + public function __construct($id = null, $name = null, $description = null, $variables = null, $snippet = null, $status = null, $type = null, $isInterstitial = null, $isNativeEligible = null) { $this->id = $id; $this->name = $name; $this->description = $description; $this->variables = $variables; + $this->snippet = $snippet; $this->status = $status; $this->type = $type; $this->isInterstitial = $isInterstitial; + $this->isNativeEligible = $isNativeEligible; } } @@ -541,11 +402,11 @@ public function __construct($id = null, $name = null, $description = null, $vari /** * A catch-all error that lists all generic errors associated with CreativeTemplate. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeTemplateError"; /** @@ -570,13 +431,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -586,11 +446,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Stores variable choices that users can select from * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ListStringCreativeTemplateVariableVariableChoice { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ListStringCreativeTemplateVariable.VariableChoice"; /** @@ -633,11 +493,11 @@ public function __construct($label = null, $value = null) { /** * Captures a page of {@link CreativeTemplate} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplatePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeTemplatePage"; /** @@ -687,11 +547,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Represents a variable defined in a creative template. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplateVariable { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeTemplateVariable"; /** @@ -718,44 +578,6 @@ class CreativeTemplateVariable { */ public $isRequired; - /** - * @access public - * @var string - */ - public $CreativeTemplateVariableType; - private $_parameterMap = array( - "CreativeTemplateVariable.Type" => "CreativeTemplateVariableType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -772,12 +594,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { + public function __construct($label = null, $uniqueName = null, $description = null, $isRequired = null) { $this->label = $label; $this->uniqueName = $uniqueName; $this->description = $description; $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; } } @@ -787,11 +608,11 @@ public function __construct($label = null, $uniqueName = null, $description = nu /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -841,11 +662,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -910,11 +731,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -939,13 +760,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -957,11 +777,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -986,13 +806,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1002,11 +821,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -1031,13 +850,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1047,11 +865,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1076,13 +894,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1092,11 +909,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1121,57 +938,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1181,11 +953,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1210,13 +982,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1226,11 +997,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1255,13 +1026,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1272,11 +1042,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1301,13 +1071,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1318,11 +1087,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1347,13 +1116,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1364,11 +1132,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1393,13 +1161,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1409,11 +1176,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1438,13 +1205,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1454,11 +1220,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1483,13 +1249,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1500,11 +1265,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -1529,13 +1294,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1545,11 +1309,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1574,13 +1338,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1590,11 +1353,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1609,12 +1372,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1631,10 +1388,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1644,11 +1400,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1719,11 +1475,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1766,11 +1522,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1795,13 +1551,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1811,11 +1566,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1840,13 +1595,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1857,11 +1611,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1904,11 +1658,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1927,12 +1681,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1942,51 +1695,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2003,8 +1718,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2015,11 +1729,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2051,11 +1765,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2080,15 +1794,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2117,11 +1864,11 @@ public function __construct() { /** * Different mime type that the asset variable supports. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AssetCreativeTemplateVariableMimeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetCreativeTemplateVariable.MimeType"; /** @@ -2150,11 +1897,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeTemplateError.Reason"; /** @@ -2183,11 +1930,11 @@ public function __construct() { /** * Describes status of the creative template * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplateStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeTemplateStatus"; /** @@ -2216,11 +1963,11 @@ public function __construct() { /** * Describes type of the creative template. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeTemplateType"; /** @@ -2249,11 +1996,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2282,11 +2029,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2315,11 +2062,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -2348,11 +2095,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2381,11 +2128,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2414,11 +2161,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2447,11 +2194,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2480,11 +2227,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2513,11 +2260,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2556,11 +2303,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2589,11 +2336,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2622,11 +2369,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2655,11 +2402,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -2688,11 +2435,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2721,11 +2468,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2754,11 +2501,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2783,89 +2530,6 @@ public function __construct() { } } -if (!class_exists("GetCreativeTemplate", false)) { - /** - * Returns the {@link CreativeTemplate} uniquely identified by the given ID. - * - * @param creativeTemplateId the ID of the creative template, which must already exist - * @return the {@code CreativeTemplate} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeTemplateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeTemplateId = null) { - $this->creativeTemplateId = $creativeTemplateId; - } - - } -} - -if (!class_exists("GetCreativeTemplateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCreativeTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeTemplate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetCreativeTemplatesByStatement", false)) { /** * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the @@ -2898,11 +2562,11 @@ public function __construct($rval = null) { * a set of creative templates. * @return the creative templates that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCreativeTemplatesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2938,11 +2602,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCreativeTemplatesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2974,15 +2638,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3007,11 +2712,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3021,11 +2725,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3050,10 +2754,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3066,11 +2769,11 @@ public function __construct($value = null, $ValueType = null) { * Use {@link AssetCreativeTemplateVariableValue} to specify the value * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AssetCreativeTemplateVariable extends CreativeTemplateVariable { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetCreativeTemplateVariable"; /** @@ -3095,14 +2798,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mimeTypes = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { + public function __construct($mimeTypes = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { parent::__construct(); $this->mimeTypes = $mimeTypes; $this->label = $label; $this->uniqueName = $uniqueName; $this->description = $description; $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; } } @@ -3112,11 +2814,11 @@ public function __construct($mimeTypes = null, $label = null, $uniqueName = null /** * Represents a long variable defined in a creative template. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LongCreativeTemplateVariable extends CreativeTemplateVariable { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LongCreativeTemplateVariable"; /** @@ -3141,14 +2843,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { + public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { parent::__construct(); $this->defaultValue = $defaultValue; $this->label = $label; $this->uniqueName = $uniqueName; $this->description = $description; $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; } } @@ -3161,11 +2862,11 @@ public function __construct($defaultValue = null, $label = null, $uniqueName = n * Use {@link StringCreativeTemplateVariableValue} to specify the value * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringCreativeTemplateVariable extends CreativeTemplateVariable { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringCreativeTemplateVariable"; /** @@ -3190,14 +2891,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { + public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { parent::__construct(); $this->defaultValue = $defaultValue; $this->label = $label; $this->uniqueName = $uniqueName; $this->description = $description; $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; } } @@ -3210,11 +2910,11 @@ public function __construct($defaultValue = null, $label = null, $uniqueName = n * Use {@link UrlCreativeTemplateVariableValue} to specify the value * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative} * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UrlCreativeTemplateVariable extends CreativeTemplateVariable { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UrlCreativeTemplateVariable"; /** @@ -3223,6 +2923,12 @@ class UrlCreativeTemplateVariable extends CreativeTemplateVariable { */ public $defaultValue; + /** + * @access public + * @var boolean + */ + public $isTrackingUrl; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -3239,14 +2945,14 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null, $CreativeTemplateVariableType = null) { + public function __construct($defaultValue = null, $isTrackingUrl = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { parent::__construct(); $this->defaultValue = $defaultValue; + $this->isTrackingUrl = $isTrackingUrl; $this->label = $label; $this->uniqueName = $uniqueName; $this->description = $description; $this->isRequired = $isRequired; - $this->CreativeTemplateVariableType = $CreativeTemplateVariableType; } } @@ -3256,11 +2962,11 @@ public function __construct($defaultValue = null, $label = null, $uniqueName = n /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3285,10 +2991,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3298,11 +3003,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3327,10 +3032,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3340,11 +3044,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3369,10 +3073,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3382,11 +3126,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3411,10 +3155,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3429,11 +3172,11 @@ public function __construct($value = null, $ValueType = null) { * Use {@link StringCreativeTemplateVariableValue} to specify the value * for this variable when creating {@link TemplateCreative} from the {@link TemplateCreative}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ListStringCreativeTemplateVariable"; /** @@ -3478,33 +3221,33 @@ public function __construct($choices = null, $allowOtherChoice = null, $defaultV /** * CreativeTemplateService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeTemplateService extends DfpSoapClient { const SERVICE_NAME = "CreativeTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/CreativeTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/CreativeTemplateService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/CreativeTemplateService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/CreativeTemplateService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", "CreativeTemplate" => "CreativeTemplate", @@ -3526,7 +3269,6 @@ class CreativeTemplateService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3536,6 +3278,7 @@ class CreativeTemplateService extends DfpSoapClient { "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3547,6 +3290,7 @@ class CreativeTemplateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "AssetCreativeTemplateVariable.MimeType" => "AssetCreativeTemplateVariableMimeType", "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", @@ -3568,8 +3312,6 @@ class CreativeTemplateService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "getCreativeTemplate" => "GetCreativeTemplate", - "getCreativeTemplateResponse" => "GetCreativeTemplateResponse", "getCreativeTemplatesByStatement" => "GetCreativeTemplatesByStatement", "getCreativeTemplatesByStatementResponse" => "GetCreativeTemplatesByStatementResponse", ); @@ -3585,17 +3327,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Returns the {@link CreativeTemplate} uniquely identified by the given ID. - * - * @param creativeTemplateId the ID of the creative template, which must already exist - * @return the {@code CreativeTemplate} uniquely identified by the given ID - */ - public function getCreativeTemplate($creativeTemplateId) { - $args = new GetCreativeTemplate($creativeTemplateId); - $result = $this->__soapCall("getCreativeTemplate", array($args)); - return $result->rval; - } /** * Gets a {@link CreativeTemplatePage} of {@link CreativeTemplate} objects that satisfy the * given {@link Statement#query}. The following fields are supported for diff --git a/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201502/CreativeWrapperService.php similarity index 78% rename from src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php rename to src/Google/Api/Ads/Dfp/v201502/CreativeWrapperService.php index 13d72eb6f..68ae224b7 100755 --- a/src/Google/Api/Ads/Dfp/v201308/CreativeWrapperService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CreativeWrapperService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -460,51 +307,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents the actions that can be performed on {@link CreativeWrapper} * objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperAction"; - /** - * @access public - * @var string - */ - public $CreativeWrapperActionType; - private $_parameterMap = array( - "CreativeWrapperAction.Type" => "CreativeWrapperActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -521,8 +330,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CreativeWrapperActionType = null) { - $this->CreativeWrapperActionType = $CreativeWrapperActionType; + public function __construct() { } } @@ -537,11 +345,11 @@ public function __construct($CreativeWrapperActionType = null) { * {@link LabelType#CREATIVE_WRAPPER} label and applied to ad units by * {@link AdUnit#appliedLabels}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapper { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapper"; /** @@ -612,11 +420,11 @@ public function __construct($id = null, $labelId = null, $header = null, $footer /** * Errors specific to creative wrappers. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperError"; /** @@ -641,13 +449,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -657,11 +464,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link CreativeWrapper} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperPage"; /** @@ -711,11 +518,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -765,11 +572,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -833,11 +640,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second /** * The action used for deactivating {@link CreativeWrapper} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivateCreativeWrappers extends CreativeWrapperAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateCreativeWrappers"; /** @@ -856,9 +663,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CreativeWrapperActionType = null) { + public function __construct() { parent::__construct(); - $this->CreativeWrapperActionType = $CreativeWrapperActionType; } } @@ -869,11 +675,11 @@ public function __construct($CreativeWrapperActionType = null) { * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -898,13 +704,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -915,11 +720,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is * delivered as the header or footer. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperHtmlSnippet { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperHtmlSnippet"; /** @@ -957,11 +762,11 @@ public function __construct($htmlSnippet = null) { * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -986,13 +791,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1002,11 +806,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to labels. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelError"; /** @@ -1031,13 +835,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1047,11 +850,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1076,13 +879,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1092,11 +894,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1121,57 +923,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1181,11 +938,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1210,13 +967,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1226,11 +982,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1255,13 +1011,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1272,11 +1027,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1301,13 +1056,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1318,11 +1072,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1347,13 +1101,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1364,11 +1117,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1393,13 +1146,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1409,11 +1161,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1438,13 +1190,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1454,11 +1205,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1483,13 +1234,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1499,11 +1249,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1518,12 +1268,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1540,10 +1284,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1553,11 +1296,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1628,11 +1371,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1675,11 +1418,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1704,13 +1447,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1720,11 +1462,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1749,13 +1491,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1766,11 +1507,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1813,11 +1554,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1836,12 +1577,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1851,11 +1591,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1874,12 +1614,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1889,11 +1628,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1929,51 +1668,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1990,8 +1691,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2002,11 +1702,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2038,11 +1738,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2067,15 +1767,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2104,11 +1837,11 @@ public function __construct() { /** * The reasons for the creative wrapper error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperError.Reason"; /** @@ -2137,11 +1870,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2170,11 +1903,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2207,11 +1940,11 @@ public function __construct() { * creative needs to be wrapped with more than one snippet with the same * {@link CreativeWrapperOrdering}, then the order is unspecified. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperOrdering { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperOrdering"; /** @@ -2241,11 +1974,11 @@ public function __construct() { * Indicates whether the {@code CreativeWrapper} is active. HTML snippets * are served to creatives only when the creative wrapper is active. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperStatus"; /** @@ -2274,11 +2007,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelError.Reason"; /** @@ -2307,11 +2040,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2340,11 +2073,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2373,11 +2106,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2406,11 +2139,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2439,11 +2172,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2472,11 +2205,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2515,11 +2248,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2548,11 +2281,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2581,11 +2314,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2614,11 +2347,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2647,11 +2380,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2676,97 +2409,6 @@ public function __construct() { } } -if (!class_exists("CreateCreativeWrapper", false)) { - /** - * Creates a new {@code CreativeWrapper}. - * - * The following fields are required: - *
    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrapper the creative wrapper to create - * @return the creative wrapper with its ID filled in - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $creativeWrapper; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapper = null) { - $this->creativeWrapper = $creativeWrapper; - } - - } -} - -if (!class_exists("CreateCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateCreativeWrappers", false)) { /** * Creates a new {@code CreativeWrapper} objects. @@ -2782,11 +2424,11 @@ public function __construct($rval = null) { * @return the creative wrappers with their IDs filled in * @throws ApiException * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCreativeWrappers { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2822,11 +2464,11 @@ public function __construct($creativeWrappers = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCreativeWrappersResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2858,93 +2500,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetCreativeWrapper", false)) { - /** - * Returns the {@link CreativeWrapper} uniquely identified by the given - * ID. - * - * @param creativeWrapperId the ID of the creative wrapper, which - * must already exist - * @return the {@code CreativeWrapper} uniquely identified by the given - * ID - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeWrapper { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $creativeWrapperId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrapperId = null) { - $this->creativeWrapperId = $creativeWrapperId; - } - - } -} - -if (!class_exists("GetCreativeWrapperResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetCreativeWrapperResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetCreativeWrappersByStatement", false)) { /** * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} @@ -2977,11 +2532,11 @@ public function __construct($rval = null) { * a set of creative wrappers. * @return the creative wrappers that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCreativeWrappersByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3017,11 +2572,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCreativeWrappersByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3063,11 +2618,11 @@ public function __construct($rval = null) { * a set of labels * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformCreativeWrapperAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3110,11 +2665,11 @@ public function __construct($creativeWrapperAction = null, $filterStatement = nu /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformCreativeWrapperActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3146,26 +2701,26 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCreativeWrapper", false)) { +if (!class_exists("UpdateCreativeWrappers", false)) { /** - * Updates the specified {@code CreativeWrapper}. + * Updates the specified {@code CreativeWrapper} objects. * - * @param creativeWrapper the creative wrapper to update - * @return the updated creative wrapper + * @param creativeWrappers the creative wrappers to update + * @return the updated creative wrapper objects * @throws ApiException * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateCreativeWrapper { + class UpdateCreativeWrappers { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeWrapper + * @var CreativeWrapper[] */ - public $creativeWrapper; + public $creativeWrappers; /** * Gets the namesapce of this class @@ -3183,27 +2738,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeWrapper = null) { - $this->creativeWrapper = $creativeWrapper; + public function __construct($creativeWrappers = null) { + $this->creativeWrappers = $creativeWrappers; } } } -if (!class_exists("UpdateCreativeWrapperResponse", false)) { +if (!class_exists("UpdateCreativeWrappersResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateCreativeWrapperResponse { + class UpdateCreativeWrappersResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeWrapper + * @var CreativeWrapper[] */ public $rval; @@ -3230,66 +2785,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCreativeWrappers", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@code CreativeWrapper} objects. - * - * @param creativeWrappers the creative wrappers to update - * @return the updated creative wrapper objects - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateCreativeWrappers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CreativeWrapper[] - */ - public $creativeWrappers; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($creativeWrappers = null) { - $this->creativeWrappers = $creativeWrappers; - } - - } -} - -if (!class_exists("UpdateCreativeWrappersResponse", false)) { - /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateCreativeWrappersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var CreativeWrapper[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3307,8 +2819,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -3318,11 +2830,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link CreativeWrapper} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivateCreativeWrappers extends CreativeWrapperAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateCreativeWrappers"; /** @@ -3341,9 +2853,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CreativeWrapperActionType = null) { + public function __construct() { parent::__construct(); - $this->CreativeWrapperActionType = $CreativeWrapperActionType; } } @@ -3353,11 +2864,11 @@ public function __construct($CreativeWrapperActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3382,11 +2893,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3396,11 +2906,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3425,10 +2935,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3438,11 +2947,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3467,10 +2976,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3480,11 +2988,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3509,10 +3017,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3522,11 +3029,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3551,10 +3058,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3564,11 +3111,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3593,10 +3140,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3606,34 +3152,34 @@ public function __construct($value = null, $ValueType = null) { /** * CreativeWrapperService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperService extends DfpSoapClient { const SERVICE_NAME = "CreativeWrapperService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/CreativeWrapperService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/CreativeWrapperService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/CreativeWrapperService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/CreativeWrapperService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateCreativeWrappers" => "ActivateCreativeWrappers", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperAction" => "CreativeWrapperAction", "CreativeWrapper" => "CreativeWrapper", @@ -3651,7 +3197,6 @@ class CreativeWrapperService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3659,6 +3204,7 @@ class CreativeWrapperService extends DfpSoapClient { "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3672,6 +3218,7 @@ class CreativeWrapperService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", @@ -3690,18 +3237,12 @@ class CreativeWrapperService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createCreativeWrapper" => "CreateCreativeWrapper", - "createCreativeWrapperResponse" => "CreateCreativeWrapperResponse", "createCreativeWrappers" => "CreateCreativeWrappers", "createCreativeWrappersResponse" => "CreateCreativeWrappersResponse", - "getCreativeWrapper" => "GetCreativeWrapper", - "getCreativeWrapperResponse" => "GetCreativeWrapperResponse", "getCreativeWrappersByStatement" => "GetCreativeWrappersByStatement", "getCreativeWrappersByStatementResponse" => "GetCreativeWrappersByStatementResponse", "performCreativeWrapperAction" => "PerformCreativeWrapperAction", "performCreativeWrapperActionResponse" => "PerformCreativeWrapperActionResponse", - "updateCreativeWrapper" => "UpdateCreativeWrapper", - "updateCreativeWrapperResponse" => "UpdateCreativeWrapperResponse", "updateCreativeWrappers" => "UpdateCreativeWrappers", "updateCreativeWrappersResponse" => "UpdateCreativeWrappersResponse", ); @@ -3717,25 +3258,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@code CreativeWrapper}. - * - * The following fields are required: - *

    - *
  • {@link CreativeWrapper#labelId}
  • - *
  • {@link CreativeWrapper#ordering}
  • - *
  • {@link CreativeWrapper#header} or {@link CreativeWrapper#footer}
  • - *
- * - * @param creativeWrapper the creative wrapper to create - * @return the creative wrapper with its ID filled in - * @throws ApiException - */ - public function createCreativeWrapper($creativeWrapper) { - $args = new CreateCreativeWrapper($creativeWrapper); - $result = $this->__soapCall("createCreativeWrapper", array($args)); - return $result->rval; - } /** * Creates a new {@code CreativeWrapper} objects. * @@ -3755,21 +3277,6 @@ public function createCreativeWrappers($creativeWrappers) { $result = $this->__soapCall("createCreativeWrappers", array($args)); return $result->rval; } - /** - * Returns the {@link CreativeWrapper} uniquely identified by the given - * ID. - * - * @param creativeWrapperId the ID of the creative wrapper, which - * must already exist - * @return the {@code CreativeWrapper} uniquely identified by the given - * ID - * @throws ApiException - */ - public function getCreativeWrapper($creativeWrapperId) { - $args = new GetCreativeWrapper($creativeWrapperId); - $result = $this->__soapCall("getCreativeWrapper", array($args)); - return $result->rval; - } /** * Gets a {@link CreativeWrapperPage} of {@link CreativeWrapper} * objects that satisfy the given {@link Statement#query}. The following @@ -3820,18 +3327,6 @@ public function performCreativeWrapperAction($creativeWrapperAction, $filterStat $result = $this->__soapCall("performCreativeWrapperAction", array($args)); return $result->rval; } - /** - * Updates the specified {@code CreativeWrapper}. - * - * @param creativeWrapper the creative wrapper to update - * @return the updated creative wrapper - * @throws ApiException - */ - public function updateCreativeWrapper($creativeWrapper) { - $args = new UpdateCreativeWrapper($creativeWrapper); - $result = $this->__soapCall("updateCreativeWrapper", array($args)); - return $result->rval; - } /** * Updates the specified {@code CreativeWrapper} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201502/CustomFieldService.php similarity index 75% rename from src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php rename to src/Google/Api/Ads/Dfp/v201502/CustomFieldService.php index 845f84bc8..d690ab4ae 100755 --- a/src/Google/Api/Ads/Dfp/v201306/CustomFieldService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CustomFieldService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,51 +306,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the actions that can be performed on {@link CustomField} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldAction"; - /** - * @access public - * @var string - */ - public $CustomFieldActionType; - private $_parameterMap = array( - "CustomFieldAction.Type" => "CustomFieldActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -520,8 +329,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomFieldActionType = null) { - $this->CustomFieldActionType = $CustomFieldActionType; + public function __construct() { } } @@ -531,11 +339,11 @@ public function __construct($CustomFieldActionType = null) { /** * An additional, user-created field on an entity. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomField { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomField"; /** @@ -580,44 +388,6 @@ class CustomField { */ public $visibility; - /** - * @access public - * @var string - */ - public $CustomFieldType; - private $_parameterMap = array( - "CustomField.Type" => "CustomFieldType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -634,7 +404,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null, $CustomFieldType = null) { + public function __construct($id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null) { $this->id = $id; $this->name = $name; $this->description = $description; @@ -642,7 +412,6 @@ public function __construct($id = null, $name = null, $description = null, $isAc $this->entityType = $entityType; $this->dataType = $dataType; $this->visibility = $visibility; - $this->CustomFieldType = $CustomFieldType; } } @@ -652,11 +421,11 @@ public function __construct($id = null, $name = null, $description = null, $isAc /** * Errors specific to editing custom fields * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldError"; /** @@ -681,13 +450,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -698,11 +466,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An option represents a permitted value for a custom field that * has a {@link CustomField#dataType} of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldOption { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldOption"; /** @@ -752,11 +520,11 @@ public function __construct($id = null, $customFieldId = null, $displayName = nu /** * Captures a page of {@link CustomField} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldPage"; /** @@ -806,11 +574,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -860,11 +628,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -928,11 +696,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second /** * The action used for deactivating {@link CustomField} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeactivateCustomFields extends CustomFieldAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateCustomFields"; /** @@ -951,9 +719,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomFieldActionType = null) { + public function __construct() { parent::__construct(); - $this->CustomFieldActionType = $CustomFieldActionType; } } @@ -963,11 +730,11 @@ public function __construct($CustomFieldActionType = null) { /** * A custom field that has the drop-down data type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DropDownCustomField extends CustomField { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomField"; /** @@ -992,7 +759,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($options = null, $id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null, $CustomFieldType = null) { + public function __construct($options = null, $id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null) { parent::__construct(); $this->options = $options; $this->id = $id; @@ -1002,7 +769,6 @@ public function __construct($options = null, $id = null, $name = null, $descript $this->entityType = $entityType; $this->dataType = $dataType; $this->visibility = $visibility; - $this->CustomFieldType = $CustomFieldType; } } @@ -1013,11 +779,11 @@ public function __construct($options = null, $id = null, $name = null, $descript * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -1036,12 +802,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1052,11 +817,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1081,13 +846,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1099,11 +863,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1128,13 +892,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1144,11 +907,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1173,13 +936,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1189,11 +951,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1218,57 +980,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1278,11 +995,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1307,13 +1024,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1323,11 +1039,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1352,13 +1068,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1369,11 +1084,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1398,13 +1113,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1415,11 +1129,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1444,13 +1158,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1461,11 +1174,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1490,13 +1203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1506,11 +1218,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1535,13 +1247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1551,11 +1262,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1580,13 +1291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1596,11 +1306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1615,12 +1325,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1637,10 +1341,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1650,11 +1353,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1725,11 +1428,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1772,11 +1475,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1801,13 +1504,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1818,11 +1520,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1865,11 +1567,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1888,12 +1590,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1903,11 +1604,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1926,12 +1627,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1941,11 +1641,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1981,51 +1681,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2042,8 +1704,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2054,11 +1715,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2090,11 +1751,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2119,15 +1780,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2156,11 +1850,11 @@ public function __construct() { /** * The data types allowed for {@link CustomField} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldDataType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldDataType"; /** @@ -2189,11 +1883,11 @@ public function __construct() { /** * Entity types recognized by custom fields * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldEntityType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldEntityType"; /** @@ -2222,11 +1916,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldError.Reason"; /** @@ -2255,11 +1949,11 @@ public function __construct() { /** * The visibility levels of a custom field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldVisibility { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldVisibility"; /** @@ -2288,11 +1982,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2321,11 +2015,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2354,11 +2048,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2387,11 +2081,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2420,11 +2114,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2453,11 +2147,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2486,11 +2180,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2519,11 +2213,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2562,11 +2256,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2595,11 +2289,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2628,11 +2322,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2661,11 +2355,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2690,33 +2384,31 @@ public function __construct() { } } -if (!class_exists("CreateCustomField", false)) { +if (!class_exists("CreateCustomFieldOptions", false)) { /** - * Creates a new {@link CustomField}. + * Creates new {@link CustomFieldOption} objects. * * The following fields are required: *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • + *
  • {@link CustomFieldOption#displayName}
  • + *
  • {@link CustomFieldOption#customFieldId}
  • *
* - * @param customField the custom field to create - * @return the custom field with its ID filled in + * @param customFieldOptions the custom fields to create + * @return the created custom field options with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateCustomField { + class CreateCustomFieldOptions { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomField + * @var CustomFieldOption[] */ - public $customField; + public $customFieldOptions; /** * Gets the namesapce of this class @@ -2734,27 +2426,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customField = null) { - $this->customField = $customField; + public function __construct($customFieldOptions = null) { + $this->customFieldOptions = $customFieldOptions; } } } -if (!class_exists("CreateCustomFieldResponse", false)) { +if (!class_exists("CreateCustomFieldOptionsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateCustomFieldResponse { + class CreateCustomFieldOptionsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomField + * @var CustomFieldOption[] */ public $rval; @@ -2781,31 +2473,33 @@ public function __construct($rval = null) { } } -if (!class_exists("CreateCustomFieldOption", false)) { +if (!class_exists("CreateCustomFields", false)) { /** - * Creates a new {@link CustomFieldOption}. + * Creates new {@link CustomField} objects. * * The following fields are required: *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • + *
  • {@link CustomField#name}
  • + *
  • {@link CustomField#entityType}
  • + *
  • {@link CustomField#dataType}
  • + *
  • {@link CustomField#visibility}
  • *
* - * @param customFieldOption the custom field to create - * @return the custom field option with its ID filled in + * @param customFields the custom fields to create + * @return the created custom fields with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateCustomFieldOption { + class CreateCustomFields { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomFieldOption + * @var CustomField[] */ - public $customFieldOption; + public $customFields; /** * Gets the namesapce of this class @@ -2823,27 +2517,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOption = null) { - $this->customFieldOption = $customFieldOption; + public function __construct($customFields = null) { + $this->customFields = $customFields; } } } -if (!class_exists("CreateCustomFieldOptionResponse", false)) { +if (!class_exists("CreateCustomFieldsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateCustomFieldOptionResponse { + class CreateCustomFieldsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomFieldOption + * @var CustomField[] */ public $rval; @@ -2870,281 +2564,18 @@ public function __construct($rval = null) { } } -if (!class_exists("CreateCustomFieldOptions", false)) { +if (!class_exists("GetCustomFieldOption", false)) { /** - * Creates new {@link CustomFieldOption} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOptions the custom fields to create - * @return the created custom field options with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomFieldOptions { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $customFieldOptions; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldOptions = null) { - $this->customFieldOptions = $customFieldOptions; - } - - } -} - -if (!class_exists("CreateCustomFieldOptionsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomFieldOptionsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomFieldOption[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("CreateCustomFields", false)) { - /** - * Creates new {@link CustomField} objects. - * - * The following fields are required: - *
    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customFields the custom fields to create - * @return the created custom fields with their IDs filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomFields { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $customFields; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFields = null) { - $this->customFields = $customFields; - } - - } -} - -if (!class_exists("CreateCustomFieldsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateCustomFieldsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomField", false)) { - /** - * Returns the {@link CustomField} uniquely identified by the given ID. - * - * @param customFieldId the ID of the custom field, which must already exist - * @return the {@code CustomField} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $customFieldId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFieldId = null) { - $this->customFieldId = $customFieldId; - } - - } -} - -if (!class_exists("GetCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetCustomFieldOption", false)) { - /** - * Returns the {@link CustomFieldOption} uniquely identified by the given ID. + * Returns the {@link CustomFieldOption} uniquely identified by the given ID. * * @param customFieldOptionId the ID of the custom field option, which must already exist * @return the {@code CustomFieldOption} uniquely identified by the given ID * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCustomFieldOption { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3180,11 +2611,11 @@ public function __construct($customFieldOptionId = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCustomFieldOptionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3253,11 +2684,11 @@ public function __construct($rval = null) { * a set of custom fields. * @return the custom fields that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCustomFieldsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3293,11 +2724,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCustomFieldsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3339,11 +2770,11 @@ public function __construct($rval = null) { * a set of custom fields * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformCustomFieldAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3386,11 +2817,11 @@ public function __construct($customFieldAction = null, $filterStatement = null) /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformCustomFieldActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3422,108 +2853,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCustomField", false)) { - /** - * Updates the specified {@link CustomField}. - * - * @param customField the custom field to update - * @return the updated customField - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCustomField { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $customField; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customField = null) { - $this->customField = $customField; - } - - } -} - -if (!class_exists("UpdateCustomFieldResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCustomFieldResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("UpdateCustomFieldOption", false)) { +if (!class_exists("UpdateCustomFieldOptions", false)) { /** - * Updates the specified {@link CustomFieldOption}. + * Updates the specified {@link CustomFieldOption} objects. * - * @param customFieldOption the custom field option to update - * @return the updated customFieldOption + * @param customFieldOptions the custom field options to update + * @return the updated custom field options * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateCustomFieldOption { + class UpdateCustomFieldOptions { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomFieldOption + * @var CustomFieldOption[] */ - public $customFieldOption; + public $customFieldOptions; /** * Gets the namesapce of this class @@ -3541,27 +2889,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOption = null) { - $this->customFieldOption = $customFieldOption; + public function __construct($customFieldOptions = null) { + $this->customFieldOptions = $customFieldOptions; } } } -if (!class_exists("UpdateCustomFieldOptionResponse", false)) { +if (!class_exists("UpdateCustomFieldOptionsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateCustomFieldOptionResponse { + class UpdateCustomFieldOptionsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomFieldOption + * @var CustomFieldOption[] */ public $rval; @@ -3588,25 +2936,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCustomFieldOptions", false)) { +if (!class_exists("UpdateCustomFields", false)) { /** - * Updates the specified {@link CustomFieldOption} objects. + * Updates the specified {@link CustomField} objects. * - * @param customFieldOptions the custom field options to update - * @return the updated custom field options + * @param customFields the custom fields to update + * @return the updated custom fields * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateCustomFieldOptions { + class UpdateCustomFields { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomFieldOption[] + * @var CustomField[] */ - public $customFieldOptions; + public $customFields; /** * Gets the namesapce of this class @@ -3624,27 +2972,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptions = null) { - $this->customFieldOptions = $customFieldOptions; + public function __construct($customFields = null) { + $this->customFields = $customFields; } } } -if (!class_exists("UpdateCustomFieldOptionsResponse", false)) { +if (!class_exists("UpdateCustomFieldsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateCustomFieldOptionsResponse { + class UpdateCustomFieldsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CustomFieldOption[] + * @var CustomField[] */ public $rval; @@ -3671,65 +3019,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCustomFields", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link CustomField} objects. - * - * @param customFields the custom fields to update - * @return the updated custom fields - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateCustomFields { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $customFields; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($customFields = null) { - $this->customFields = $customFields; - } - - } -} - -if (!class_exists("UpdateCustomFieldsResponse", false)) { - /** - * + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateCustomFieldsResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var CustomField[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3747,8 +3053,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -3758,11 +3064,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link CustomField} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivateCustomFields extends CustomFieldAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateCustomFields"; /** @@ -3781,9 +3087,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomFieldActionType = null) { + public function __construct() { parent::__construct(); - $this->CustomFieldActionType = $CustomFieldActionType; } } @@ -3793,11 +3098,11 @@ public function __construct($CustomFieldActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3822,11 +3127,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3836,11 +3140,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3865,10 +3169,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3878,11 +3181,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3907,10 +3210,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3920,11 +3222,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3949,10 +3251,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3962,11 +3263,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3991,10 +3292,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -4004,11 +3345,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -4033,10 +3374,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4046,34 +3386,34 @@ public function __construct($value = null, $ValueType = null) { /** * CustomFieldService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldService extends DfpSoapClient { const SERVICE_NAME = "CustomFieldService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/CustomFieldService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/CustomFieldService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/CustomFieldService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/CustomFieldService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateCustomFields" => "ActivateCustomFields", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldAction" => "CustomFieldAction", "CustomField" => "CustomField", @@ -4092,7 +3432,6 @@ class CustomFieldService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -4100,6 +3439,7 @@ class CustomFieldService extends DfpSoapClient { "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -4112,6 +3452,7 @@ class CustomFieldService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldDataType" => "CustomFieldDataType", "CustomFieldEntityType" => "CustomFieldEntityType", @@ -4129,26 +3470,16 @@ class CustomFieldService extends DfpSoapClient { "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", - "createCustomField" => "CreateCustomField", - "createCustomFieldResponse" => "CreateCustomFieldResponse", - "createCustomFieldOption" => "CreateCustomFieldOption", - "createCustomFieldOptionResponse" => "CreateCustomFieldOptionResponse", "createCustomFieldOptions" => "CreateCustomFieldOptions", "createCustomFieldOptionsResponse" => "CreateCustomFieldOptionsResponse", "createCustomFields" => "CreateCustomFields", "createCustomFieldsResponse" => "CreateCustomFieldsResponse", - "getCustomField" => "GetCustomField", - "getCustomFieldResponse" => "GetCustomFieldResponse", "getCustomFieldOption" => "GetCustomFieldOption", "getCustomFieldOptionResponse" => "GetCustomFieldOptionResponse", "getCustomFieldsByStatement" => "GetCustomFieldsByStatement", "getCustomFieldsByStatementResponse" => "GetCustomFieldsByStatementResponse", "performCustomFieldAction" => "PerformCustomFieldAction", "performCustomFieldActionResponse" => "PerformCustomFieldActionResponse", - "updateCustomField" => "UpdateCustomField", - "updateCustomFieldResponse" => "UpdateCustomFieldResponse", - "updateCustomFieldOption" => "UpdateCustomFieldOption", - "updateCustomFieldOptionResponse" => "UpdateCustomFieldOptionResponse", "updateCustomFieldOptions" => "UpdateCustomFieldOptions", "updateCustomFieldOptionsResponse" => "UpdateCustomFieldOptionsResponse", "updateCustomFields" => "UpdateCustomFields", @@ -4166,42 +3497,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link CustomField}. - * - * The following fields are required: - *

    - *
  • {@link CustomField#name}
  • - *
  • {@link CustomField#entityType}
  • - *
  • {@link CustomField#dataType}
  • - *
  • {@link CustomField#visibility}
  • - *
- * - * @param customField the custom field to create - * @return the custom field with its ID filled in - */ - public function createCustomField($customField) { - $args = new CreateCustomField($customField); - $result = $this->__soapCall("createCustomField", array($args)); - return $result->rval; - } - /** - * Creates a new {@link CustomFieldOption}. - * - * The following fields are required: - *
    - *
  • {@link CustomFieldOption#displayName}
  • - *
  • {@link CustomFieldOption#customFieldId}
  • - *
- * - * @param customFieldOption the custom field to create - * @return the custom field option with its ID filled in - */ - public function createCustomFieldOption($customFieldOption) { - $args = new CreateCustomFieldOption($customFieldOption); - $result = $this->__soapCall("createCustomFieldOption", array($args)); - return $result->rval; - } /** * Creates new {@link CustomFieldOption} objects. * @@ -4238,17 +3533,6 @@ public function createCustomFields($customFields) { $result = $this->__soapCall("createCustomFields", array($args)); return $result->rval; } - /** - * Returns the {@link CustomField} uniquely identified by the given ID. - * - * @param customFieldId the ID of the custom field, which must already exist - * @return the {@code CustomField} uniquely identified by the given ID - */ - public function getCustomField($customFieldId) { - $args = new GetCustomField($customFieldId); - $result = $this->__soapCall("getCustomField", array($args)); - return $result->rval; - } /** * Returns the {@link CustomFieldOption} uniquely identified by the given ID. * @@ -4315,28 +3599,6 @@ public function performCustomFieldAction($customFieldAction, $filterStatement) { $result = $this->__soapCall("performCustomFieldAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link CustomField}. - * - * @param customField the custom field to update - * @return the updated customField - */ - public function updateCustomField($customField) { - $args = new UpdateCustomField($customField); - $result = $this->__soapCall("updateCustomField", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link CustomFieldOption}. - * - * @param customFieldOption the custom field option to update - * @return the updated customFieldOption - */ - public function updateCustomFieldOption($customFieldOption) { - $args = new UpdateCustomFieldOption($customFieldOption); - $result = $this->__soapCall("updateCustomFieldOption", array($args)); - return $result->rval; - } /** * Updates the specified {@link CustomFieldOption} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201502/CustomTargetingService.php similarity index 86% rename from src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php rename to src/Google/Api/Ads/Dfp/v201502/CustomTargetingService.php index d261170d8..5a5685307 100755 --- a/src/Google/Api/Ads/Dfp/v201308/CustomTargetingService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CustomTargetingService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,57 +203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; } } @@ -412,14 +216,13 @@ public function __construct($token = null, $AuthenticationType = null) { if (!class_exists("CollectionSizeError", false)) { /** - * Errors associated with the size of the given collection being - * out of bounds. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CollectionSizeError"; /** @@ -444,13 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -460,11 +262,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -489,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -506,11 +307,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -535,13 +336,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -552,51 +352,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents the actions that can be performed on {@link CustomTargetingKey} * objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingKeyAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingKeyAction"; - /** - * @access public - * @var string - */ - public $CustomTargetingKeyActionType; - private $_parameterMap = array( - "CustomTargetingKeyAction.Type" => "CustomTargetingKeyActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -613,8 +375,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomTargetingKeyActionType = null) { - $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; + public function __construct() { } } @@ -624,11 +385,11 @@ public function __construct($CustomTargetingKeyActionType = null) { /** * {@code CustomTargetingKey} represents a key used for custom targeting. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingKey { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingKey"; /** @@ -655,6 +416,12 @@ class CustomTargetingKey { */ public $type; + /** + * @access public + * @var tnsCustomTargetingKeyStatus + */ + public $status; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -671,11 +438,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $displayName = null, $type = null) { + public function __construct($id = null, $name = null, $displayName = null, $type = null, $status = null) { $this->id = $id; $this->name = $name; $this->displayName = $displayName; $this->type = $type; + $this->status = $status; } } @@ -685,11 +453,11 @@ public function __construct($id = null, $name = null, $displayName = null, $type /** * Captures a page of {@link CustomTargetingKey} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingKeyPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingKeyPage"; /** @@ -740,51 +508,13 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * Represents the actions that can be performed on {@link CustomTargetingValue} * objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingValueAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingValueAction"; - /** - * @access public - * @var string - */ - public $CustomTargetingValueActionType; - private $_parameterMap = array( - "CustomTargetingValueAction.Type" => "CustomTargetingValueActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -801,8 +531,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomTargetingValueActionType = null) { - $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; + public function __construct() { } } @@ -812,11 +541,11 @@ public function __construct($CustomTargetingValueActionType = null) { /** * {@code CustomTargetingValue} represents a value used for custom targeting. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingValue"; /** @@ -849,6 +578,12 @@ class CustomTargetingValue { */ public $matchType; + /** + * @access public + * @var tnsCustomTargetingValueStatus + */ + public $status; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -865,12 +600,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customTargetingKeyId = null, $id = null, $name = null, $displayName = null, $matchType = null) { + public function __construct($customTargetingKeyId = null, $id = null, $name = null, $displayName = null, $matchType = null, $status = null) { $this->customTargetingKeyId = $customTargetingKeyId; $this->id = $id; $this->name = $name; $this->displayName = $displayName; $this->matchType = $matchType; + $this->status = $status; } } @@ -880,11 +616,11 @@ public function __construct($customTargetingKeyId = null, $id = null, $name = nu /** * Captures a page of {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingValuePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingValuePage"; /** @@ -934,11 +670,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -988,11 +724,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1061,11 +797,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * targeting values associated with it that were not deleted will continue to * exist. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeleteCustomTargetingKeys"; /** @@ -1084,9 +820,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomTargetingKeyActionType = null) { + public function __construct() { parent::__construct(); - $this->CustomTargetingKeyActionType = $CustomTargetingKeyActionType; } } @@ -1097,11 +832,11 @@ public function __construct($CustomTargetingKeyActionType = null) { * Represents the delete action that can be performed on * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeleteCustomTargetingValues extends CustomTargetingValueAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeleteCustomTargetingValues"; /** @@ -1120,29 +855,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomTargetingValueActionType = null) { + public function __construct() { parent::__construct(); - $this->CustomTargetingValueActionType = $CustomTargetingValueActionType; } } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("EntityChildrenLimitReachedError", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * Lists errors relating to having too many children on an entity. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class EntityChildrenLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; /** * @access public - * @var tnsFeatureErrorReason + * @var tnsEntityChildrenLimitReachedErrorReason */ public $reason; @@ -1162,34 +895,70 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("EntityLimitReachedError", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FeatureError", false)) { + /** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var tnsInternalApiErrorReason + * @var tnsFeatureErrorReason */ public $reason; @@ -1209,32 +978,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsInternalApiErrorReason */ public $reason; @@ -1254,32 +1024,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("NotNullError", false)) { /** - * Errors associated with violation of a NOT NULL check. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class NullError extends ApiError { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var tnsNullErrorReason + * @var tnsNotNullErrorReason */ public $reason; @@ -1299,36 +1068,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("NullError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError"; /** * @access public - * @var string + * @var tnsNullErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1346,10 +1112,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1359,11 +1127,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1388,13 +1156,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1404,11 +1171,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1433,13 +1200,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1450,11 +1216,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1479,13 +1245,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1496,11 +1261,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1525,13 +1290,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1542,11 +1306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1571,13 +1335,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1587,11 +1350,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1616,13 +1379,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1632,11 +1394,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1661,13 +1423,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1677,11 +1438,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1696,12 +1457,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1718,10 +1473,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1731,11 +1485,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1806,11 +1560,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1853,11 +1607,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1882,13 +1636,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1899,11 +1652,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1946,11 +1699,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1969,12 +1722,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1984,11 +1736,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -2007,12 +1759,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2022,11 +1773,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -2062,51 +1813,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2123,8 +1836,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2135,11 +1847,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2171,11 +1883,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2202,13 +1914,13 @@ public function __construct() { if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CollectionSizeError.Reason"; /** @@ -2237,11 +1949,11 @@ public function __construct() { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2270,11 +1982,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError.Reason"; /** @@ -2299,15 +2011,48 @@ public function __construct() { } } +if (!class_exists("CustomTargetingKeyStatus", false)) { + /** + * Describes the statuses for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomTargetingKeyStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingKey.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CustomTargetingKeyType", false)) { /** * Specifies the types for {@code CustomTargetingKey} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingKeyType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingKey.Type"; /** @@ -2337,11 +2082,11 @@ public function __construct() { * Represents the ways in which {@link CustomTargetingValue#name} strings will * be matched with ad requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingValueMatchType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingValue.MatchType"; /** @@ -2366,15 +2111,81 @@ public function __construct() { } } +if (!class_exists("CustomTargetingValueStatus", false)) { + /** + * Describes the statuses for {@code CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomTargetingValueStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingValue.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2403,11 +2214,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2436,11 +2247,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2469,11 +2280,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2502,11 +2313,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2535,11 +2346,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2568,11 +2379,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2601,11 +2412,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2644,11 +2455,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2677,11 +2488,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2710,11 +2521,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2743,11 +2554,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2785,11 +2596,11 @@ public function __construct() { * @param keys the custom targeting keys to update * @return the updated custom targeting keys * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCustomTargetingKeys { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2825,11 +2636,11 @@ public function __construct($keys = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCustomTargetingKeysResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2874,11 +2685,11 @@ public function __construct($rval = null) { * @param values the custom targeting values to update * @return the updated custom targeting keys * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCustomTargetingValues { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2914,11 +2725,11 @@ public function __construct($values = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateCustomTargetingValuesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2983,11 +2794,11 @@ public function __construct($rval = null) { * a set of custom targeting keys * @return the custom targeting keys that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCustomTargetingKeysByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3023,11 +2834,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCustomTargetingKeysByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3115,11 +2926,11 @@ public function __construct($rval = null) { * a set of custom targeting values * @return the custom targeting values that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCustomTargetingValuesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3155,11 +2966,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCustomTargetingValuesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3201,11 +3012,11 @@ public function __construct($rval = null) { * a set of custom targeting keys * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformCustomTargetingKeyAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3248,11 +3059,11 @@ public function __construct($customTargetingKeyAction = null, $filterStatement = /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformCustomTargetingKeyActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3294,11 +3105,11 @@ public function __construct($rval = null) { * a set of ad units * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformCustomTargetingValueAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3341,11 +3152,11 @@ public function __construct($customTargetingValueAction = null, $filterStatement /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformCustomTargetingValueActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3384,11 +3195,11 @@ public function __construct($rval = null) { * @param keys the custom targeting keys to update * @return the updated custom targeting keys * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateCustomTargetingKeys { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3424,11 +3235,11 @@ public function __construct($keys = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateCustomTargetingKeysResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3467,11 +3278,11 @@ public function __construct($rval = null) { * @param values the custom targeting values to update * @return the updated custom targeting values * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateCustomTargetingValues { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3507,11 +3318,11 @@ public function __construct($values = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateCustomTargetingValuesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3543,15 +3354,126 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateCustomTargetingKeys", false)) { + /** + * The action used for activating inactive (i.e. deleted) + * {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ActivateCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ActivateCustomTargetingKeys"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateCustomTargetingValues", false)) { + /** + * The action used for activating inactive (i.e. deleted) + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ActivateCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ActivateCustomTargetingValues"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3576,11 +3498,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3590,11 +3511,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3619,10 +3540,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3632,11 +3552,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3661,10 +3581,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3674,11 +3593,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3703,10 +3622,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3716,11 +3634,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3745,10 +3663,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3758,11 +3716,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3787,10 +3745,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3800,33 +3757,34 @@ public function __construct($value = null, $ValueType = null) { /** * CustomTargetingService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingService extends DfpSoapClient { const SERVICE_NAME = "CustomTargetingService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/CustomTargetingService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/CustomTargetingService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/CustomTargetingService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/CustomTargetingService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateCustomTargetingKeys" => "ActivateCustomTargetingKeys", + "ActivateCustomTargetingValues" => "ActivateCustomTargetingValues", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomTargetingError" => "CustomTargetingError", @@ -3842,12 +3800,13 @@ class CustomTargetingService extends DfpSoapClient { "DateValue" => "DateValue", "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3855,6 +3814,7 @@ class CustomTargetingService extends DfpSoapClient { "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3870,8 +3830,11 @@ class CustomTargetingService extends DfpSoapClient { "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Status" => "CustomTargetingKeyStatus", "CustomTargetingKey.Type" => "CustomTargetingKeyType", "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "CustomTargetingValue.Status" => "CustomTargetingValueStatus", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201502/ExchangeRateService.php similarity index 82% rename from src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php rename to src/Google/Api/Ads/Dfp/v201502/ExchangeRateService.php index c40761fbc..467bd1707 100755 --- a/src/Google/Api/Ads/Dfp/v201311/ExchangeRateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ExchangeRateService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -581,51 +428,13 @@ public function __construct($date = null, $hour = null, $minute = null, $second /** * Represents the actions that can be performed on {@link ExchangeRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExchangeRateAction"; - /** - * @access public - * @var string - */ - public $ExchangeRateActionType; - private $_parameterMap = array( - "ExchangeRateAction.Type" => "ExchangeRateActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -642,8 +451,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ExchangeRateActionType = null) { - $this->ExchangeRateActionType = $ExchangeRateActionType; + public function __construct() { } } @@ -655,11 +463,11 @@ public function __construct($ExchangeRateActionType = null) { * {@link Network#secondaryCurrencyCodes}, and the latest exchange rate between this currency and * {@link Network#currencyCode}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExchangeRate"; /** @@ -723,11 +531,11 @@ public function __construct($id = null, $currencyCode = null, $refreshRate = nul /** * Lists all errors associated with {@link ExchangeRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExchangeRateError"; /** @@ -752,13 +560,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -768,11 +575,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link ExchangeRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRatePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExchangeRatePage"; /** @@ -823,11 +630,11 @@ public function __construct($results = null, $startIndex = null, $totalResultSet * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -852,13 +659,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -870,11 +676,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -899,13 +705,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -915,11 +720,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -944,57 +749,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1004,11 +764,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1033,13 +793,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1050,11 +809,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1079,13 +838,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1096,11 +854,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1125,13 +883,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1142,11 +899,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1171,13 +928,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1188,11 +944,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -1217,13 +973,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1233,11 +988,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1262,13 +1017,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1278,11 +1032,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1297,12 +1051,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1319,10 +1067,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1332,11 +1079,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1407,11 +1154,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1454,11 +1201,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1483,13 +1230,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1500,11 +1246,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1547,11 +1293,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1570,12 +1316,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1585,11 +1330,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1625,51 +1370,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1686,8 +1393,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1698,11 +1404,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1734,11 +1440,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1763,15 +1469,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1800,11 +1539,11 @@ public function __construct() { /** * Determines which direction (from which currency to which currency) the exchange rate is in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRateDirection { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExchangeRateDirection"; /** @@ -1833,11 +1572,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExchangeRateError.Reason"; /** @@ -1866,11 +1605,11 @@ public function __construct() { /** * Determines at which rate the exchange rate is refreshed. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRateRefreshRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExchangeRateRefreshRate"; /** @@ -1899,11 +1638,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1932,11 +1671,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1965,11 +1704,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1998,11 +1737,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2031,11 +1770,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2064,11 +1803,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2107,11 +1846,11 @@ public function __construct() { * reduce the number of times you receive this error. *

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2140,11 +1879,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -2173,11 +1912,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2206,11 +1945,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2249,11 +1988,11 @@ public function __construct() { * @param exchangeRates the exchange rates to create * @return the created exchange rates with their exchange rate values filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateExchangeRates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2289,11 +2028,11 @@ public function __construct($exchangeRates = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateExchangeRatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2325,90 +2064,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetExchangeRate", false)) { - /** - * Returns the {@link ExchangeRate} object uniquely identified by the given - * {@code exchangeRateId}. - * - * @param exchangeRateId the ID of the exchange rate, which must already exist - * @return the exchange rate uniquely identified by the given {@code exchangeRateId} - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetExchangeRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $exchangeRateId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($exchangeRateId = null) { - $this->exchangeRateId = $exchangeRateId; - } - - } -} - -if (!class_exists("GetExchangeRateResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetExchangeRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ExchangeRate - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetExchangeRatesByStatement", false)) { /** * Gets a {@link ExchangeRatePage} of {@link ExchangeRate} objects that satisfy the given @@ -2444,11 +2099,11 @@ public function __construct($rval = null) { * a set of exchange rates * @return the exchange rates that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetExchangeRatesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2484,11 +2139,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetExchangeRatesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2556,11 +2211,11 @@ public function __construct($rval = null) { * a set of exchange rates * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformExchangeRateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2603,11 +2258,11 @@ public function __construct($exchangeRateAction = null, $filterStatement = null) /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformExchangeRateActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2646,11 +2301,11 @@ public function __construct($rval = null) { * @param exchangeRates the exchange rates to update * @return the updated exchange rates * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateExchangeRates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2686,11 +2341,11 @@ public function __construct($exchangeRates = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateExchangeRatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2722,15 +2377,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

+ * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2755,11 +2451,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2769,11 +2464,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2798,10 +2493,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2811,11 +2505,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2840,10 +2534,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2853,11 +2546,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2882,10 +2575,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2895,11 +2587,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used to delete {@link ExchangeRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeleteExchangeRates extends ExchangeRateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeleteExchangeRates"; /** @@ -2918,9 +2610,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ExchangeRateActionType = null) { + public function __construct() { parent::__construct(); - $this->ExchangeRateActionType = $ExchangeRateActionType; } } @@ -2930,11 +2621,11 @@ public function __construct($ExchangeRateActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2959,10 +2650,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2972,11 +2662,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -3001,10 +2691,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -3014,11 +2703,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3043,10 +2732,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3056,33 +2744,33 @@ public function __construct($value = null, $ValueType = null) { /** * ExchangeRateService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ExchangeRateService extends DfpSoapClient { const SERVICE_NAME = "ExchangeRateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ExchangeRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ExchangeRateService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ExchangeRateService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ExchangeRateService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3097,7 +2785,6 @@ class ExchangeRateService extends DfpSoapClient { "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -3116,6 +2803,7 @@ class ExchangeRateService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "ExchangeRateDirection" => "ExchangeRateDirection", "ExchangeRateError.Reason" => "ExchangeRateErrorReason", @@ -3132,8 +2820,6 @@ class ExchangeRateService extends DfpSoapClient { "StatementError.Reason" => "StatementErrorReason", "createExchangeRates" => "CreateExchangeRates", "createExchangeRatesResponse" => "CreateExchangeRatesResponse", - "getExchangeRate" => "GetExchangeRate", - "getExchangeRateResponse" => "GetExchangeRateResponse", "getExchangeRatesByStatement" => "GetExchangeRatesByStatement", "getExchangeRatesByStatementResponse" => "GetExchangeRatesByStatementResponse", "performExchangeRateAction" => "PerformExchangeRateAction", @@ -3171,18 +2857,6 @@ public function createExchangeRates($exchangeRates) { $result = $this->__soapCall("createExchangeRates", array($args)); return $result->rval; } - /** - * Returns the {@link ExchangeRate} object uniquely identified by the given - * {@code exchangeRateId}. - * - * @param exchangeRateId the ID of the exchange rate, which must already exist - * @return the exchange rate uniquely identified by the given {@code exchangeRateId} - */ - public function getExchangeRate($exchangeRateId) { - $args = new GetExchangeRate($exchangeRateId); - $result = $this->__soapCall("getExchangeRate", array($args)); - return $result->rval; - } /** * Gets a {@link ExchangeRatePage} of {@link ExchangeRate} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: diff --git a/src/Google/Api/Ads/Dfp/v201311/ForecastService.php b/src/Google/Api/Ads/Dfp/v201502/ForecastService.php similarity index 77% rename from src/Google/Api/Ads/Dfp/v201311/ForecastService.php rename to src/Google/Api/Ads/Dfp/v201502/ForecastService.php index ff961dc1c..de00aad0d 100755 --- a/src/Google/Api/Ads/Dfp/v201311/ForecastService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ForecastService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTargeting"; /** @@ -83,11 +83,11 @@ public function __construct($adUnitId = null, $includeDescendants = null) { *

The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

* @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -108,44 +108,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -162,11 +124,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -177,11 +138,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Provides {@link LineItem} objects the ability to target or exclude * technologies. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargeting"; /** @@ -287,11 +248,11 @@ public function __construct($bandwidthGroupTargeting = null, $browserTargeting = /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -316,13 +277,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -332,11 +292,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -345,44 +305,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -399,9 +321,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -413,11 +334,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -460,11 +381,11 @@ public function __construct($labelId = null, $isNegated = null) { /** * Errors associated with audience extension enabled line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceExtensionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError"; /** @@ -489,66 +410,153 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string + * @var tnsAuthenticationErrorReason */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); + public $reason; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } + } +} + +if (!class_exists("AvailabilityForecast", false)) { + /** + * Describes predicted inventory availability for a {@link ProspectiveLineItem}. + * + *

Inventory has three threshold values along a line of possible inventory. + * From least to most, these are: + * + *

+ *
  • Available units -- How many units can be booked without affecting any other line items. + * Booking more than this number can cause lower and same priority line items to underdeliver. + *
  • Possible units -- How many units can be booked without affecting any higher priority line + * items. Booking more than this number can cause the line item to underdeliver. + *
  • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
  • + * + *

    Underdelivery is caused by overbooking. However, if more impressions are served than are + * predicted, the extra available inventory might enable all inventory guarantees to be met without + * overbooking. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AvailabilityForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailabilityForecast"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var integer */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var integer + */ + public $possibleUnits; + + /** + * @access public + * @var integer + */ + public $reservedUnits; + + /** + * @access public + * @var TargetingCriteriaBreakdown[] + */ + public $targetingCriteriaBreakdowns; + + /** + * @access public + * @var ContendingLineItem[] + */ + public $contendingLineItems; + + /** + * @access public + * @var GrpDemographicBreakdown[] + */ + public $demographicBreakdowns; /** * Gets the namesapce of this class @@ -566,29 +574,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, $targetingCriteriaBreakdowns = null, $contendingLineItems = null, $demographicBreakdowns = null) { + $this->lineItemId = $lineItemId; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + $this->targetingCriteriaBreakdowns = $targetingCriteriaBreakdowns; + $this->contendingLineItems = $contendingLineItems; + $this->demographicBreakdowns = $demographicBreakdowns; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("AvailabilityForecastOptions", false)) { /** - * An error for an exception that occurred when authenticating. + * Forecasting options for line item availability forecasts. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class AvailabilityForecastOptions { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailabilityForecastOptions"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var boolean */ - public $reason; + public $includeTargetingCriteriaBreakdown; + + /** + * @access public + * @var boolean + */ + public $includeContendingLineItems; /** * Gets the namesapce of this class @@ -606,13 +630,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($includeTargetingCriteriaBreakdown = null, $includeContendingLineItems = null) { + $this->includeTargetingCriteriaBreakdown = $includeTargetingCriteriaBreakdown; + $this->includeContendingLineItems = $includeContendingLineItems; } } @@ -623,11 +643,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents bandwidth groups that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BandwidthGroupTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroupTargeting"; /** @@ -670,11 +690,11 @@ public function __construct($isTargeted = null, $bandwidthGroups = null) { /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -683,44 +703,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -737,9 +719,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -750,11 +731,11 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n * Represents browser languages that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserLanguageTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguageTargeting"; /** @@ -798,11 +779,11 @@ public function __construct($isTargeted = null, $browserLanguages = null) { * Represents browsers that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserTargeting"; /** @@ -846,11 +827,11 @@ public function __construct($isTargeted = null, $browsers = null) { * Click tracking is a special line item type with a number of unique errors as * described below. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingLineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingLineItemError"; /** @@ -875,36 +856,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -922,10 +900,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -935,11 +915,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -964,13 +944,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -980,11 +959,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors due to {@link Company#creditStatus}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanyCreditStatusError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError"; /** @@ -1009,13 +988,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1025,11 +1003,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Describes contending line items for a {@link Forecast}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContendingLineItem { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContendingLineItem"; /** @@ -1073,11 +1051,11 @@ public function __construct($lineItemId = null, $contendingImpressions = null) { * Represents one or more {@link CustomTargetingValue custom targeting values} from different * {@link CustomTargetingKey custom targeting keys} ANDed together. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; /** @@ -1113,11 +1091,11 @@ public function __construct($customTargetingValueIds = null) { /** * Lists all errors related to {@link ContentMetadataTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError"; /** @@ -1142,13 +1120,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1158,11 +1135,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Used to target {@link LineItem}s to specific videos on a publisher's site. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentTargeting"; /** @@ -1247,11 +1224,11 @@ public function __construct($targetedContentIds = null, $excludedContentIds = nu /** * Lists all errors associated with creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError"; /** @@ -1276,13 +1253,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1297,11 +1273,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * contain companions. Companions are only valid if the line item's environment * type is {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativePlaceholder { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativePlaceholder"; /** @@ -1379,11 +1355,11 @@ public function __construct($size = null, $companions = null, $appliedLabels = n /** * Lists all errors associated with cross selling. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CrossSellError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError"; /** @@ -1408,13 +1384,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1425,11 +1400,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -1454,11 +1429,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -1468,11 +1442,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -1497,13 +1471,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1514,11 +1487,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -1543,13 +1516,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1562,51 +1534,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is * subject to the rules defined on {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaNode"; - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1623,8 +1557,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + public function __construct() { } } @@ -1634,11 +1567,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1688,11 +1621,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1757,11 +1690,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Lists all date time range errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeRangeTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeRangeTargetingError"; /** @@ -1786,13 +1719,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1803,11 +1735,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@code DayPart} represents a time-period within a day of the week which is * targeted by a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPart { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPart"; /** @@ -1858,11 +1790,11 @@ public function __construct($dayOfWeek = null, $startTime = null, $endTime = nul * Modify the delivery times of line items for particular days of the week. By * default, line items are served at all days and times. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargeting"; /** @@ -1905,11 +1837,11 @@ public function __construct($dayParts = null, $timeZone = null) { /** * Lists all errors associated with day-part targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargetingError"; /** @@ -1934,13 +1866,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1952,11 +1883,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@link LineItem#costType}, delivered for a single line item for the * last 7 days * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeliveryData { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeliveryData"; /** @@ -1988,28 +1919,22 @@ public function __construct($units = null) { } } -if (!class_exists("DeliveryIndicator", false)) { +if (!class_exists("DeliveryForecastOptions", false)) { /** - * Indicates the delivery performance of the {@link LineItem}. + * Forecasting options for line item delivery forecasts. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeliveryIndicator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeliveryIndicator"; + class DeliveryForecastOptions { - /** - * @access public - * @var double - */ - public $expectedDeliveryPercentage; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryForecastOptions"; /** * @access public - * @var double + * @var integer[] */ - public $actualDeliveryPercentage; + public $ignoredLineItemIds; /** * Gets the namesapce of this class @@ -2027,36 +1952,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { - $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; - $this->actualDeliveryPercentage = $actualDeliveryPercentage; + public function __construct($ignoredLineItemIds = null) { + $this->ignoredLineItemIds = $ignoredLineItemIds; } } } -if (!class_exists("DeviceCapabilityTargeting", false)) { +if (!class_exists("DeliveryForecast", false)) { /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * The forecast of delivery for a list of {@link ProspectiveLineItem} objects to be reserved at the + * same time. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCapabilityTargeting"; + class DeliveryForecast { - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryForecast"; /** * @access public - * @var Technology[] + * @var LineItemDeliveryForecast[] */ - public $excludedDeviceCapabilities; + public $lineItemDeliveryForecasts; /** * Gets the namesapce of this class @@ -2074,36 +1993,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + public function __construct($lineItemDeliveryForecasts = null) { + $this->lineItemDeliveryForecasts = $lineItemDeliveryForecasts; } } } -if (!class_exists("DeviceCategoryTargeting", false)) { +if (!class_exists("DeliveryIndicator", false)) { /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * Indicates the delivery performance of the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeviceCategoryTargeting { + class DeliveryIndicator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCategoryTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryIndicator"; /** * @access public - * @var Technology[] + * @var double */ - public $targetedDeviceCategories; + public $expectedDeliveryPercentage; /** * @access public - * @var Technology[] + * @var double */ - public $excludedDeviceCategories; + public $actualDeliveryPercentage; /** * Gets the namesapce of this class @@ -2121,8 +2039,102 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; + public function __construct($expectedDeliveryPercentage = null, $actualDeliveryPercentage = null) { + $this->expectedDeliveryPercentage = $expectedDeliveryPercentage; + $this->actualDeliveryPercentage = $actualDeliveryPercentage; + } + + } +} + +if (!class_exists("DeviceCapabilityTargeting", false)) { + /** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCapabilityTargeting"; + + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } + + } +} + +if (!class_exists("DeviceCategoryTargeting", false)) { + /** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCategoryTargeting"; + + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { + $this->targetedDeviceCategories = $targetedDeviceCategories; $this->excludedDeviceCategories = $excludedDeviceCategories; } @@ -2134,11 +2146,11 @@ public function __construct($targetedDeviceCategories = null, $excludedDeviceCat * Represents device manufacturer that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceManufacturerTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturerTargeting"; /** @@ -2182,11 +2194,11 @@ public function __construct($isTargeted = null, $deviceManufacturers = null) { * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -2211,27 +2223,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } } -if (!class_exists("EntityLimitReachedError", false)) { +if (!class_exists("EntityChildrenLimitReachedError", false)) { /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. + * Lists errors relating to having too many children on an entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class EntityLimitReachedError extends ApiError { + class EntityChildrenLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EntityLimitReachedError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; /** * Gets the namesapce of this class @@ -2249,34 +2265,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); + $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("EntityLimitReachedError", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; + class EntityLimitReachedError extends ApiError { - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; /** * Gets the namesapce of this class @@ -2294,101 +2304,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Forecast", false)) { +if (!class_exists("FeatureError", false)) { /** - * Describes predicted inventory availability for a line item with the specified - * properties. - * - *

    Inventory has three threshold values along a line of possible inventory. - * From least to most, these are: - * - *

    - *
    Available units - *
    How many units can be booked without affecting any other line items. Booking more than this - * number can cause lower- and same-priority line items to underdeliver. - *
    Possible units - *
    How many units can be booked without affecting any higher priority line items. Booking more - * than this number can cause the line item to underdeliver. - *
    Matched (forecast) units - *
    How many units satisfy all specified criteria. - *
    - * - *

    Underdelivery is caused by overbooking. However, if more impressions are served than are - * predicted, the extra available inventory might enable all inventory guarantees to be met without - * overbooking. + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Forecast { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Forecast"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var integer - */ - public $availableUnits; - - /** - * @access public - * @var integer - */ - public $deliveredUnits; - - /** - * @access public - * @var integer - */ - public $matchedUnits; - - /** - * @access public - * @var integer - */ - public $possibleUnits; + class FeatureError extends ApiError { - /** - * @access public - * @var integer - */ - public $reservedUnits; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var ContendingLineItem[] + * @var tnsFeatureErrorReason */ - public $contendingLineItems; + public $reason; /** * Gets the namesapce of this class @@ -2406,16 +2348,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, $contendingLineItems = null) { - $this->id = $id; - $this->orderId = $orderId; - $this->unitType = $unitType; - $this->availableUnits = $availableUnits; - $this->deliveredUnits = $deliveredUnits; - $this->matchedUnits = $matchedUnits; - $this->possibleUnits = $possibleUnits; - $this->reservedUnits = $reservedUnits; - $this->contendingLineItems = $contendingLineItems; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -2425,11 +2363,11 @@ public function __construct($id = null, $orderId = null, $unitType = null, $avai /** * Errors that can result from a forecast request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError"; /** @@ -2454,13 +2392,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2471,11 +2408,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents a limit on the number of times a single viewer can be exposed to * the same {@link LineItem} in a specified time period. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCap"; /** @@ -2525,11 +2462,11 @@ public function __construct($maxImpressions = null, $numTimeUnits = null, $timeU /** * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError"; /** @@ -2554,13 +2491,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2570,11 +2506,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Targeting validation errors that can be used by different targeting types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GenericTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError"; /** @@ -2599,13 +2535,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2629,11 +2564,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * York as one of the targeted locations * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargeting"; /** @@ -2677,11 +2612,11 @@ public function __construct($targetedLocations = null, $excludedLocations = null * Lists all errors associated with geographical targeting for a * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError"; /** @@ -2706,36 +2641,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("Goal", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * Defines the criteria a {@link LineItem} needs to satisfy to meet its delivery goal. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class Goal { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Goal"; /** * @access public - * @var tnsInternalApiErrorReason + * @var tnsGoalType */ - public $reason; + public $goalType; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $units; /** * Gets the namesapce of this class @@ -2753,34 +2697,55 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($goalType = null, $unitType = null, $units = null) { + $this->goalType = $goalType; + $this->unitType = $unitType; + $this->units = $units; } } } -if (!class_exists("InvalidUrlError", false)) { +if (!class_exists("GrpDemographicBreakdown", false)) { /** - * Lists all errors associated with URLs. + * GRP forecast breakdown counts associated with a gender and age demographic. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InvalidUrlError extends ApiError { + class GrpDemographicBreakdown { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpDemographicBreakdown"; /** * @access public - * @var tnsInvalidUrlErrorReason + * @var integer */ - public $reason; + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var tnsGrpUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsGrpGender + */ + public $gender; + + /** + * @access public + * @var tnsGrpAge + */ + public $age; /** * Gets the namesapce of this class @@ -2798,46 +2763,59 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($availableUnits = null, $matchedUnits = null, $unitType = null, $gender = null, $age = null) { + $this->availableUnits = $availableUnits; + $this->matchedUnits = $matchedUnits; + $this->unitType = $unitType; + $this->gender = $gender; + $this->age = $age; } } } -if (!class_exists("InventoryTargeting", false)) { +if (!class_exists("GrpSettings", false)) { /** - * A collection of targeted and excluded ad units and placements. + * {@code GrpSettings} contains information for a line item that will have a target demographic + * when serving. This information will be used to set up tracking and enable reporting on the + * demographic information. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryTargeting { + class GrpSettings { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettings"; /** * @access public - * @var AdUnitTargeting[] + * @var integer */ - public $targetedAdUnits; + public $minTargetAge; /** * @access public - * @var AdUnitTargeting[] + * @var integer */ - public $excludedAdUnits; + public $maxTargetAge; /** * @access public - * @var integer[] + * @var tnsGrpTargetGender */ - public $targetedPlacementIds; + public $targetGender; + + /** + * @access public + * @var tnsGrpProvider + */ + public $provider; + + /** + * @access public + * @var integer + */ + public $targetImpressionGoal; /** * Gets the namesapce of this class @@ -2855,30 +2833,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; + public function __construct($minTargetAge = null, $maxTargetAge = null, $targetGender = null, $provider = null, $targetImpressionGoal = null) { + $this->minTargetAge = $minTargetAge; + $this->maxTargetAge = $maxTargetAge; + $this->targetGender = $targetGender; + $this->provider = $provider; + $this->targetImpressionGoal = $targetImpressionGoal; } } } -if (!class_exists("InventoryTargetingError", false)) { +if (!class_exists("GrpSettingsError", false)) { /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. + * Errors associated with line items with GRP settings. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryTargetingError extends ApiError { + class GrpSettingsError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError"; /** * @access public - * @var tnsInventoryTargetingErrorReason + * @var tnsGrpSettingsErrorReason */ public $reason; @@ -2898,32 +2877,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InventoryUnitError", false)) { +if (!class_exists("ImageError", false)) { /** - * Lists the generic errors associated with {@link AdUnit} objects. + * Lists all errors associated with images. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryUnitError extends ApiError { + class ImageError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError"; /** * @access public - * @var tnsInventoryUnitErrorReason + * @var tnsImageErrorReason */ public $reason; @@ -2943,32 +2921,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LabelEntityAssociationError", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Errors specific to creating label entity associations. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelEntityAssociationError extends ApiError { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var tnsLabelEntityAssociationErrorReason + * @var tnsInternalApiErrorReason */ public $reason; @@ -2988,32 +2967,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LineItemCreativeAssociationError", false)) { +if (!class_exists("InvalidUrlError", false)) { /** - * Lists all errors associated with line item-to-creative association dates. + * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemCreativeAssociationError extends ApiError { + class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidUrlError"; /** * @access public - * @var tnsLineItemCreativeAssociationErrorReason + * @var tnsInvalidUrlErrorReason */ public $reason; @@ -3033,34 +3011,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LineItemError", false)) { +if (!class_exists("InventoryTargeting", false)) { /** - * A catch-all error that lists all generic errors associated with LineItem. + * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemError extends ApiError { + class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargeting"; /** * @access public - * @var tnsLineItemErrorReason + * @var AdUnitTargeting[] */ - public $reason; + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; /** * Gets the namesapce of this class @@ -3078,32 +3067,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; } } } -if (!class_exists("LineItemFlightDateError", false)) { +if (!class_exists("InventoryTargetingError", false)) { /** - * Lists all errors associated with LineItem start and end dates. + * Lists all inventory errors caused by associating a line item with a targeting + * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemFlightDateError extends ApiError { + class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemFlightDateError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError"; /** * @access public - * @var tnsLineItemFlightDateErrorReason + * @var tnsInventoryTargetingErrorReason */ public $reason; @@ -3123,32 +3110,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LineItemOperationError", false)) { +if (!class_exists("InventoryUnitError", false)) { /** - * Lists all errors for executing operations on line items + * Lists the generic errors associated with {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemOperationError extends ApiError { + class InventoryUnitError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemOperationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitError"; /** * @access public - * @var tnsLineItemOperationErrorReason + * @var tnsInventoryUnitErrorReason */ public $reason; @@ -3168,329 +3154,716 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LineItemSummary", false)) { +if (!class_exists("LabelEntityAssociationError", false)) { /** - * The {@code LineItemSummary} represents the base class from which a {@code - * LineItem} is derived. + * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemSummary { + class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemSummary"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LabelEntityAssociationError"; /** * @access public - * @var integer + * @var tnsLabelEntityAssociationErrorReason */ - public $orderId; + public $reason; /** - * @access public - * @var integer + * Gets the namesapce of this class + * @return the namespace of this class */ - public $id; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var string + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $name; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var string - */ - public $externalId; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } - /** - * @access public - * @var string - */ - public $orderName; + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError"; /** * @access public - * @var DateTime + * @var tnsLineItemActivityAssociationErrorReason */ - public $startDateTime; + public $reason; /** - * @access public - * @var tnsStartDateTimeType + * Gets the namesapce of this class + * @return the namespace of this class */ - public $startDateTimeType; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var DateTime + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $endDateTime; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociation", false)) { + /** + * A {@code LineItemActivityAssociation} associates a {@link LineItem} with an {@link Activity} so + * that the conversions of the {@link Activity} can be counted against the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociation"; /** * @access public * @var integer */ - public $autoExtensionDays; + public $activityId; /** * @access public - * @var boolean + * @var Money */ - public $unlimitedEndDateTime; + public $clickThroughConversionCost; /** * @access public - * @var tnsCreativeRotationType + * @var Money */ - public $creativeRotationType; + public $viewThroughConversionCost; /** - * @access public - * @var tnsDeliveryRateType + * Gets the namesapce of this class + * @return the namespace of this class */ - public $deliveryRateType; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var tnsRoadblockingType + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $roadblockingType; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($activityId = null, $clickThroughConversionCost = null, $viewThroughConversionCost = null) { + $this->activityId = $activityId; + $this->clickThroughConversionCost = $clickThroughConversionCost; + $this->viewThroughConversionCost = $viewThroughConversionCost; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationError", false)) { + /** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemCreativeAssociationError"; /** * @access public - * @var FrequencyCap[] + * @var tnsLineItemCreativeAssociationErrorReason */ - public $frequencyCaps; + public $reason; /** - * @access public - * @var tnsLineItemType + * Gets the namesapce of this class + * @return the namespace of this class */ - public $lineItemType; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var integer + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $priority; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var tnsUnitType - */ - public $unitType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemDeliveryForecast", false)) { + /** + * The forecasted delivery of a {@link ProspectiveLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemDeliveryForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemDeliveryForecast"; /** * @access public - * @var tnsLineItemSummaryDuration + * @var integer */ - public $duration; + public $lineItemId; /** * @access public * @var integer */ - public $unitsBought; + public $orderId; /** * @access public - * @var Money + * @var tnsUnitType */ - public $costPerUnit; + public $unitType; /** * @access public - * @var Money + * @var integer */ - public $valueCostPerUnit; + public $predictedDeliveryUnits; /** * @access public - * @var tnsCostType + * @var integer */ - public $costType; + public $deliveredUnits; /** * @access public - * @var tnsLineItemDiscountType + * @var integer */ - public $discountType; + public $matchedUnits; /** - * @access public - * @var double + * Gets the namesapce of this class + * @return the namespace of this class */ - public $discount; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var integer + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $contractedUnitsBought; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $predictedDeliveryUnits = null, $deliveredUnits = null, $matchedUnits = null) { + $this->lineItemId = $lineItemId; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->predictedDeliveryUnits = $predictedDeliveryUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + } + + } +} + +if (!class_exists("LineItemError", false)) { + /** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemError"; /** * @access public - * @var CreativePlaceholder[] + * @var tnsLineItemErrorReason */ - public $creativePlaceholders; + public $reason; /** - * @access public - * @var tnsTargetPlatform + * Gets the namesapce of this class + * @return the namespace of this class */ - public $targetPlatform; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var tnsEnvironmentType + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $environmentType; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemFlightDateError", false)) { + /** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemFlightDateError"; /** * @access public - * @var tnsCompanionDeliveryOption + * @var tnsLineItemFlightDateErrorReason */ - public $companionDeliveryOption; + public $reason; /** - * @access public - * @var tnsCreativePersistenceType + * Gets the namesapce of this class + * @return the namespace of this class */ - public $creativePersistenceType; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var boolean + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $allowOverbook; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemOperationError"; /** * @access public - * @var boolean + * @var tnsLineItemOperationErrorReason */ - public $skipInventoryCheck; + public $reason; /** - * @access public - * @var boolean + * Gets the namesapce of this class + * @return the namespace of this class */ - public $reserveAtCreation; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var Stats + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $stats; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemSummary", false)) { + /** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemSummary"; /** * @access public - * @var DeliveryIndicator + * @var integer */ - public $deliveryIndicator; + public $orderId; /** * @access public - * @var DeliveryData + * @var integer */ - public $deliveryData; + public $id; /** * @access public - * @var Money + * @var string */ - public $budget; + public $name; /** * @access public - * @var tnsComputedStatus + * @var string */ - public $status; + public $externalId; /** * @access public - * @var tnsLineItemSummaryReservationStatus + * @var string */ - public $reservationStatus; + public $orderName; /** * @access public - * @var boolean + * @var DateTime */ - public $isArchived; + public $startDateTime; /** * @access public - * @var string + * @var tnsStartDateTimeType */ - public $webPropertyCode; + public $startDateTimeType; /** * @access public - * @var AppliedLabel[] + * @var DateTime */ - public $appliedLabels; + public $endDateTime; /** * @access public - * @var AppliedLabel[] + * @var integer */ - public $effectiveAppliedLabels; + public $autoExtensionDays; /** * @access public * @var boolean */ - public $disableSameAdvertiserCompetitiveExclusion; + public $unlimitedEndDateTime; /** * @access public - * @var string + * @var tnsCreativeRotationType */ - public $lastModifiedByApp; + public $creativeRotationType; /** * @access public - * @var string + * @var tnsDeliveryRateType */ - public $notes; + public $deliveryRateType; /** * @access public - * @var DateTime + * @var tnsRoadblockingType */ - public $lastModifiedDateTime; + public $roadblockingType; /** * @access public - * @var DateTime + * @var FrequencyCap[] */ - public $creationDateTime; + public $frequencyCaps; /** * @access public - * @var boolean + * @var tnsLineItemType */ - public $isPrioritizedPreferredDealsEnabled; + public $lineItemType; /** * @access public * @var integer */ - public $adExchangeAuctionOpeningPriority; + public $priority; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $valueCostPerUnit; + + /** + * @access public + * @var tnsCostType + */ + public $costType; + + /** + * @access public + * @var tnsLineItemDiscountType + */ + public $discountType; + + /** + * @access public + * @var double + */ + public $discount; + + /** + * @access public + * @var integer + */ + public $contractedUnitsBought; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var LineItemActivityAssociation[] + */ + public $activityAssociations; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativePersistenceType + */ + public $creativePersistenceType; + + /** + * @access public + * @var boolean + */ + public $allowOverbook; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * @access public + * @var boolean + */ + public $skipCrossSellingRuleWarningChecks; + + /** + * @access public + * @var boolean + */ + public $reserveAtCreation; + + /** + * @access public + * @var Stats + */ + public $stats; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var Money + */ + public $budget; + + /** + * @access public + * @var tnsComputedStatus + */ + public $status; + + /** + * @access public + * @var tnsLineItemSummaryReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var string + */ + public $webPropertyCode; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var string + */ + public $lastModifiedByApp; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var boolean + */ + public $isPrioritizedPreferredDealsEnabled; + + /** + * @access public + * @var integer + */ + public $adExchangeAuctionOpeningPriority; /** * @access public @@ -3498,6 +3871,12 @@ class LineItemSummary { */ public $customFieldValues; + /** + * @access public + * @var boolean + */ + public $isSetTopBoxEnabled; + /** * @access public * @var boolean @@ -3506,41 +3885,27 @@ class LineItemSummary { /** * @access public - * @var string + * @var SetTopBoxInfo */ - public $LineItemSummaryType; - private $_parameterMap = array( - "LineItemSummary.Type" => "LineItemSummaryType", - ); + public $setTopBoxDisplayInfo; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * @access public + * @var Goal */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $primaryGoal; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var Goal[] */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $secondaryGoals; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var GrpSettings */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $grpSettings; /** * Gets the namesapce of this class @@ -3558,7 +3923,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = null) { $this->orderId = $orderId; $this->id = $id; $this->name = $name; @@ -3575,9 +3940,6 @@ public function __construct($orderId = null, $id = null, $name = null, $external $this->frequencyCaps = $frequencyCaps; $this->lineItemType = $lineItemType; $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; $this->costPerUnit = $costPerUnit; $this->valueCostPerUnit = $valueCostPerUnit; $this->costType = $costType; @@ -3585,12 +3947,14 @@ public function __construct($orderId = null, $id = null, $name = null, $external $this->discount = $discount; $this->contractedUnitsBought = $contractedUnitsBought; $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; $this->targetPlatform = $targetPlatform; $this->environmentType = $environmentType; $this->companionDeliveryOption = $companionDeliveryOption; $this->creativePersistenceType = $creativePersistenceType; $this->allowOverbook = $allowOverbook; $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; $this->reserveAtCreation = $reserveAtCreation; $this->stats = $stats; $this->deliveryIndicator = $deliveryIndicator; @@ -3610,8 +3974,12 @@ public function __construct($orderId = null, $id = null, $name = null, $external $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; $this->customFieldValues = $customFieldValues; + $this->isSetTopBoxEnabled = $isSetTopBoxEnabled; $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; } } @@ -3624,11 +3992,11 @@ public function __construct($orderId = null, $id = null, $name = null, $external * the location will be represented as just the base class, otherwise it will be * sub-classed correctly. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpLocation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Location"; /** @@ -3656,42 +4024,53 @@ class DfpLocation { public $displayName; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; } + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileCarrierTargeting"; + /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var boolean */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $isTargeted; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var Technology[] */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $mobileCarriers; /** * Gets the namesapce of this class @@ -3709,39 +4088,1172 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null, $LocationType = null) { - $this->id = $id; - $this->type = $type; - $this->canonicalParentId = $canonicalParentId; - $this->displayName = $displayName; - $this->LocationType = $LocationType; + public function __construct($isTargeted = null, $mobileCarriers = null) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; } } } -if (!class_exists("MobileCarrierTargeting", false)) { +if (!class_exists("MobileDeviceSubmodelTargeting", false)) { /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceSubmodelTargeting"; + + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + } + + } +} + +if (!class_exists("MobileDeviceTargeting", false)) { + /** + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceTargeting"; + + /** + * @access public + * @var Technology[] + */ + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Money"; + + /** + * @access public + * @var string + */ + public $currencyCode; + + /** + * @access public + * @var integer + */ + public $microAmount; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($currencyCode = null, $microAmount = null) { + $this->currencyCode = $currencyCode; + $this->microAmount = $microAmount; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OperatingSystemTargeting"; + + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $operatingSystems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $operatingSystems = null) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } + + } +} + +if (!class_exists("OperatingSystemVersionTargeting", false)) { + /** + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OperatingSystemVersionTargeting"; + + /** + * @access public + * @var Technology[] + */ + public $targetedOperatingSystemVersions; + + /** + * @access public + * @var Technology[] + */ + public $excludedOperatingSystemVersions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } + + } +} + +if (!class_exists("OrderError", false)) { + /** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderError"; + + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticError", false)) { + /** + * Errors associated with programmatic line items + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProgrammaticError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError"; + + /** + * @access public + * @var tnsProgrammaticErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProspectiveLineItem", false)) { + /** + * Represents a prospective line item to be forecasted. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProspectiveLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProspectiveLineItem"; + + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItem = null, $advertiserId = null) { + $this->lineItem = $lineItem; + $this->advertiserId = $advertiserId; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("QuotaError", false)) { + /** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RegExError", false)) { + /** + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RegExError"; + + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class MobileCarrierTargeting { + class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileCarrierTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxInfo", false)) { + /** + * Contains data used to display information synchronized with Canoe for set-top box enabled + * {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxInfo"; + + /** + * @access public + * @var tnsSetTopBoxSyncStatus + */ + public $syncStatus; + + /** + * @access public + * @var tnsCanoeSyncResult + */ + public $lastSyncResult; + + /** + * @access public + * @var string + */ + public $lastSyncCanoeResponseMessage; + + /** + * @access public + * @var string + */ + public $nielsenProductCategoryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($syncStatus = null, $lastSyncResult = null, $lastSyncCanoeResponseMessage = null, $nielsenProductCategoryCode = null) { + $this->syncStatus = $syncStatus; + $this->lastSyncResult = $lastSyncResult; + $this->lastSyncCanoeResponseMessage = $lastSyncCanoeResponseMessage; + $this->nielsenProductCategoryCode = $nielsenProductCategoryCode; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxLineItemError extends ApiError { - /** - * @access public - * @var boolean - */ - public $isTargeted; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError"; /** * @access public - * @var Technology[] + * @var tnsSetTopBoxLineItemErrorReason */ - public $mobileCarriers; + public $reason; /** * Gets the namesapce of this class @@ -3759,36 +5271,47 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { +if (!class_exists("Size", false)) { /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class MobileDeviceSubmodelTargeting { + class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Size"; /** * @access public - * @var Technology[] + * @var integer */ - public $targetedMobileDeviceSubmodels; + public $width; /** * @access public - * @var Technology[] + * @var integer */ - public $excludedMobileDeviceSubmodels; + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; /** * Gets the namesapce of this class @@ -3806,36 +5329,37 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + public function __construct($width = null, $height = null, $isAspectRatio = null) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; } } } -if (!class_exists("MobileDeviceTargeting", false)) { +if (!class_exists("SoapRequestHeader", false)) { /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class MobileDeviceTargeting { + class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileDeviceTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SoapRequestHeader"; /** * @access public - * @var Technology[] + * @var string */ - public $targetedMobileDevices; + public $networkCode; /** * @access public - * @var Technology[] + * @var string */ - public $excludedMobileDevices; + public $applicationName; /** * Gets the namesapce of this class @@ -3853,36 +5377,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; } } } -if (!class_exists("Money", false)) { +if (!class_exists("SoapResponseHeader", false)) { /** - * Represents a money amount. + * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Money { + class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Money"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SoapResponseHeader"; /** * @access public * @var string */ - public $currencyCode; + public $requestId; /** * @access public * @var integer */ - public $microAmount; + public $responseTime; /** * Gets the namesapce of this class @@ -3900,28 +5424,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; + public function __construct($requestId = null, $responseTime = null) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("StatementError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsStatementErrorReason */ public $reason; @@ -3941,34 +5465,52 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("Stats", false)) { /** - * Errors associated with violation of a NOT NULL check. + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullError extends ApiError { + class Stats { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Stats"; /** * @access public - * @var tnsNullErrorReason + * @var integer */ - public $reason; + public $impressionsDelivered; + + /** + * @access public + * @var integer + */ + public $clicksDelivered; + + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; /** * Gets the namesapce of this class @@ -3986,36 +5528,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($impressionsDelivered = null, $clicksDelivered = null, $videoCompletionsDelivered = null, $videoStartsDelivered = null) { + $this->impressionsDelivered = $impressionsDelivered; + $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("StringLengthError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError"; /** * @access public - * @var string + * @var tnsStringLengthErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -4033,85 +5571,63 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("OperatingSystemTargeting", false)) { +if (!class_exists("TargetingCriteriaBreakdown", false)) { /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. + * A single targeting criteria breakdown result. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class OperatingSystemTargeting { + class TargetingCriteriaBreakdown { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TargetingCriteriaBreakdown"; /** * @access public - * @var boolean + * @var tnsTargetingDimension */ - public $isTargeted; + public $targetingDimension; /** * @access public - * @var Technology[] + * @var integer */ - public $operatingSystems; + public $targetingCriteriaId; /** - * Gets the namesapce of this class - * @return the namespace of this class + * @access public + * @var string */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $targetingCriteriaName; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var boolean */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { - /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; + public $excluded; /** * @access public - * @var Technology[] + * @var integer */ - public $targetedOperatingSystemVersions; + public $availableUnits; /** * @access public - * @var Technology[] + * @var integer */ - public $excludedOperatingSystemVersions; + public $matchedUnits; /** * Gets the namesapce of this class @@ -4129,120 +5645,77 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + public function __construct($targetingDimension = null, $targetingCriteriaId = null, $targetingCriteriaName = null, $excluded = null, $availableUnits = null, $matchedUnits = null) { + $this->targetingDimension = $targetingDimension; + $this->targetingCriteriaId = $targetingCriteriaId; + $this->targetingCriteriaName = $targetingCriteriaName; + $this->excluded = $excluded; + $this->availableUnits = $availableUnits; + $this->matchedUnits = $matchedUnits; } } } -if (!class_exists("OrderError", false)) { +if (!class_exists("Targeting", false)) { /** - * Lists all errors associated with orders. + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class OrderError extends ApiError { + class Targeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Targeting"; /** * @access public - * @var tnsOrderErrorReason + * @var GeoTargeting */ - public $reason; + public $geoTargeting; /** - * Gets the namesapce of this class - * @return the namespace of this class + * @access public + * @var InventoryTargeting */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $inventoryTargeting; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var DayPartTargeting */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ParseError", false)) { - /** - * Lists errors related to parsing. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ParseError extends ApiError { + public $dayPartTargeting; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; /** * @access public - * @var tnsParseErrorReason + * @var CustomCriteriaSet */ - public $reason; + public $customTargeting; /** - * Gets the namesapce of this class - * @return the namespace of this class + * @access public + * @var UserDomainTargeting */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $userDomainTargeting; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var ContentTargeting */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; + public $contentTargeting; /** * @access public - * @var tnsPermissionErrorReason + * @var VideoPositionTargeting */ - public $reason; + public $videoPositionTargeting; /** * Gets the namesapce of this class @@ -4260,33 +5733,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; } } } -if (!class_exists("PublisherQueryLanguageContextError", false)) { +if (!class_exists("TeamError", false)) { /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. + * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextError extends ApiError { + class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TeamError"; /** * @access public - * @var tnsPublisherQueryLanguageContextErrorReason + * @var tnsTeamErrorReason */ public $reason; @@ -4306,35 +5780,39 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { +if (!class_exists("Technology", false)) { /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. + * Represents a technology entity that can be targeted. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxError extends ApiError { + class Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Technology"; /** * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason + * @var integer */ - public $reason; + public $id; + + /** + * @access public + * @var string + */ + public $name; /** * Gets the namesapce of this class @@ -4352,33 +5830,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; } } } -if (!class_exists("QuotaError", false)) { +if (!class_exists("TechnologyTargetingError", false)) { /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. + * Technology targeting validation errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaError extends ApiError { + class TechnologyTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargetingError"; /** * @access public - * @var tnsQuotaErrorReason + * @var tnsTechnologyTargetingErrorReason */ public $reason; @@ -4398,34 +5871,39 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RangeError", false)) { +if (!class_exists("TimeOfDay", false)) { /** - * A list of all errors associated with the Range constraint. + * Represents a specific time in a day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RangeError extends ApiError { + class TimeOfDay { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeOfDay"; /** * @access public - * @var tnsRangeErrorReason + * @var integer */ - public $reason; + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; /** * Gets the namesapce of this class @@ -4443,35 +5921,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($hour = null, $minute = null) { + $this->hour = $hour; + $this->minute = $minute; } } } -if (!class_exists("RegExError", false)) { +if (!class_exists("TypeError", false)) { /** - * Caused by supplying a value for an object attribute that does not conform - * to a documented valid regular expression. + * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RegExError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError"; + class TypeError extends ApiError { - /** - * @access public - * @var tnsRegExErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TypeError"; /** * Gets the namesapce of this class @@ -4489,34 +5956,26 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredCollectionError", false)) { +if (!class_exists("UniqueError", false)) { /** - * A list of all errors to be used for validating sizes of collections. + * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredCollectionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; + class UniqueError extends ApiError { - /** - * @access public - * @var tnsRequiredCollectionErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UniqueError"; /** * Gets the namesapce of this class @@ -4534,34 +5993,39 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredError", false)) { +if (!class_exists("UserDomainTargeting", false)) { /** - * Errors due to missing required field. + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredError extends ApiError { + class UserDomainTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargeting"; /** * @access public - * @var tnsRequiredErrorReason + * @var string[] */ - public $reason; + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; /** * Gets the namesapce of this class @@ -4579,33 +6043,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($domains = null, $targeted = null) { + $this->domains = $domains; + $this->targeted = $targeted; } } } -if (!class_exists("RequiredNumberError", false)) { +if (!class_exists("UserDomainTargetingError", false)) { /** - * A list of all errors to be used in conjunction with required number - * validators. + * Lists all errors related to user domain targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredNumberError extends ApiError { + class UserDomainTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError"; /** * @access public - * @var tnsRequiredNumberErrorReason + * @var tnsUserDomainTargetingErrorReason */ public $reason; @@ -4625,34 +6084,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredSizeError", false)) { +if (!class_exists("Value", false)) { /** - * A list of all errors to be used for validating {@link Size}. + * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredSizeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError"; + class Value { - /** - * @access public - * @var tnsRequiredSizeErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; /** * Gets the namesapce of this class @@ -4670,34 +6122,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("ReservationDetailsError", false)) { +if (!class_exists("VideoPosition", false)) { /** - * Lists all errors associated with LineItem's reservation details. + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ReservationDetailsError extends ApiError { + class VideoPosition { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReservationDetailsError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition"; /** * @access public - * @var tnsReservationDetailsErrorReason + * @var tnsVideoPositionType */ - public $reason; + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; /** * Gets the namesapce of this class @@ -4715,34 +6168,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($positionType = null, $midrollIndex = null) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; } } } -if (!class_exists("ServerError", false)) { +if (!class_exists("VideoPositionTargeting", false)) { /** - * Errors related to the server. + * Represents positions within and around a video where ads can be targeted to. + *

    + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerError extends ApiError { + class VideoPositionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTargeting"; /** * @access public - * @var tnsServerErrorReason + * @var VideoPositionTarget[] */ - public $reason; + public $targetedPositions; /** * Gets the namesapce of this class @@ -4760,48 +6213,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($targetedPositions = null) { + $this->targetedPositions = $targetedPositions; } } } -if (!class_exists("Size", false)) { +if (!class_exists("VideoPositionWithinPod", false)) { /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

    - * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; + class VideoPositionWithinPod { - /** - * @access public - * @var integer - */ - public $width; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionWithinPod"; /** * @access public * @var integer */ - public $height; - - /** - * @access public - * @var boolean - */ - public $isAspectRatio; + public $index; /** * Gets the namesapce of this class @@ -4819,43 +6255,41 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; + public function __construct($index = null) { + $this->index = $index; } } } -if (!class_exists("SoapRequestHeader", false)) { +if (!class_exists("VideoPositionTarget", false)) { /** - * Represents the SOAP request header used by API requests. + * Represents the options for targetable positions within a video. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class SoapRequestHeader { + class VideoPositionTarget { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTarget"; /** * @access public - * @var string + * @var VideoPosition */ - public $networkCode; + public $videoPosition; /** * @access public - * @var string + * @var tnsVideoBumperType */ - public $applicationName; + public $videoBumperType; /** * @access public - * @var Authentication + * @var VideoPositionWithinPod */ - public $authentication; + public $videoPositionWithinPod; /** * Gets the namesapce of this class @@ -4873,37 +6307,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; + public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; } } } -if (!class_exists("SoapResponseHeader", false)) { +if (!class_exists("AdUnitAfcSizeErrorReason", false)) { /** - * Represents the SOAP request header used by API responses. + * The supplied Afc size is not valid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class SoapResponseHeader { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; - - /** - * @access public - * @var string - */ - public $requestId; + class AdUnitAfcSizeErrorReason { - /** - * @access public - * @var integer - */ - public $responseTime; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitAfcSizeError.Reason"; /** * Gets the namesapce of this class @@ -4921,30 +6343,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; + public function __construct() { } } } -if (!class_exists("StatementError", false)) { +if (!class_exists("AdUnitCodeErrorReason", false)) { /** - * An error that occurs while parsing {@link Statement} objects. + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; + class AdUnitCodeErrorReason { - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitCodeError.Reason"; /** * Gets the namesapce of this class @@ -4962,53 +6379,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Stats", false)) { +if (!class_exists("ApiVersionErrorReason", false)) { /** - * {@code Stats} contains trafficking statistics for {@link LineItem} and - * {@link LineItemCreativeAssociation} objects + * Indicates that the operation is not allowed in the version the request + * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Stats { + class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Stats"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; /** - * @access public - * @var integer + * Gets the namesapce of this class + * @return the namespace of this class */ - public $impressionsDelivered; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var integer + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $clicksDelivered; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var integer - */ - public $videoCompletionsDelivered; + public function __construct() { + } - /** - * @access public - * @var integer - */ - public $videoStartsDelivered; + } +} + +if (!class_exists("AudienceExtensionErrorReason", false)) { + /** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceExtensionError.Reason"; /** * Gets the namesapce of this class @@ -5026,32 +6446,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($impressionsDelivered = null, $clicksDelivered = null, $videoCompletionsDelivered = null, $videoStartsDelivered = null) { - $this->impressionsDelivered = $impressionsDelivered; - $this->clicksDelivered = $clicksDelivered; - $this->videoCompletionsDelivered = $videoCompletionsDelivered; - $this->videoStartsDelivered = $videoStartsDelivered; + public function __construct() { } } } -if (!class_exists("StringLengthError", false)) { +if (!class_exists("AuthenticationErrorReason", false)) { /** - * Errors for Strings which do not meet given length constraints. + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; + class AuthenticationErrorReason { - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; /** * Gets the namesapce of this class @@ -5069,77 +6482,55 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Targeting", false)) { +if (!class_exists("CanoeSyncResult", false)) { /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. + * Represents sync result types between set-top box enabled {@link LineItem line items} and Canoe. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Targeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Targeting"; - - /** - * @access public - * @var GeoTargeting - */ - public $geoTargeting; - - /** - * @access public - * @var InventoryTargeting - */ - public $inventoryTargeting; + class CanoeSyncResult { - /** - * @access public - * @var DayPartTargeting - */ - public $dayPartTargeting; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CanoeSyncResult"; /** - * @access public - * @var TechnologyTargeting + * Gets the namesapce of this class + * @return the namespace of this class */ - public $technologyTargeting; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var CustomCriteriaSet + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $customTargeting; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var UserDomainTargeting - */ - public $userDomainTargeting; + public function __construct() { + } - /** - * @access public - * @var ContentTargeting - */ - public $contentTargeting; + } +} - /** - * @access public - * @var VideoPositionTargeting - */ - public $videoPositionTargeting; +if (!class_exists("ClickTrackingLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ClickTrackingLineItemError.Reason"; /** * Gets the namesapce of this class @@ -5157,36 +6548,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; + public function __construct() { } } } -if (!class_exists("TeamError", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Errors related to a Team. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError"; + class CollectionSizeErrorReason { - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -5204,78 +6581,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Technology", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * Represents a technology entity that can be targeted. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; - - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + class CommonErrorReason { - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -5293,31 +6614,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; + public function __construct() { } } } -if (!class_exists("TechnologyTargetingError", false)) { +if (!class_exists("CompanionDeliveryOption", false)) { /** - * Technology targeting validation errors. + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TechnologyTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TechnologyTargetingError"; + class CompanionDeliveryOption { - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CompanionDeliveryOption"; /** * Gets the namesapce of this class @@ -5335,40 +6648,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("TimeOfDay", false)) { +if (!class_exists("CompanyCreditStatusErrorReason", false)) { /** - * Represents a specific time in a day. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; + class CompanyCreditStatusErrorReason { - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CompanyCreditStatusError.Reason"; /** * Gets the namesapce of this class @@ -5386,24 +6681,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; + public function __construct() { } } } -if (!class_exists("TypeError", false)) { +if (!class_exists("ComputedStatus", false)) { /** - * An error for a field which is an invalid type. + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TypeError extends ApiError { + class ComputedStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ComputedStatus"; /** * Gets the namesapce of this class @@ -5421,27 +6715,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("UniqueError", false)) { +if (!class_exists("ContentMetadataTargetingErrorReason", false)) { /** - * An error for a field which must satisfy a uniqueness constraint + * The reasons for the metadata targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UniqueError extends ApiError { + class ContentMetadataTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5459,40 +6748,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("UserDomainTargeting", false)) { +if (!class_exists("CostType", false)) { /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. + * Describes the {@link LineItem} actions that are billable. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargeting"; - - /** - * @access public - * @var string[] - */ - public $domains; + class CostType { - /** - * @access public - * @var boolean - */ - public $targeted; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CostType"; /** * Gets the namesapce of this class @@ -5510,30 +6781,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; + public function __construct() { } } } -if (!class_exists("UserDomainTargetingError", false)) { +if (!class_exists("CreativeErrorReason", false)) { /** - * Lists all errors related to user domain targeting for a line item. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargetingError"; + class CreativeErrorReason { - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeError.Reason"; /** * Gets the namesapce of this class @@ -5551,66 +6814,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Value", false)) { +if (!class_exists("CreativeRotationType", false)) { /** - * {@code Value} represents a value. + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + class CreativeRotationType { - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeRotationType"; /** * Gets the namesapce of this class @@ -5628,36 +6848,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } } -if (!class_exists("VideoPosition", false)) { +if (!class_exists("CreativeSizeType", false)) { /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; + class CreativeSizeType { - /** - * @access public - * @var integer - */ - public $midrollIndex; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeSizeType"; /** * Gets the namesapce of this class @@ -5675,34 +6882,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; + public function __construct() { } } } -if (!class_exists("VideoPositionTargeting", false)) { +if (!class_exists("CrossSellErrorReason", false)) { /** - * Represents positions within and around a video where ads can be targeted to. - *

    - * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPositionTargeting"; + * The reason of the error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CrossSellErrorReason { - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CrossSellError.Reason"; /** * Gets the namesapce of this class @@ -5720,31 +6915,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; + public function __construct() { } } } -if (!class_exists("VideoPositionWithinPod", false)) { +if (!class_exists("CustomCriteriaComparisonOperator", false)) { /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPositionWithinPod"; + class CustomCriteriaComparisonOperator { - /** - * @access public - * @var integer - */ - public $index; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -5762,41 +6948,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($index = null) { - $this->index = $index; + public function __construct() { } } } -if (!class_exists("VideoPositionTarget", false)) { +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { /** - * Represents the options for targetable positions within a video. + * Specifies the available logical operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; + class CustomCriteriaSetLogicalOperator { - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; /** * Gets the namesapce of this class @@ -5814,25 +6981,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; + public function __construct() { } } } -if (!class_exists("AdUnitAfcSizeErrorReason", false)) { +if (!class_exists("CustomFieldValueErrorReason", false)) { /** - * The supplied Afc size is not valid. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AdUnitAfcSizeErrorReason { + class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitAfcSizeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError.Reason"; /** * Gets the namesapce of this class @@ -5856,19 +7020,16 @@ public function __construct() { } } -if (!class_exists("AdUnitCodeErrorReason", false)) { +if (!class_exists("CustomTargetingErrorReason", false)) { /** - * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, - * underscores, hyphens, periods, asterisks, double quotes, back slashes, - * forward slashes, exclamations, left angle brackets, colons and - * parentheses are allowed. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AdUnitCodeErrorReason { + class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AdUnitCodeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5892,17 +7053,16 @@ public function __construct() { } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class AudienceSegmentCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -5926,16 +7086,16 @@ public function __construct() { } } -if (!class_exists("AudienceExtensionErrorReason", false)) { +if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { /** - * Specific audience extension error reasons. + * {@link ApiErrorReason} enum for date time range targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AudienceExtensionErrorReason { + class DateTimeRangeTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceExtensionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5959,19 +7119,16 @@ public function __construct() { } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("DayOfWeek", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * Days of the week. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class DayOfWeek { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayOfWeek"; /** * Gets the namesapce of this class @@ -5995,16 +7152,16 @@ public function __construct() { } } -if (!class_exists("ClickTrackingLineItemErrorReason", false)) { +if (!class_exists("DayPartTargetingErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClickTrackingLineItemErrorReason { + class DayPartTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClickTrackingLineItemError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayPartTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6028,16 +7185,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("DeliveryTimeZone", false)) { /** - * Describes reasons for common errors + * Represents the time zone to be used for {@link DayPartTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class DeliveryTimeZone { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryTimeZone"; /** * Gets the namesapce of this class @@ -6061,17 +7218,17 @@ public function __construct() { } } -if (!class_exists("CompanionDeliveryOption", false)) { +if (!class_exists("DeliveryRateType", false)) { /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CompanionDeliveryOption { + class DeliveryRateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanionDeliveryOption"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryRateType"; /** * Gets the namesapce of this class @@ -6095,16 +7252,16 @@ public function __construct() { } } -if (!class_exists("CompanyCreditStatusErrorReason", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CompanyCreditStatusErrorReason { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanyCreditStatusError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -6128,17 +7285,16 @@ public function __construct() { } } -if (!class_exists("ComputedStatus", false)) { +if (!class_exists("EnvironmentType", false)) { /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. + * Enum for the valid environments in which ads can be shown. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ComputedStatus { + class EnvironmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ComputedStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EnvironmentType"; /** * Gets the namesapce of this class @@ -6162,16 +7318,16 @@ public function __construct() { } } -if (!class_exists("ContentMetadataTargetingErrorReason", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * The reasons for the metadata targeting error. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ContentMetadataTargetingErrorReason { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -6195,16 +7351,16 @@ public function __construct() { } } -if (!class_exists("CostType", false)) { +if (!class_exists("ForecastErrorReason", false)) { /** - * Describes the {@link LineItem} actions that are billable. + * Reason why a forecast could not be retrieved. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CostType { + class ForecastErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CostType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ForecastError.Reason"; /** * Gets the namesapce of this class @@ -6228,16 +7384,16 @@ public function __construct() { } } -if (!class_exists("CreativeErrorReason", false)) { +if (!class_exists("FrequencyCapErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeErrorReason { + class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FrequencyCapError.Reason"; /** * Gets the namesapce of this class @@ -6261,17 +7417,16 @@ public function __construct() { } } -if (!class_exists("CreativeRotationType", false)) { +if (!class_exists("GenericTargetingErrorReason", false)) { /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeRotationType { + class GenericTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeRotationType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GenericTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6295,17 +7450,16 @@ public function __construct() { } } -if (!class_exists("CreativeSizeType", false)) { +if (!class_exists("GeoTargetingErrorReason", false)) { /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeSizeType { + class GeoTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSizeType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeoTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6329,16 +7483,16 @@ public function __construct() { } } -if (!class_exists("CrossSellErrorReason", false)) { +if (!class_exists("GoalType", false)) { /** - * The reason of the error. + * Specifies the type of the goal for a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CrossSellErrorReason { + class GoalType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CrossSellError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GoalType"; /** * Gets the namesapce of this class @@ -6362,16 +7516,16 @@ public function __construct() { } } -if (!class_exists("CustomCriteriaComparisonOperator", false)) { +if (!class_exists("GrpAge", false)) { /** - * Specifies the available comparison operators. + * The age range associated with a GRP demographic forecast. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCriteriaComparisonOperator { + class GrpAge { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpAge"; /** * Gets the namesapce of this class @@ -6395,16 +7549,16 @@ public function __construct() { } } -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { +if (!class_exists("GrpGender", false)) { /** - * Specifies the available logical operators. + * The demographic gender associated with a GRP demographic forecast. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCriteriaSetLogicalOperator { + class GrpGender { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpGender"; /** * Gets the namesapce of this class @@ -6428,16 +7582,16 @@ public function __construct() { } } -if (!class_exists("CustomFieldValueErrorReason", false)) { +if (!class_exists("GrpProvider", false)) { /** - * The reasons for the target error. + * Represents available GRP providers that a line item will have its target demographic measured by. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomFieldValueErrorReason { + class GrpProvider { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpProvider"; /** * Gets the namesapce of this class @@ -6461,16 +7615,16 @@ public function __construct() { } } -if (!class_exists("CustomTargetingErrorReason", false)) { +if (!class_exists("GrpSettingsErrorReason", false)) { /** - * The reasons for the target error. + * Reason for GRP settings error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomTargetingErrorReason { + class GrpSettingsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError.Reason"; /** * Gets the namesapce of this class @@ -6494,16 +7648,16 @@ public function __construct() { } } -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { +if (!class_exists("GrpTargetGender", false)) { /** - * Specifies the available comparison operators. + * Represents the target gender for a GRP demographic targeted line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AudienceSegmentCriteriaComparisonOperator { + class GrpTargetGender { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpTargetGender"; /** * Gets the namesapce of this class @@ -6527,16 +7681,16 @@ public function __construct() { } } -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { +if (!class_exists("GrpUnitType", false)) { /** - * {@link ApiErrorReason} enum for date time range targeting error. + * Type of unit represented in a GRP demographic breakdown. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DateTimeRangeTargetingErrorReason { + class GrpUnitType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpUnitType"; /** * Gets the namesapce of this class @@ -6560,16 +7714,16 @@ public function __construct() { } } -if (!class_exists("DayOfWeek", false)) { +if (!class_exists("ImageErrorReason", false)) { /** - * Days of the week. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DayOfWeek { + class ImageErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DayOfWeek"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError.Reason"; /** * Gets the namesapce of this class @@ -6593,16 +7747,16 @@ public function __construct() { } } -if (!class_exists("DayPartTargetingErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the target error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DayPartTargetingErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DayPartTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -6626,16 +7780,16 @@ public function __construct() { } } -if (!class_exists("DeliveryTimeZone", false)) { +if (!class_exists("InvalidUrlErrorReason", false)) { /** - * Represents the time zone to be used for {@link DayPartTargeting}. + * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeliveryTimeZone { + class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeliveryTimeZone"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidUrlError.Reason"; /** * Gets the namesapce of this class @@ -6659,17 +7813,16 @@ public function __construct() { } } -if (!class_exists("DeliveryRateType", false)) { +if (!class_exists("InventoryTargetingErrorReason", false)) { /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeliveryRateType { + class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeliveryRateType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6693,16 +7846,16 @@ public function __construct() { } } -if (!class_exists("EnvironmentType", false)) { +if (!class_exists("InventoryUnitErrorReason", false)) { /** - * Enum for the valid environments in which ads can be shown. + * Possible reasons for the error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class EnvironmentType { + class InventoryUnitErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EnvironmentType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitError.Reason"; /** * Gets the namesapce of this class @@ -6726,16 +7879,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** - * A feature is being used that is not enabled on the current network. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureErrorReason { + class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** * Gets the namesapce of this class @@ -6759,16 +7912,16 @@ public function __construct() { } } -if (!class_exists("ForecastErrorReason", false)) { +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { /** - * Reason why a forecast could not be retrieved. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ForecastErrorReason { + class LineItemActivityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ForecastError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; /** * Gets the namesapce of this class @@ -6792,16 +7945,16 @@ public function __construct() { } } -if (!class_exists("FrequencyCapErrorReason", false)) { +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FrequencyCapErrorReason { + class LineItemCreativeAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; /** * Gets the namesapce of this class @@ -6825,16 +7978,17 @@ public function __construct() { } } -if (!class_exists("GenericTargetingErrorReason", false)) { +if (!class_exists("LineItemDiscountType", false)) { /** - * The reasons for the target error. + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GenericTargetingErrorReason { + class LineItemDiscountType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GenericTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemDiscountType"; /** * Gets the namesapce of this class @@ -6858,16 +8012,16 @@ public function __construct() { } } -if (!class_exists("GeoTargetingErrorReason", false)) { +if (!class_exists("LineItemErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GeoTargetingErrorReason { + class LineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeoTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemError.Reason"; /** * Gets the namesapce of this class @@ -6891,16 +8045,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("LineItemFlightDateErrorReason", false)) { /** - * The single reason for the internal API error. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiErrorReason { + class LineItemFlightDateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; /** * Gets the namesapce of this class @@ -6924,16 +8078,16 @@ public function __construct() { } } -if (!class_exists("InvalidUrlErrorReason", false)) { +if (!class_exists("LineItemOperationErrorReason", false)) { /** - * The URL contains invalid characters. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InvalidUrlErrorReason { + class LineItemOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemOperationError.Reason"; /** * Gets the namesapce of this class @@ -6957,16 +8111,16 @@ public function __construct() { } } -if (!class_exists("InventoryTargetingErrorReason", false)) { +if (!class_exists("LineItemSummaryReservationStatus", false)) { /** - * The reasons for the target error. + * Specifies the reservation status of the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryTargetingErrorReason { + class LineItemSummaryReservationStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemSummary.ReservationStatus"; /** * Gets the namesapce of this class @@ -6990,16 +8144,17 @@ public function __construct() { } } -if (!class_exists("InventoryUnitErrorReason", false)) { +if (!class_exists("LineItemType", false)) { /** - * Possible reasons for the error. + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryUnitErrorReason { + class LineItemType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryUnitError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemType"; /** * Gets the namesapce of this class @@ -7023,16 +8178,17 @@ public function __construct() { } } -if (!class_exists("LabelEntityAssociationErrorReason", false)) { +if (!class_exists("MinuteOfHour", false)) { /** - * The reasons for the target error. + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelEntityAssociationErrorReason { + class MinuteOfHour { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MinuteOfHour"; /** * Gets the namesapce of this class @@ -7056,16 +8212,16 @@ public function __construct() { } } -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemCreativeAssociationErrorReason { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -7089,17 +8245,16 @@ public function __construct() { } } -if (!class_exists("LineItemDiscountType", false)) { +if (!class_exists("NullErrorReason", false)) { /** - * Describes the possible discount types on the cost of booking a - * {@link LineItem}. + * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemDiscountType { + class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemDiscountType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError.Reason"; /** * Gets the namesapce of this class @@ -7123,16 +8278,16 @@ public function __construct() { } } -if (!class_exists("LineItemErrorReason", false)) { +if (!class_exists("OrderErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemErrorReason { + class OrderErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderError.Reason"; /** * Gets the namesapce of this class @@ -7156,16 +8311,16 @@ public function __construct() { } } -if (!class_exists("LineItemFlightDateErrorReason", false)) { +if (!class_exists("ParseErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemFlightDateErrorReason { + class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError.Reason"; /** * Gets the namesapce of this class @@ -7189,16 +8344,16 @@ public function __construct() { } } -if (!class_exists("LineItemOperationErrorReason", false)) { +if (!class_exists("PermissionErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemOperationErrorReason { + class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemOperationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError.Reason"; /** * Gets the namesapce of this class @@ -7222,18 +8377,26 @@ public function __construct() { } } -if (!class_exists("LineItemSummaryDuration", false)) { +if (!class_exists("CreativePersistenceType", false)) { /** - * Specifies the time period used for limiting the number of ads served for a - * {@link LineItem}. For valid and default values of duration for each line - * item type, see {@link LineItem#duration}. + * Specifies options to prevent ads from replacing or appearing with this + * line item. If persistence is set, this line item's ads will not be + * replaced over time, whether through AJAX or other means, such as + * companions of video ads. + * Additionally, if set to exclude none, other ads can be shown in any + * slots not being used by this line item. If set to exclude display ads, + * video ads can be shown, but no other display ads can be shown, even + * in slots that aren't used by this line item. If set to exclude video ads, + * video ads cannot be shown, but other display ads can be shown in unused + * slots. If set to exclude all ads, no other ads can be shown until the + * page is changed. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemSummaryDuration { + class CreativePersistenceType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemSummary.Duration"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativePersistenceType"; /** * Gets the namesapce of this class @@ -7257,16 +8420,16 @@ public function __construct() { } } -if (!class_exists("LineItemSummaryReservationStatus", false)) { +if (!class_exists("ProgrammaticErrorReason", false)) { /** - * Specifies the reservation status of the {@link LineItem}. + * Audience extension is not supported by programmatic line items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemSummaryReservationStatus { + class ProgrammaticErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemSummary.ReservationStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError.Reason"; /** * Gets the namesapce of this class @@ -7290,17 +8453,16 @@ public function __construct() { } } -if (!class_exists("LineItemType", false)) { +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemType { + class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** * Gets the namesapce of this class @@ -7324,17 +8486,16 @@ public function __construct() { } } -if (!class_exists("MinuteOfHour", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class MinuteOfHour { + class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MinuteOfHour"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** * Gets the namesapce of this class @@ -7358,16 +8519,26 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("QuotaErrorReason", false)) { /** - * The reasons for the target error. + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

    + * Another way to mitigate this error is to limit requests to 2 per second for + * Small Business networks, or 8 per second for Premium networks. Once again + * this does not guarantee that every request will succeed, but may help + * reduce the number of times you receive this error. + *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullErrorReason { + class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError.Reason"; /** * Gets the namesapce of this class @@ -7391,16 +8562,16 @@ public function __construct() { } } -if (!class_exists("NullErrorReason", false)) { +if (!class_exists("RangeErrorReason", false)) { /** - * The reasons for the validation error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullErrorReason { + class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError.Reason"; /** * Gets the namesapce of this class @@ -7424,16 +8595,16 @@ public function __construct() { } } -if (!class_exists("OrderErrorReason", false)) { +if (!class_exists("RegExErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class OrderErrorReason { + class RegExErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RegExError.Reason"; /** * Gets the namesapce of this class @@ -7457,16 +8628,16 @@ public function __construct() { } } -if (!class_exists("ParseErrorReason", false)) { +if (!class_exists("RequiredCollectionErrorReason", false)) { /** - * The reasons for the target error. + * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseErrorReason { + class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError.Reason"; /** * Gets the namesapce of this class @@ -7490,16 +8661,16 @@ public function __construct() { } } -if (!class_exists("PermissionErrorReason", false)) { +if (!class_exists("RequiredErrorReason", false)) { /** - * Describes reasons for permission errors. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionErrorReason { + class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError.Reason"; /** * Gets the namesapce of this class @@ -7523,26 +8694,16 @@ public function __construct() { } } -if (!class_exists("CreativePersistenceType", false)) { +if (!class_exists("RequiredNumberErrorReason", false)) { /** - * Specifies options to prevent ads from replacing or appearing with this - * line item. If persistence is set, this line item's ads will not be - * replaced over time, whether through AJAX or other means, such as - * companions of video ads. - * Additionally, if set to exclude none, other ads can be shown in any - * slots not being used by this line item. If set to exclude display ads, - * video ads can be shown, but no other display ads can be shown, even - * in slots that aren't used by this line item. If set to exclude video ads, - * video ads cannot be shown, but other display ads can be shown in unused - * slots. If set to exclude all ads, no other ads can be shown until the - * page is changed. + * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativePersistenceType { + class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativePersistenceType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError.Reason"; /** * Gets the namesapce of this class @@ -7566,16 +8727,17 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { +if (!class_exists("RequiredSizeErrorReason", false)) { /** - * The reasons for the target error. + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextErrorReason { + class RequiredSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredSizeError.Reason"; /** * Gets the namesapce of this class @@ -7599,16 +8761,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { +if (!class_exists("ReservationDetailsErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxErrorReason { + class ReservationDetailsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError.Reason"; /** * Gets the namesapce of this class @@ -7632,26 +8794,16 @@ public function __construct() { } } -if (!class_exists("QuotaErrorReason", false)) { +if (!class_exists("RoadblockingType", false)) { /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

    - * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

    + * Describes the roadblocking types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaErrorReason { + class RoadblockingType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RoadblockingType"; /** * Gets the namesapce of this class @@ -7675,16 +8827,16 @@ public function __construct() { } } -if (!class_exists("RangeErrorReason", false)) { +if (!class_exists("AudienceSegmentErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * Reason of the given {@link AudienceSegmentError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RangeErrorReason { + class AudienceSegmentErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError.Reason"; /** * Gets the namesapce of this class @@ -7708,16 +8860,16 @@ public function __construct() { } } -if (!class_exists("RegExErrorReason", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RegExErrorReason { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RegExError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -7741,16 +8893,16 @@ public function __construct() { } } -if (!class_exists("RequiredCollectionErrorReason", false)) { +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { /** - * A required collection is missing. + * Reason for set-top box error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredCollectionErrorReason { + class SetTopBoxLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; /** * Gets the namesapce of this class @@ -7774,16 +8926,11 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredErrorReason { +if (!class_exists("SetTopBoxSyncStatus", false)) { + class SetTopBoxSyncStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxSyncStatus"; /** * Gets the namesapce of this class @@ -7807,16 +8954,17 @@ public function __construct() { } } -if (!class_exists("RequiredNumberErrorReason", false)) { +if (!class_exists("StartDateTimeType", false)) { /** - * Describes reasons for a number to be invalid. + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredNumberErrorReason { + class StartDateTimeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StartDateTimeType"; /** * Gets the namesapce of this class @@ -7840,17 +8988,16 @@ public function __construct() { } } -if (!class_exists("RequiredSizeErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredSizeErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -7874,16 +9021,16 @@ public function __construct() { } } -if (!class_exists("ReservationDetailsErrorReason", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ReservationDetailsErrorReason { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReservationDetailsError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -7907,16 +9054,16 @@ public function __construct() { } } -if (!class_exists("RoadblockingType", false)) { +if (!class_exists("TargetPlatform", false)) { /** - * Describes the roadblocking types. + * Indicates the target platform. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RoadblockingType { + class TargetPlatform { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RoadblockingType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TargetPlatform"; /** * Gets the namesapce of this class @@ -7940,16 +9087,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("TargetingDimension", false)) { /** - * Describes reasons for server errors + * Targeting dimension of targeting breakdowns. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class TargetingDimension { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TargetingDimension"; /** * Gets the namesapce of this class @@ -7973,17 +9120,16 @@ public function __construct() { } } -if (!class_exists("StartDateTimeType", false)) { +if (!class_exists("TeamErrorReason", false)) { /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StartDateTimeType { + class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StartDateTimeType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TeamError.Reason"; /** * Gets the namesapce of this class @@ -8007,16 +9153,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("TechnologyTargetingErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class TechnologyTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; /** * Gets the namesapce of this class @@ -8040,16 +9186,16 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("TimeUnit", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * Represent the possible time units for frequency capping. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthErrorReason { + class TimeUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeUnit"; /** * Gets the namesapce of this class @@ -8073,16 +9219,20 @@ public function __construct() { } } -if (!class_exists("TargetPlatform", false)) { +if (!class_exists("UnitType", false)) { /** - * Indicates the target platform. + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TargetPlatform { + class UnitType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TargetPlatform"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnitType"; /** * Gets the namesapce of this class @@ -8106,16 +9256,16 @@ public function __construct() { } } -if (!class_exists("TeamErrorReason", false)) { +if (!class_exists("UserDomainTargetingErrorReason", false)) { /** - * The reasons for the target error. + * {@link ApiErrorReason} enum for user domain targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamErrorReason { + class UserDomainTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; /** * Gets the namesapce of this class @@ -8139,16 +9289,19 @@ public function __construct() { } } -if (!class_exists("TechnologyTargetingErrorReason", false)) { +if (!class_exists("VideoBumperType", false)) { /** - * The reasons for the target error. + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TechnologyTargetingErrorReason { + class VideoBumperType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoBumperType"; /** * Gets the namesapce of this class @@ -8172,16 +9325,16 @@ public function __construct() { } } -if (!class_exists("TimeUnit", false)) { +if (!class_exists("VideoPositionType", false)) { /** - * Represent the possible time units for frequency capping. + * Represents a targetable position within a video. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TimeUnit { + class VideoPositionType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TimeUnit"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition.Type"; /** * Gets the namesapce of this class @@ -8205,20 +9358,35 @@ public function __construct() { } } -if (!class_exists("UnitType", false)) { +if (!class_exists("GetAvailabilityForecast", false)) { /** - * Indicates the type of unit used for defining a reservation. The - * {@link CostType} can differ from the {@link UnitType} - an - * ad can have an impression goal, but be billed by its click. Usually - * {@link CostType} and {@link UnitType} will refer to the - * same unit. + * Gets the availability forecast for a {@link ProspectiveLineItem}. An availability forecast + * reports the maximum number of available units that the line item can book, and the total + * number of units matching the line item's targeting. + * + *

    Note: Beginning in v201502, this replaces the previous getForecast method. + * + * @param lineItem the prospective line item (new or existing) to be forecasted for availability + * @param forecastOptions options controlling the forecast * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UnitType { + class GetAvailabilityForecast { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UnitType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProspectiveLineItem + */ + public $lineItem; + + /** + * @access public + * @var AvailabilityForecastOptions + */ + public $forecastOptions; /** * Gets the namesapce of this class @@ -8236,22 +9404,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($lineItem = null, $forecastOptions = null) { + $this->lineItem = $lineItem; + $this->forecastOptions = $forecastOptions; } } } -if (!class_exists("UserDomainTargetingErrorReason", false)) { +if (!class_exists("GetAvailabilityForecastResponse", false)) { /** - * {@link ApiErrorReason} enum for user domain targeting error. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UserDomainTargetingErrorReason { + class GetAvailabilityForecastResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AvailabilityForecast + */ + public $rval; /** * Gets the namesapce of this class @@ -8269,25 +9445,46 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("VideoBumperType", false)) { +if (!class_exists("GetAvailabilityForecastById", false)) { /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * Gets an {@link AvailabilityForecast} for an existing {@link LineItem} object. + * An availability forecast reports the maximum number of available units that the line item can + * be booked with, and also the total number of units matching the line item's targeting. + * + *

    Only line items having type {@link LineItemType#SPONSORSHIP} or + * {@link LineItemType#STANDARD} are valid. Other types will result in + * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * + *

    Note: Beginning in v201502, this replaces the previous getForecastById method. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @param forecastOptions options controlling the forecast * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoBumperType { + class GetAvailabilityForecastById { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoBumperType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var AvailabilityForecastOptions + */ + public $forecastOptions; /** * Gets the namesapce of this class @@ -8305,22 +9502,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($lineItemId = null, $forecastOptions = null) { + $this->lineItemId = $lineItemId; + $this->forecastOptions = $forecastOptions; } } } -if (!class_exists("VideoPositionType", false)) { +if (!class_exists("GetAvailabilityForecastByIdResponse", false)) { /** - * Represents a targetable position within a video. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPositionType { + class GetAvailabilityForecastByIdResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPosition.Type"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AvailabilityForecast + */ + public $rval; /** * Gets the namesapce of this class @@ -8338,41 +9543,41 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("GetForecast", false)) { +if (!class_exists("GetDeliveryForecast", false)) { /** - * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid - * values for {@link LineItem#lineItemType} are - * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other - * values will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * Gets the delivery forecast for a list of {@link ProspectiveLineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. * - * @param lineItem the target of the forecast. If {@link LineItem#id} is null - * or no line item exists with that ID, a forecast is computed for the - * the subject, predicting what would happen if it were added to the - * system. If a line item already exists with {@link LineItem#id}, the - * forecast is computed for the subject, predicting what would happen - * if the existing line item's settings were modified to match the - * subject. - * @return the forecasted traffic estimates + * @param lineItems line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetForecast { + class GetDeliveryForecast { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LineItem + * @var ProspectiveLineItem[] */ - public $lineItem; + public $lineItems; + + /** + * @access public + * @var DeliveryForecastOptions + */ + public $forecastOptions; /** * Gets the namesapce of this class @@ -8390,27 +9595,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; + public function __construct($lineItems = null, $forecastOptions = null) { + $this->lineItems = $lineItems; + $this->forecastOptions = $forecastOptions; } } } -if (!class_exists("GetForecastResponse", false)) { +if (!class_exists("GetDeliveryForecastResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetForecastResponse { + class GetDeliveryForecastResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Forecast + * @var DeliveryForecast */ public $rval; @@ -8437,28 +9643,34 @@ public function __construct($rval = null) { } } -if (!class_exists("GetForecastById", false)) { +if (!class_exists("GetDeliveryForecastByIds", false)) { /** - * Gets a {@link Forecast} for an existing {@link LineItem} object. Only - * line items having type {@link LineItemType#SPONSORSHIP} or - * {@link LineItemType#STANDARD} are valid. Other types will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * Gets the delivery forecast for a list of existing {@link LineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. * - * @param lineItemId the ID of a {@link LineItem} to run the forecast on. - * @return the forecasted traffic estimates + * @param lineItemIds the IDs of line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetForecastById { + class GetDeliveryForecastByIds { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var integer[] */ - public $lineItemId; + public $lineItemIds; + + /** + * @access public + * @var DeliveryForecastOptions + */ + public $forecastOptions; /** * Gets the namesapce of this class @@ -8476,27 +9688,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($lineItemId = null) { - $this->lineItemId = $lineItemId; + public function __construct($lineItemIds = null, $forecastOptions = null) { + $this->lineItemIds = $lineItemIds; + $this->forecastOptions = $forecastOptions; } } } -if (!class_exists("GetForecastByIdResponse", false)) { +if (!class_exists("GetDeliveryForecastByIdsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetForecastByIdResponse { + class GetDeliveryForecastByIdsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Forecast + * @var DeliveryForecast */ public $rval; @@ -8523,15 +9736,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("AdUnitAfcSizeError", false)) { /** * Caused by supplying sizes that are not compatible with the Afc sizes. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdUnitAfcSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitAfcSizeError"; /** @@ -8556,13 +9810,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -8572,11 +9825,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists the generic errors associated with {@link AdUnit#adUnitCode}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdUnitCodeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitCodeError"; /** @@ -8601,13 +9854,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -8617,11 +9869,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -8646,11 +9898,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -8661,11 +9912,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti * Represents a group of bandwidths that are logically organized by some well * known generic names such as 'Cable' or 'DSL'. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BandwidthGroup extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroup"; /** @@ -8684,11 +9935,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -8698,11 +9948,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -8727,10 +9977,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -8740,11 +9989,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an internet browser. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Browser extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Browser"; /** @@ -8775,13 +10024,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -8791,11 +10039,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $id = nu /** * Represents a Browser's language. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserLanguage extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguage"; /** @@ -8814,11 +10062,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -8832,11 +10079,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * criteria targeting tree is subject to the rules defined on * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaSet"; /** @@ -8867,11 +10114,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { + public function __construct($logicalOperator = null, $children = null) { parent::__construct(); $this->logicalOperator = $logicalOperator; $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -8882,11 +10128,11 @@ public function __construct($logicalOperator = null, $children = null, $CustomCr * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree * structure. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaLeaf extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaLeaf"; /** @@ -8905,9 +10151,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { + public function __construct() { parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -8917,11 +10162,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentCriteria"; /** @@ -8965,11 +10210,11 @@ public function __construct($operator = null, $audienceSegmentIds = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -8994,10 +10239,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9007,11 +10251,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -9036,10 +10280,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9049,11 +10292,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents a capability of a physical device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCapability extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapability"; /** @@ -9072,11 +10315,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9086,11 +10328,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents the category of a device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCategory extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategory"; /** @@ -9109,11 +10351,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9123,11 +10364,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a mobile device's manufacturer. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceManufacturer extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturer"; /** @@ -9146,11 +10387,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9161,11 +10401,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * {@code LineItem} is an advertiser's commitment to purchase a specific number * of ad impressions, clicks, or time. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItem extends LineItemSummary { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItem"; /** @@ -9190,7 +10430,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { + public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = null) { parent::__construct(); $this->targeting = $targeting; $this->orderId = $orderId; @@ -9209,9 +10449,6 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam $this->frequencyCaps = $frequencyCaps; $this->lineItemType = $lineItemType; $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; $this->costPerUnit = $costPerUnit; $this->valueCostPerUnit = $valueCostPerUnit; $this->costType = $costType; @@ -9219,12 +10456,14 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam $this->discount = $discount; $this->contractedUnitsBought = $contractedUnitsBought; $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; $this->targetPlatform = $targetPlatform; $this->environmentType = $environmentType; $this->companionDeliveryOption = $companionDeliveryOption; $this->creativePersistenceType = $creativePersistenceType; $this->allowOverbook = $allowOverbook; $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; $this->reserveAtCreation = $reserveAtCreation; $this->stats = $stats; $this->deliveryIndicator = $deliveryIndicator; @@ -9244,8 +10483,12 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; $this->customFieldValues = $customFieldValues; + $this->isSetTopBoxEnabled = $isSetTopBoxEnabled; $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; } } @@ -9256,11 +10499,11 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam * Represents a mobile carrier. * Carrier targeting is only available to DFP mobile publishers. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileCarrier extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrier"; /** @@ -9279,11 +10522,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9293,11 +10535,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a Mobile Device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDevice extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDevice"; /** @@ -9322,12 +10564,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->manufacturerCriterionId = $manufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9337,11 +10578,11 @@ public function __construct($manufacturerCriterionId = null, $id = null, $name = /** * Represents a mobile device submodel. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceSubmodel extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodel"; /** @@ -9372,13 +10613,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9388,11 +10628,11 @@ public function __construct($mobileDeviceCriterionId = null, $deviceManufacturer /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -9417,10 +10657,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9430,11 +10669,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an Operating System, such as Linux, Mac OS or Windows. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystem extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystem"; /** @@ -9453,11 +10692,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9467,11 +10705,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific version of an operating system. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemVersion extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersion"; /** @@ -9508,14 +10746,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->microVersion = $microVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9525,11 +10762,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $microVe /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -9554,10 +10791,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -9567,11 +10803,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -9596,10 +10832,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9611,11 +10846,11 @@ public function __construct($value = null, $ValueType = null) { * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} * or {@link CustomTargetingKey.Type#FREEFORM}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria"; /** @@ -9666,25 +10901,26 @@ public function __construct($keyId = null, $valueIds = null, $operator = null) { /** * ForecastService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastService extends DfpSoapClient { const SERVICE_NAME = "ForecastService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ForecastService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ForecastService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ForecastService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ForecastService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "AdUnitAfcSizeError" => "AdUnitAfcSizeError", "AdUnitCodeError" => "AdUnitCodeError", "AdUnitTargeting" => "AdUnitTargeting", @@ -9695,8 +10931,9 @@ class ForecastService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AppliedLabel" => "AppliedLabel", "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", + "AvailabilityForecast" => "AvailabilityForecast", + "AvailabilityForecastOptions" => "AvailabilityForecastOptions", "BandwidthGroup" => "BandwidthGroup", "BandwidthGroupTargeting" => "BandwidthGroupTargeting", "BaseCustomFieldValue" => "BaseCustomFieldValue", @@ -9706,7 +10943,7 @@ class ForecastService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContendingLineItem" => "ContendingLineItem", @@ -9733,6 +10970,8 @@ class ForecastService extends DfpSoapClient { "DayPartTargeting" => "DayPartTargeting", "DayPartTargetingError" => "DayPartTargetingError", "DeliveryData" => "DeliveryData", + "DeliveryForecastOptions" => "DeliveryForecastOptions", + "DeliveryForecast" => "DeliveryForecast", "DeliveryIndicator" => "DeliveryIndicator", "DeviceCapability" => "DeviceCapability", "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", @@ -9741,22 +10980,30 @@ class ForecastService extends DfpSoapClient { "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", - "Forecast" => "Forecast", "ForecastError" => "ForecastError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargeting" => "GeoTargeting", "GeoTargetingError" => "GeoTargetingError", + "Goal" => "Goal", + "GrpDemographicBreakdown" => "GrpDemographicBreakdown", + "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", "InventoryTargetingError" => "InventoryTargetingError", "InventoryUnitError" => "InventoryUnitError", "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", + "LineItemActivityAssociation" => "LineItemActivityAssociation", "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemDeliveryForecast" => "LineItemDeliveryForecast", "LineItem" => "LineItem", "LineItemError" => "LineItemError", "LineItemFlightDateError" => "LineItemFlightDateError", @@ -9773,7 +11020,6 @@ class ForecastService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OperatingSystem" => "OperatingSystem", "OperatingSystemTargeting" => "OperatingSystemTargeting", "OperatingSystemVersion" => "OperatingSystemVersion", @@ -9781,6 +11027,8 @@ class ForecastService extends DfpSoapClient { "OrderError" => "OrderError", "ParseError" => "ParseError", "PermissionError" => "PermissionError", + "ProgrammaticError" => "ProgrammaticError", + "ProspectiveLineItem" => "ProspectiveLineItem", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", @@ -9791,7 +11039,10 @@ class ForecastService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", + "SetTopBoxInfo" => "SetTopBoxInfo", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", "SetValue" => "SetValue", "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", @@ -9799,6 +11050,7 @@ class ForecastService extends DfpSoapClient { "StatementError" => "StatementError", "Stats" => "Stats", "StringLengthError" => "StringLengthError", + "TargetingCriteriaBreakdown" => "TargetingCriteriaBreakdown", "Targeting" => "Targeting", "TeamError" => "TeamError", "Technology" => "Technology", @@ -9819,7 +11071,9 @@ class ForecastService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CanoeSyncResult" => "CanoeSyncResult", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -9840,23 +11094,32 @@ class ForecastService extends DfpSoapClient { "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "DeliveryTimeZone" => "DeliveryTimeZone", "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GoalType" => "GoalType", + "GrpAge" => "GrpAge", + "GrpGender" => "GrpGender", + "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "GrpTargetGender" => "GrpTargetGender", + "GrpUnitType" => "GrpUnitType", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", "InventoryUnitError.Reason" => "InventoryUnitErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", "LineItemDiscountType" => "LineItemDiscountType", "LineItemError.Reason" => "LineItemErrorReason", "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemSummary.Duration" => "LineItemSummaryDuration", "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", "LineItemType" => "LineItemType", "MinuteOfHour" => "MinuteOfHour", @@ -9866,6 +11129,7 @@ class ForecastService extends DfpSoapClient { "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "CreativePersistenceType" => "CreativePersistenceType", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", @@ -9877,11 +11141,15 @@ class ForecastService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", + "SetTopBoxSyncStatus" => "SetTopBoxSyncStatus", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "TargetPlatform" => "TargetPlatform", + "TargetingDimension" => "TargetingDimension", "TeamError.Reason" => "TeamErrorReason", "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", "TimeUnit" => "TimeUnit", @@ -9889,10 +11157,14 @@ class ForecastService extends DfpSoapClient { "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", "VideoBumperType" => "VideoBumperType", "VideoPosition.Type" => "VideoPositionType", - "getForecast" => "GetForecast", - "getForecastResponse" => "GetForecastResponse", - "getForecastById" => "GetForecastById", - "getForecastByIdResponse" => "GetForecastByIdResponse", + "getAvailabilityForecast" => "GetAvailabilityForecast", + "getAvailabilityForecastResponse" => "GetAvailabilityForecastResponse", + "getAvailabilityForecastById" => "GetAvailabilityForecastById", + "getAvailabilityForecastByIdResponse" => "GetAvailabilityForecastByIdResponse", + "getDeliveryForecast" => "GetDeliveryForecast", + "getDeliveryForecastResponse" => "GetDeliveryForecastResponse", + "getDeliveryForecastByIds" => "GetDeliveryForecastByIds", + "getDeliveryForecastByIdsResponse" => "GetDeliveryForecastByIdsResponse", ); @@ -9907,38 +11179,65 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Gets a {@link Forecast} on a prospective {@link LineItem} object. Valid - * values for {@link LineItem#lineItemType} are - * {@link LineItemType#SPONSORSHIP} and {@link LineItemType#STANDARD}. Other - * values will result in - * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. + * Gets the availability forecast for a {@link ProspectiveLineItem}. An availability forecast + * reports the maximum number of available units that the line item can book, and the total + * number of units matching the line item's targeting. * - * @param lineItem the target of the forecast. If {@link LineItem#id} is null - * or no line item exists with that ID, a forecast is computed for the - * the subject, predicting what would happen if it were added to the - * system. If a line item already exists with {@link LineItem#id}, the - * forecast is computed for the subject, predicting what would happen - * if the existing line item's settings were modified to match the - * subject. - * @return the forecasted traffic estimates - */ - public function getForecast($lineItem) { - $args = new GetForecast($lineItem); - $result = $this->__soapCall("getForecast", array($args)); + *

    Note: Beginning in v201502, this replaces the previous getForecast method. + * + * @param lineItem the prospective line item (new or existing) to be forecasted for availability + * @param forecastOptions options controlling the forecast + */ + public function getAvailabilityForecast($lineItem, $forecastOptions) { + $args = new GetAvailabilityForecast($lineItem, $forecastOptions); + $result = $this->__soapCall("getAvailabilityForecast", array($args)); return $result->rval; } /** - * Gets a {@link Forecast} for an existing {@link LineItem} object. Only - * line items having type {@link LineItemType#SPONSORSHIP} or + * Gets an {@link AvailabilityForecast} for an existing {@link LineItem} object. + * An availability forecast reports the maximum number of available units that the line item can + * be booked with, and also the total number of units matching the line item's targeting. + * + *

    Only line items having type {@link LineItemType#SPONSORSHIP} or * {@link LineItemType#STANDARD} are valid. Other types will result in * {@link ReservationDetailsError.Reason#LINE_ITEM_TYPE_NOT_ALLOWED}. * + *

    Note: Beginning in v201502, this replaces the previous getForecastById method. + * * @param lineItemId the ID of a {@link LineItem} to run the forecast on. - * @return the forecasted traffic estimates + * @param forecastOptions options controlling the forecast + */ + public function getAvailabilityForecastById($lineItemId, $forecastOptions) { + $args = new GetAvailabilityForecastById($lineItemId, $forecastOptions); + $result = $this->__soapCall("getAvailabilityForecastById", array($args)); + return $result->rval; + } + /** + * Gets the delivery forecast for a list of {@link ProspectiveLineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. + * + * @param lineItems line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast + */ + public function getDeliveryForecast($lineItems, $forecastOptions) { + $args = new GetDeliveryForecast($lineItems, $forecastOptions); + $result = $this->__soapCall("getDeliveryForecast", array($args)); + return $result->rval; + } + /** + * Gets the delivery forecast for a list of existing {@link LineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. + * + * @param lineItemIds the IDs of line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast */ - public function getForecastById($lineItemId) { - $args = new GetForecastById($lineItemId); - $result = $this->__soapCall("getForecastById", array($args)); + public function getDeliveryForecastByIds($lineItemIds, $forecastOptions) { + $args = new GetDeliveryForecastByIds($lineItemIds, $forecastOptions); + $result = $this->__soapCall("getDeliveryForecastByIds", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201306/InventoryService.php b/src/Google/Api/Ads/Dfp/v201502/InventoryService.php similarity index 85% rename from src/Google/Api/Ads/Dfp/v201306/InventoryService.php rename to src/Google/Api/Ads/Dfp/v201502/InventoryService.php index 54bfafb06..453ccf7a8 100755 --- a/src/Google/Api/Ads/Dfp/v201306/InventoryService.php +++ b/src/Google/Api/Ads/Dfp/v201502/InventoryService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * Contains the AdSense configuration for an {@link AdUnit}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseSettings { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseSettings"; /** @@ -143,11 +143,11 @@ public function __construct($adSenseEnabled = null, $borderColor = null, $titleC * The property of the AdUnit that specifies how and from where the * AdSenseSettings are inherited. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseSettingsInheritedProperty { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseSettingsInheritedProperty"; /** @@ -183,51 +183,13 @@ public function __construct($value = null) { /** * Represents the actions that can be performed on {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitAction"; - /** - * @access public - * @var string - */ - public $AdUnitActionType; - private $_parameterMap = array( - "AdUnitAction.Type" => "AdUnitActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -244,8 +206,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdUnitActionType = null) { - $this->AdUnitActionType = $AdUnitActionType; + public function __construct() { } } @@ -258,11 +219,11 @@ public function __construct($AdUnitActionType = null) { * inventory in order to serve ads to it. An {@code AdUnit} can also be the * parent of other ad units in the inventory hierarchy. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnit"; /** @@ -403,6 +364,36 @@ class AdUnit { */ public $smartSizeMode; + /** + * @access public + * @var integer + */ + public $refreshRate; + + /** + * @access public + * @var boolean + */ + public $isSharedByDistributor; + + /** + * @access public + * @var CrossSellingDistributor + */ + public $crossSellingDistributor; + + /** + * @access public + * @var string + */ + public $externalSetTopBoxChannelId; + + /** + * @access public + * @var boolean + */ + public $isSetTopBoxEnabled; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -419,7 +410,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $parentId = null, $hasChildren = null, $parentPath = null, $name = null, $description = null, $targetWindow = null, $status = null, $adUnitCode = null, $adUnitSizes = null, $targetPlatform = null, $mobilePlatform = null, $explicitlyTargeted = null, $inheritedAdSenseSettings = null, $partnerId = null, $appliedLabelFrequencyCaps = null, $effectiveLabelFrequencyCaps = null, $appliedLabels = null, $effectiveAppliedLabels = null, $effectiveTeamIds = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $smartSizeMode = null) { + public function __construct($id = null, $parentId = null, $hasChildren = null, $parentPath = null, $name = null, $description = null, $targetWindow = null, $status = null, $adUnitCode = null, $adUnitSizes = null, $targetPlatform = null, $mobilePlatform = null, $explicitlyTargeted = null, $inheritedAdSenseSettings = null, $partnerId = null, $appliedLabelFrequencyCaps = null, $effectiveLabelFrequencyCaps = null, $appliedLabels = null, $effectiveAppliedLabels = null, $effectiveTeamIds = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $smartSizeMode = null, $refreshRate = null, $isSharedByDistributor = null, $crossSellingDistributor = null, $externalSetTopBoxChannelId = null, $isSetTopBoxEnabled = null) { $this->id = $id; $this->parentId = $parentId; $this->hasChildren = $hasChildren; @@ -443,6 +434,11 @@ public function __construct($id = null, $parentId = null, $hasChildren = null, $ $this->appliedTeamIds = $appliedTeamIds; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->smartSizeMode = $smartSizeMode; + $this->refreshRate = $refreshRate; + $this->isSharedByDistributor = $isSharedByDistributor; + $this->crossSellingDistributor = $crossSellingDistributor; + $this->externalSetTopBoxChannelId = $externalSetTopBoxChannelId; + $this->isSetTopBoxEnabled = $isSetTopBoxEnabled; } } @@ -452,11 +448,11 @@ public function __construct($id = null, $parentId = null, $hasChildren = null, $ /** * Captures a page of {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitPage"; /** @@ -506,11 +502,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * The summary of a parent {@link AdUnit}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitParent { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitParent"; /** @@ -525,6 +521,12 @@ class AdUnitParent { */ public $name; + /** + * @access public + * @var string + */ + public $adUnitCode; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -541,9 +543,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null) { + public function __construct($id = null, $name = null, $adUnitCode = null) { $this->id = $id; $this->name = $name; + $this->adUnitCode = $adUnitCode; } } @@ -557,11 +560,11 @@ public function __construct($id = null, $name = null) { *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -582,44 +585,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -636,11 +601,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -650,11 +614,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -679,13 +643,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -695,11 +658,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -708,44 +671,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -762,9 +687,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -776,11 +700,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -823,11 +747,11 @@ public function __construct($labelId = null, $isNegated = null) { /** * The action used for archiving {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ArchiveAdUnits extends AdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ArchiveAdUnits"; /** @@ -846,9 +770,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdUnitActionType = null) { + public function __construct() { parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; } } @@ -859,11 +782,11 @@ public function __construct($AdUnitActionType = null) { * The action used for assigning a group of {@link AdUnit} objects to a * {@link Placement}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AssignAdUnitsToPlacement extends AdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssignAdUnitsToPlacement"; /** @@ -888,63 +811,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($placementId = null, $AdUnitActionType = null) { + public function __construct($placementId = null) { parent::__construct(); $this->placementId = $placementId; - $this->AdUnitActionType = $AdUnitActionType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -962,27 +852,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * An error for an exception that occurred when authenticating. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsCollectionSizeErrorReason */ public $reason; @@ -1002,36 +896,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CommonError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; /** * @access public - * @var string + * @var tnsCommonErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -1049,29 +940,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("CommonError", false)) { +if (!class_exists("CreativeWrapperError", false)) { /** - * A place for common errors that can be used across services. + * Errors specific to creative wrappers. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CommonError extends ApiError { + class CreativeWrapperError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeWrapperError"; /** * @access public - * @var tnsCommonErrorReason + * @var tnsCreativeWrapperErrorReason */ public $reason; @@ -1091,32 +984,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeWrapperError", false)) { +if (!class_exists("CrossSellError", false)) { /** - * Errors specific to creative wrappers. + * Lists all errors associated with cross selling. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreativeWrapperError extends ApiError { + class CrossSellError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CrossSellError"; /** * @access public - * @var tnsCreativeWrapperErrorReason + * @var tnsCrossSellErrorReason */ public $reason; @@ -1136,34 +1028,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CrossSellError", false)) { +if (!class_exists("CrossSellingDistributor", false)) { /** - * Lists all errors associated with cross selling. + * Encapsulation of data describing a distributor network that has shared an ad unit with a + * content provider network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CrossSellError extends ApiError { + class CrossSellingDistributor { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CrossSellError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CrossSellingDistributor"; /** * @access public - * @var tnsCrossSellErrorReason + * @var string */ - public $reason; + public $networkName; /** * Gets the namesapce of this class @@ -1181,13 +1073,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($networkName = null) { + $this->networkName = $networkName; } } @@ -1197,11 +1084,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1251,11 +1138,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1319,11 +1206,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second /** * The action used for deactivating {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeactivateAdUnits extends AdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateAdUnits"; /** @@ -1342,9 +1229,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdUnitActionType = null) { + public function __construct() { parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; } } @@ -1355,11 +1241,11 @@ public function __construct($AdUnitActionType = null) { * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -1378,12 +1264,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1394,11 +1279,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1423,13 +1308,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1440,11 +1324,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents a limit on the number of times a single viewer can be exposed to * the same {@link LineItem} in a specified time period. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FrequencyCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCap"; /** @@ -1494,11 +1378,11 @@ public function __construct($maxImpressions = null, $numTimeUnits = null, $timeU /** * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError"; /** @@ -1523,13 +1407,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1541,11 +1424,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1570,13 +1453,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1586,11 +1468,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with a color attribute. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidColorError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidColorError"; /** @@ -1615,13 +1497,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1631,11 +1512,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists the generic errors associated with {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryUnitError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryUnitError"; /** @@ -1660,13 +1541,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1676,11 +1556,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors relating to the association of partner companies with inventory units. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryUnitPartnerAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryUnitPartnerAssociationError"; /** @@ -1705,13 +1585,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryUnitRefreshRateError", false)) { + /** + * Lists errors relating to {@link AdUnit#refreshRate}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class InventoryUnitRefreshRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitRefreshRateError"; + + /** + * @access public + * @var tnsInventoryUnitRefreshRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1724,11 +1647,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * particular ad in an ad unit. In most cases, it is a simple size with just a * width and a height (sometimes representing an aspect ratio). * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitSize { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitSize"; /** @@ -1785,11 +1708,11 @@ public function __construct($size = null, $environmentType = null, $companions = /** * An error specifically for InventoryUnitSizes. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryUnitSizesError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryUnitSizesError"; /** @@ -1814,13 +1737,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1830,11 +1752,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists the errors associated with the type of {@link AdUnit} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitTypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTypeError"; /** @@ -1859,13 +1781,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1878,11 +1799,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * units with this label that may be shown to a particular user over a time * unit. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LabelFrequencyCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelFrequencyCap"; /** @@ -1925,11 +1846,11 @@ public function __construct($frequencyCap = null, $labelId = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1954,13 +1875,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1970,11 +1890,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1999,57 +1919,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -2059,11 +1934,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -2088,13 +1963,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2104,11 +1978,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -2133,13 +2007,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2150,11 +2023,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2179,13 +2052,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2196,11 +2068,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2225,13 +2097,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2242,11 +2113,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2271,13 +2142,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2288,11 +2158,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Caused by supplying a value for an object attribute that does not conform * to a documented valid regular expression. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RegExError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RegExError"; /** @@ -2317,13 +2187,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2334,11 +2203,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The action used for removing a group of {@link AdUnit} objects * from a {@link Placement}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RemoveAdUnitsFromPlacement extends AdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RemoveAdUnitsFromPlacement"; /** @@ -2363,10 +2232,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($placementId = null, $AdUnitActionType = null) { + public function __construct($placementId = null) { parent::__construct(); $this->placementId = $placementId; - $this->AdUnitActionType = $AdUnitActionType; } } @@ -2376,11 +2244,11 @@ public function __construct($placementId = null, $AdUnitActionType = null) { /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -2405,13 +2273,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2421,11 +2288,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2450,13 +2317,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2467,11 +2333,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2496,13 +2362,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2512,11 +2377,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -2541,13 +2406,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2559,11 +2423,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, *

    * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Size"; /** @@ -2614,11 +2478,11 @@ public function __construct($width = null, $height = null, $isAspectRatio = null * This represents an entry in a map with a key of type Size * and value of type String. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Size_StringMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Size_StringMapEntry"; /** @@ -2661,11 +2525,11 @@ public function __construct($key = null, $value = null) { /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -2680,12 +2544,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2702,10 +2560,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -2715,11 +2572,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -2790,11 +2647,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -2837,11 +2694,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -2866,13 +2723,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2882,11 +2738,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -2911,13 +2767,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2928,11 +2783,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -2975,11 +2830,11 @@ public function __construct($key = null, $value = null) { /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -3004,13 +2859,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3020,11 +2874,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -3043,12 +2897,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3058,11 +2911,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -3081,12 +2934,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3096,11 +2948,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -3136,51 +2988,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3197,8 +3011,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -3209,11 +3022,11 @@ public function __construct($ValueType = null) { * An error occured while trying to associate an AdSense account with GFP. Unable to create an * association with AdSense or Ad Exchange account. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseAccountErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseAccountError.Reason"; /** @@ -3242,11 +3055,11 @@ public function __construct() { /** * Specifies the type of ads that can be served through this {@link AdUnit}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseSettingsAdType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseSettings.AdType"; /** @@ -3276,11 +3089,11 @@ public function __construct() { * Describes the border of the HTML elements used to surround an ad * displayed by the {@link AdUnit}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseSettingsBorderStyle { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseSettings.BorderStyle"; /** @@ -3309,11 +3122,11 @@ public function __construct() { /** * List of all possible font families. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseSettingsFontFamily { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseSettings.FontFamily"; /** @@ -3342,11 +3155,11 @@ public function __construct() { /** * List of all possible font sizes the user can choose. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseSettingsFontSize { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseSettings.FontSize"; /** @@ -3375,11 +3188,11 @@ public function __construct() { /** * The supplied Afc size is not valid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitAfcSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitAfcSizeError.Reason"; /** @@ -3411,11 +3224,11 @@ public function __construct() { * forward slashes, exclamations, left angle brackets, colons and * parentheses are allowed. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitCodeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitCodeError.Reason"; /** @@ -3444,11 +3257,11 @@ public function __construct() { /** * Corresponds to an HTML link's {@code target} attribute. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitTargetWindow { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnit.TargetWindow"; /** @@ -3480,11 +3293,11 @@ public function __construct() { * root ad unit for Premium accounts and one level below effective root ad * unit for Small Business accounts. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitHierarchyErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitHierarchyError.Reason"; /** @@ -3514,11 +3327,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -3550,11 +3363,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -3579,15 +3392,48 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Describes reasons for common errors + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -3616,11 +3462,11 @@ public function __construct() { /** * The reasons for the creative wrapper error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeWrapperErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperError.Reason"; /** @@ -3649,11 +3495,11 @@ public function __construct() { /** * The reason of the error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CrossSellErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError.Reason"; /** @@ -3682,11 +3528,11 @@ public function __construct() { /** * Enum for the valid environments in which ads can be shown. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class EnvironmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EnvironmentType"; /** @@ -3715,11 +3561,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -3748,11 +3594,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError.Reason"; /** @@ -3781,11 +3627,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -3814,11 +3660,11 @@ public function __construct() { /** * The provided value is not a valid hexadecimal color. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidColorErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidColorError.Reason"; /** @@ -3848,11 +3694,11 @@ public function __construct() { * Represents the status of objects that represent inventory - ad units and * placements. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryStatus"; /** @@ -3881,11 +3727,11 @@ public function __construct() { /** * Possible reasons for the error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryUnitErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryUnitError.Reason"; /** @@ -3914,11 +3760,11 @@ public function __construct() { /** * Partner association error reason types. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryUnitPartnerAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryUnitPartnerAssociationError.Reason"; /** @@ -3943,15 +3789,48 @@ public function __construct() { } } +if (!class_exists("InventoryUnitRefreshRateErrorReason", false)) { + /** + * Reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class InventoryUnitRefreshRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitRefreshRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InventoryUnitSizesErrorReason", false)) { /** * All possible reasons the error can be thrown. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryUnitSizesErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryUnitSizesError.Reason"; /** @@ -3980,11 +3859,11 @@ public function __construct() { /** * Possible reasons for the error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitTypeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTypeError.Reason"; /** @@ -4014,11 +3893,11 @@ public function __construct() { * The platform associated with a mobile {@code AdUnit}, i.e. whether this ad unit * appears in a mobile application or in a mobile web site. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MobilePlatform { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobilePlatform"; /** @@ -4047,11 +3926,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -4080,11 +3959,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -4113,11 +3992,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -4146,11 +4025,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -4179,11 +4058,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -4212,11 +4091,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -4255,11 +4134,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -4288,11 +4167,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RegExErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RegExError.Reason"; /** @@ -4321,11 +4200,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -4354,11 +4233,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -4387,11 +4266,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -4420,11 +4299,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -4453,11 +4332,11 @@ public function __construct() { /** * Represents smart size modes. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SmartSizeMode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SmartSizeMode"; /** @@ -4486,11 +4365,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -4519,11 +4398,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -4552,11 +4431,11 @@ public function __construct() { /** * Indicates the target platform. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TargetPlatform { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TargetPlatform"; /** @@ -4585,11 +4464,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -4618,11 +4497,11 @@ public function __construct() { /** * Represent the possible time units for frequency capping. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TimeUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TimeUnit"; /** @@ -4647,95 +4526,6 @@ public function __construct() { } } -if (!class_exists("CreateAdUnit", false)) { - /** - * Creates a new {@link AdUnit}. - * - * The following fields are required: - *
      - *
    • {@link AdUnit#name}
    • - *
    • {@link AdUnit#parentId}
    • - *
    - * - * @param adUnit the ad unit to create - * @return the new ad unit with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $adUnit; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnit = null) { - $this->adUnit = $adUnit; - } - - } -} - -if (!class_exists("CreateAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateAdUnits", false)) { /** * Creates new {@link AdUnit} objects. @@ -4743,11 +4533,11 @@ public function __construct($rval = null) { * @param adUnits the ad units to create * @return the created ad units, with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreateAdUnits { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4783,11 +4573,11 @@ public function __construct($adUnits = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreateAdUnitsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4819,89 +4609,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetAdUnit", false)) { - /** - * Returns the {@link AdUnit} uniquely identified by the given ID. - * - * @param adUnitId ID of the ad unit, which must already exist - * @return the {@code AdUnit} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $adUnitId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnitId = null) { - $this->adUnitId = $adUnitId; - } - - } -} - -if (!class_exists("GetAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetAdUnitSizesByStatement", false)) { /** * Gets a set of {@link AdUnitSize} objects that satisfy the given @@ -4926,11 +4633,11 @@ public function __construct($rval = null) { * a set of ad unit sizes * @return the ad unit sizes that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetAdUnitSizesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4966,11 +4673,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetAdUnitSizesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5041,11 +4748,11 @@ public function __construct($rval = null) { * a set of ad units * @return the ad units that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetAdUnitsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5081,11 +4788,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetAdUnitsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5127,11 +4834,11 @@ public function __construct($rval = null) { * a set of ad units * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformAdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5174,11 +4881,11 @@ public function __construct($adUnitAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformAdUnitActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5210,25 +4917,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateAdUnit", false)) { +if (!class_exists("UpdateAdUnits", false)) { /** - * Updates the specified {@link AdUnit}. + * Updates the specified {@link AdUnit} objects. * - * @param adUnit the ad unit to update - * @return the updated ad unit + * @param adUnits the ad units to update + * @return the updated ad units * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateAdUnit { + class UpdateAdUnits { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var AdUnit + * @var AdUnit[] */ - public $adUnit; + public $adUnits; /** * Gets the namesapce of this class @@ -5246,27 +4953,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adUnit = null) { - $this->adUnit = $adUnit; + public function __construct($adUnits = null) { + $this->adUnits = $adUnits; } } } -if (!class_exists("UpdateAdUnitResponse", false)) { +if (!class_exists("UpdateAdUnitsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateAdUnitResponse { + class UpdateAdUnitsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var AdUnit + * @var AdUnit[] */ public $rval; @@ -5293,65 +5000,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateAdUnits", false)) { - /** - * Updates the specified {@link AdUnit} objects. - * - * @param adUnits the ad units to update - * @return the updated ad units - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateAdUnits { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdUnit[] - */ - public $adUnits; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($adUnits = null) { - $this->adUnits = $adUnits; - } - - } -} - -if (!class_exists("UpdateAdUnitsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateAdUnitsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var AdUnit[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -5369,8 +5034,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -5380,11 +5045,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivateAdUnits extends AdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateAdUnits"; /** @@ -5403,9 +5068,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdUnitActionType = null) { + public function __construct() { parent::__construct(); - $this->AdUnitActionType = $AdUnitActionType; } } @@ -5415,11 +5079,11 @@ public function __construct($AdUnitActionType = null) { /** * Error for AdSense related API calls. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseAccountError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseAccountError"; /** @@ -5444,13 +5108,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5460,11 +5123,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying sizes that are not compatible with the Afc sizes. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitAfcSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitAfcSizeError"; /** @@ -5489,13 +5152,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5505,11 +5167,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists the generic errors associated with {@link AdUnit#adUnitCode}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitCodeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitCodeError"; /** @@ -5534,13 +5196,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5550,11 +5211,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by creating an {@link AdUnit} object with an invalid hierarchy. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitHierarchyError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitHierarchyError"; /** @@ -5579,13 +5240,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5595,11 +5255,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -5624,11 +5284,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -5638,11 +5297,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -5667,10 +5326,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5680,11 +5338,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -5709,10 +5367,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5722,11 +5379,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -5751,10 +5408,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5764,11 +5420,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -5793,10 +5449,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -5806,11 +5502,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -5835,10 +5531,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5848,25 +5543,26 @@ public function __construct($value = null, $ValueType = null) { /** * InventoryService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryService extends DfpSoapClient { const SERVICE_NAME = "InventoryService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/InventoryService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/InventoryService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/InventoryService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/InventoryService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateAdUnits" => "ActivateAdUnits", "AdSenseAccountError" => "AdSenseAccountError", "AdSenseSettings" => "AdSenseSettings", @@ -5885,13 +5581,13 @@ class InventoryService extends DfpSoapClient { "AppliedLabel" => "AppliedLabel", "ArchiveAdUnits" => "ArchiveAdUnits", "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "CrossSellError" => "CrossSellError", + "CrossSellingDistributor" => "CrossSellingDistributor", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", @@ -5905,6 +5601,7 @@ class InventoryService extends DfpSoapClient { "InvalidColorError" => "InvalidColorError", "InventoryUnitError" => "InventoryUnitError", "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "InventoryUnitRefreshRateError" => "InventoryUnitRefreshRateError", "AdUnitSize" => "AdUnitSize", "InventoryUnitSizesError" => "InventoryUnitSizesError", "AdUnitTypeError" => "AdUnitTypeError", @@ -5912,7 +5609,6 @@ class InventoryService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -5924,6 +5620,7 @@ class InventoryService extends DfpSoapClient { "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "Size" => "Size", "Size_StringMapEntry" => "Size_StringMapEntry", "SoapRequestHeader" => "SoapRequestHeader", @@ -5949,6 +5646,7 @@ class InventoryService extends DfpSoapClient { "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "CrossSellError.Reason" => "CrossSellErrorReason", @@ -5960,6 +5658,7 @@ class InventoryService extends DfpSoapClient { "InventoryStatus" => "InventoryStatus", "InventoryUnitError.Reason" => "InventoryUnitErrorReason", "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitRefreshRateError.Reason" => "InventoryUnitRefreshRateErrorReason", "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", "AdUnitTypeError.Reason" => "AdUnitTypeErrorReason", "MobilePlatform" => "MobilePlatform", @@ -5981,20 +5680,14 @@ class InventoryService extends DfpSoapClient { "TargetPlatform" => "TargetPlatform", "TeamError.Reason" => "TeamErrorReason", "TimeUnit" => "TimeUnit", - "createAdUnit" => "CreateAdUnit", - "createAdUnitResponse" => "CreateAdUnitResponse", "createAdUnits" => "CreateAdUnits", "createAdUnitsResponse" => "CreateAdUnitsResponse", - "getAdUnit" => "GetAdUnit", - "getAdUnitResponse" => "GetAdUnitResponse", "getAdUnitSizesByStatement" => "GetAdUnitSizesByStatement", "getAdUnitSizesByStatementResponse" => "GetAdUnitSizesByStatementResponse", "getAdUnitsByStatement" => "GetAdUnitsByStatement", "getAdUnitsByStatementResponse" => "GetAdUnitsByStatementResponse", "performAdUnitAction" => "PerformAdUnitAction", "performAdUnitActionResponse" => "PerformAdUnitActionResponse", - "updateAdUnit" => "UpdateAdUnit", - "updateAdUnitResponse" => "UpdateAdUnitResponse", "updateAdUnits" => "UpdateAdUnits", "updateAdUnitsResponse" => "UpdateAdUnitsResponse", ); @@ -6010,23 +5703,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link AdUnit}. - * - * The following fields are required: - *

      - *
    • {@link AdUnit#name}
    • - *
    • {@link AdUnit#parentId}
    • - *
    - * - * @param adUnit the ad unit to create - * @return the new ad unit with its ID set - */ - public function createAdUnit($adUnit) { - $args = new CreateAdUnit($adUnit); - $result = $this->__soapCall("createAdUnit", array($args)); - return $result->rval; - } /** * Creates new {@link AdUnit} objects. * @@ -6038,17 +5714,6 @@ public function createAdUnits($adUnits) { $result = $this->__soapCall("createAdUnits", array($args)); return $result->rval; } - /** - * Returns the {@link AdUnit} uniquely identified by the given ID. - * - * @param adUnitId ID of the ad unit, which must already exist - * @return the {@code AdUnit} uniquely identified by the given ID - */ - public function getAdUnit($adUnitId) { - $args = new GetAdUnit($adUnitId); - $result = $this->__soapCall("getAdUnit", array($args)); - return $result->rval; - } /** * Gets a set of {@link AdUnitSize} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -6134,17 +5799,6 @@ public function performAdUnitAction($adUnitAction, $filterStatement) { $result = $this->__soapCall("performAdUnitAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link AdUnit}. - * - * @param adUnit the ad unit to update - * @return the updated ad unit - */ - public function updateAdUnit($adUnit) { - $args = new UpdateAdUnit($adUnit); - $result = $this->__soapCall("updateAdUnit", array($args)); - return $result->rval; - } /** * Updates the specified {@link AdUnit} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/LabelService.php b/src/Google/Api/Ads/Dfp/v201502/LabelService.php similarity index 79% rename from src/Google/Api/Ads/Dfp/v201308/LabelService.php rename to src/Google/Api/Ads/Dfp/v201502/LabelService.php index 1bbf328b9..249d7a137 100755 --- a/src/Google/Api/Ads/Dfp/v201308/LabelService.php +++ b/src/Google/Api/Ads/Dfp/v201502/LabelService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creative wrappers. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperError"; /** @@ -488,13 +335,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -504,11 +350,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -558,11 +404,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -627,11 +473,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -656,13 +502,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +519,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -703,13 +548,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -719,51 +563,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the actions that can be performed on {@link Label} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelAction"; - /** - * @access public - * @var string - */ - public $LabelActionType; - private $_parameterMap = array( - "LabelAction.Type" => "LabelActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -780,8 +586,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { - $this->LabelActionType = $LabelActionType; + public function __construct() { } } @@ -791,11 +596,11 @@ public function __construct($LabelActionType = null) { /** * A {@code Label} is additional information that can be added to an entity. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Label { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Label"; /** @@ -859,11 +664,11 @@ public function __construct($id = null, $name = null, $description = null, $isAc /** * Errors specific to labels. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelError"; /** @@ -888,13 +693,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -904,11 +708,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Label} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelPage"; /** @@ -958,11 +762,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -987,13 +791,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1003,11 +806,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1032,57 +835,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1092,11 +850,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1121,13 +879,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1137,11 +894,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1166,13 +923,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1183,11 +939,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1212,13 +968,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1229,11 +984,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1258,13 +1013,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1275,11 +1029,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1304,13 +1058,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1320,11 +1073,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1349,13 +1102,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1365,11 +1117,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1394,13 +1146,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1410,11 +1161,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1429,12 +1180,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1451,10 +1196,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1464,11 +1208,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1539,11 +1283,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1586,11 +1330,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1615,13 +1359,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1631,11 +1374,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1660,13 +1403,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1677,11 +1419,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1724,11 +1466,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1747,12 +1489,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1762,11 +1503,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1785,12 +1526,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1800,11 +1540,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1840,51 +1580,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1901,8 +1603,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1913,11 +1614,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1949,11 +1650,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1978,15 +1679,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2015,11 +1749,11 @@ public function __construct() { /** * The reasons for the creative wrapper error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeWrapperErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeWrapperError.Reason"; /** @@ -2048,11 +1782,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2081,11 +1815,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2114,11 +1848,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelError.Reason"; /** @@ -2147,11 +1881,11 @@ public function __construct() { /** * Represents the types of labels supported. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelType"; /** @@ -2180,11 +1914,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2213,11 +1947,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2246,11 +1980,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2279,11 +2013,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2312,11 +2046,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2345,11 +2079,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2388,11 +2122,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2421,11 +2155,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2454,11 +2188,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2487,11 +2221,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2520,11 +2254,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2549,95 +2283,6 @@ public function __construct() { } } -if (!class_exists("CreateLabel", false)) { - /** - * Creates a new {@link Label}. - * - * The following fields are required: - *
      - *
    • {@link Label#name}
    • - *
    • {@link Label#type}
    • - *
    - * - * @param label the label to create - * @return the label with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Label - */ - public $label; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($label = null) { - $this->label = $label; - } - - } -} - -if (!class_exists("CreateLabelResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateLabelResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Label - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateLabels", false)) { /** * Creates new {@link Label} objects. @@ -2645,11 +2290,11 @@ public function __construct($rval = null) { * @param labels the labels to create * @return the created labels with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateLabels { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2685,11 +2330,11 @@ public function __construct($labels = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateLabelsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2721,89 +2366,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetLabel", false)) { - /** - * Returns the {@link Label} uniquely identified by the given ID. - * - * @param labelId the ID of the label, which must already exist - * @return the {@code Label} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $labelId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labelId = null) { - $this->labelId = $labelId; - } - - } -} - -if (!class_exists("GetLabelResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetLabelResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Label - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetLabelsByStatement", false)) { /** * Gets a {@link LabelPage} of {@link Label} objects that satisfy the @@ -2841,11 +2403,11 @@ public function __construct($rval = null) { * a set of labels. * @return the labels that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetLabelsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2881,11 +2443,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetLabelsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2927,11 +2489,11 @@ public function __construct($rval = null) { * a set of labels * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformLabelAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2974,11 +2536,11 @@ public function __construct($labelAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformLabelActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3010,25 +2572,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLabel", false)) { +if (!class_exists("UpdateLabels", false)) { /** - * Updates the specified {@link Label}. + * Updates the specified {@link Label} objects. * - * @param label the label to update - * @return the updated label + * @param labels the labels to update + * @return the updated labels * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateLabel { + class UpdateLabels { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var Label[] */ - public $label; + public $labels; /** * Gets the namesapce of this class @@ -3046,27 +2608,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($label = null) { - $this->label = $label; + public function __construct($labels = null) { + $this->labels = $labels; } } } -if (!class_exists("UpdateLabelResponse", false)) { +if (!class_exists("UpdateLabelsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateLabelResponse { + class UpdateLabelsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var Label[] */ public $rval; @@ -3093,65 +2655,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLabels", false)) { - /** - * Updates the specified {@link Label} objects. - * - * @param labels the labels to update - * @return the updated labels - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateLabels { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Label[] - */ - public $labels; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($labels = null) { - $this->labels = $labels; - } - - } -} - -if (!class_exists("UpdateLabelsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateLabelsResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Label[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3169,8 +2689,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -3180,11 +2700,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link Label} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivateLabels extends LabelAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateLabels"; /** @@ -3203,9 +2723,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { + public function __construct() { parent::__construct(); - $this->LabelActionType = $LabelActionType; } } @@ -3215,11 +2734,11 @@ public function __construct($LabelActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3244,11 +2763,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3258,11 +2776,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3287,10 +2805,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3300,11 +2817,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3329,10 +2846,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3342,11 +2858,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3371,10 +2887,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3384,11 +2899,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used for deactivating {@link Label} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivateLabels extends LabelAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateLabels"; /** @@ -3407,9 +2922,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { + public function __construct() { parent::__construct(); - $this->LabelActionType = $LabelActionType; } } @@ -3419,11 +2933,11 @@ public function __construct($LabelActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3448,10 +2962,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3461,11 +3015,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3490,10 +3044,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3503,34 +3056,34 @@ public function __construct($value = null, $ValueType = null) { /** * LabelService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LabelService extends DfpSoapClient { const SERVICE_NAME = "LabelService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/LabelService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/LabelService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/LabelService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateLabels" => "ActivateLabels", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeWrapperError" => "CreativeWrapperError", "Date" => "Date", @@ -3547,7 +3100,6 @@ class LabelService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3555,6 +3107,7 @@ class LabelService extends DfpSoapClient { "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3568,6 +3121,7 @@ class LabelService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", @@ -3585,18 +3139,12 @@ class LabelService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createLabel" => "CreateLabel", - "createLabelResponse" => "CreateLabelResponse", "createLabels" => "CreateLabels", "createLabelsResponse" => "CreateLabelsResponse", - "getLabel" => "GetLabel", - "getLabelResponse" => "GetLabelResponse", "getLabelsByStatement" => "GetLabelsByStatement", "getLabelsByStatementResponse" => "GetLabelsByStatementResponse", "performLabelAction" => "PerformLabelAction", "performLabelActionResponse" => "PerformLabelActionResponse", - "updateLabel" => "UpdateLabel", - "updateLabelResponse" => "UpdateLabelResponse", "updateLabels" => "UpdateLabels", "updateLabelsResponse" => "UpdateLabelsResponse", ); @@ -3612,23 +3160,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link Label}. - * - * The following fields are required: - *

      - *
    • {@link Label#name}
    • - *
    • {@link Label#type}
    • - *
    - * - * @param label the label to create - * @return the label with its ID filled in - */ - public function createLabel($label) { - $args = new CreateLabel($label); - $result = $this->__soapCall("createLabel", array($args)); - return $result->rval; - } /** * Creates new {@link Label} objects. * @@ -3640,17 +3171,6 @@ public function createLabels($labels) { $result = $this->__soapCall("createLabels", array($args)); return $result->rval; } - /** - * Returns the {@link Label} uniquely identified by the given ID. - * - * @param labelId the ID of the label, which must already exist - * @return the {@code Label} uniquely identified by the given ID - */ - public function getLabel($labelId) { - $args = new GetLabel($labelId); - $result = $this->__soapCall("getLabel", array($args)); - return $result->rval; - } /** * Gets a {@link LabelPage} of {@link Label} objects that satisfy the * given {@link Statement#query}. The following fields are supported for @@ -3706,17 +3226,6 @@ public function performLabelAction($labelAction, $filterStatement) { $result = $this->__soapCall("performLabelAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link Label}. - * - * @param label the label to update - * @return the updated label - */ - public function updateLabel($label) { - $args = new UpdateLabel($label); - $result = $this->__soapCall("updateLabel", array($args)); - return $result->rval; - } /** * Updates the specified {@link Label} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201502/LineItemCreativeAssociationService.php similarity index 84% rename from src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php rename to src/Google/Api/Ads/Dfp/v201502/LineItemCreativeAssociationService.php index 91e7bd899..89bc2390c 100755 --- a/src/Google/Api/Ads/Dfp/v201306/LineItemCreativeAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201502/LineItemCreativeAssociationService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,9 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -253,11 +174,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { /** * Lists all errors associated with assets. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AssetError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetError"; /** @@ -282,13 +203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -298,11 +218,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with audience extension enabled line items * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AudienceExtensionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError"; /** @@ -327,66 +247,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -404,27 +291,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * An error for an exception that occurred when authenticating. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsCollectionSizeErrorReason */ public $reason; @@ -444,36 +335,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CommonError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; /** * @access public - * @var string + * @var tnsCommonErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -491,29 +379,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("CommonError", false)) { +if (!class_exists("CreativeAssetMacroError", false)) { /** - * A place for common errors that can be used across services. + * Lists all errors associated with creative asset macros. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CommonError extends ApiError { + class CreativeAssetMacroError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeAssetMacroError"; /** * @access public - * @var tnsCommonErrorReason + * @var tnsCreativeAssetMacroErrorReason */ public $reason; @@ -533,32 +423,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeAssetMacroError", false)) { +if (!class_exists("CreativeError", false)) { /** - * Lists all errors associated with creative asset macros. + * Lists all errors associated with creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreativeAssetMacroError extends ApiError { + class CreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeAssetMacroError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeError"; /** * @access public - * @var tnsCreativeAssetMacroErrorReason + * @var tnsCreativeErrorReason */ public $reason; @@ -578,32 +467,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeError", false)) { +if (!class_exists("CreativePreviewError", false)) { /** - * Lists all errors associated with creatives. + * Errors associated with generation of creative preview URIs. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreativeError extends ApiError { + class CreativePreviewError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativePreviewError"; /** * @access public - * @var tnsCreativeErrorReason + * @var tnsCreativePreviewErrorReason */ public $reason; @@ -623,13 +511,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -639,11 +526,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors relating to creative sets & subclasses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeSetError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSetError"; /** @@ -668,13 +555,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -684,11 +570,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with custom creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreativeError"; /** @@ -713,13 +599,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -729,11 +614,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -758,13 +643,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -774,11 +658,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -828,11 +712,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -892,16 +776,60 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("EntityLimitReachedError", false)) { /** * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -920,12 +848,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -936,11 +863,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -965,13 +892,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -981,11 +907,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for problems related to files. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FileError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FileError"; /** @@ -1010,13 +936,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1026,11 +951,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with images. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ImageError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageError"; /** @@ -1055,13 +980,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1073,11 +997,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1102,13 +1026,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1118,11 +1041,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with phone numbers. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidPhoneNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidPhoneNumberError"; /** @@ -1147,13 +1070,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1163,11 +1085,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -1192,13 +1114,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1208,11 +1129,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -1237,13 +1158,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1254,51 +1174,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents the actions that can be performed on * {@link LineItemCreativeAssociation} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationAction"; - /** - * @access public - * @var string - */ - public $LineItemCreativeAssociationActionType; - private $_parameterMap = array( - "LineItemCreativeAssociationAction.Type" => "LineItemCreativeAssociationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1315,8 +1197,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemCreativeAssociationActionType = null) { - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; + public function __construct() { } } @@ -1327,11 +1208,11 @@ public function __construct($LineItemCreativeAssociationActionType = null) { * A {@code LineItemCreativeAssociation} associates a {@link Creative} or {@link CreativeSet} with a * {@link LineItem} so that the creative can be served in ad units targeted by the line item. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociation"; /** @@ -1451,11 +1332,11 @@ public function __construct($lineItemId = null, $creativeId = null, $creativeSet /** * Lists all errors associated with line item-to-creative association dates. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError"; /** @@ -1480,13 +1361,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1497,11 +1377,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors for executing operations on * line item-to-creative associations * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationOperationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationOperationError"; /** @@ -1526,13 +1406,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1542,11 +1421,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link LineItemCreativeAssociation} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationPage"; /** @@ -1597,11 +1476,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * Contains statistics such as impressions, clicks delivered and cost * for {@link LineItemCreativeAssociation} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationStats { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationStats"; /** @@ -1651,11 +1530,11 @@ public function __construct($stats = null, $creativeSetStats = null, $costInOrde /** * A catch-all error that lists all generic errors associated with LineItem. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemError"; /** @@ -1680,13 +1559,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1697,11 +1575,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type Long * and value of type Stats. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Long_StatsMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Long_StatsMapEntry"; /** @@ -1744,11 +1622,11 @@ public function __construct($key = null, $value = null) { /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -1791,11 +1669,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1820,13 +1698,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1836,11 +1713,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1865,57 +1742,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1925,11 +1757,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1954,13 +1786,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1970,11 +1801,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1999,13 +1830,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2016,11 +1846,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2045,13 +1875,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2062,11 +1891,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2091,13 +1920,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2108,11 +1936,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2137,13 +1965,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2153,11 +1980,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -2182,13 +2009,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2198,11 +2024,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -2227,13 +2053,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2243,11 +2068,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2272,13 +2097,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2289,11 +2113,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2318,13 +2142,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2334,11 +2157,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating {@link Size}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError"; /** @@ -2363,13 +2186,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2379,11 +2201,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with Rich Media Studio creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RichMediaStudioCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeError"; /** @@ -2408,13 +2230,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2424,11 +2245,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -2453,13 +2274,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxCreativeError", false)) { + /** + * Errors associated with {@link SetTopBoxCreative set-top box creatives}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxCreativeError"; + + /** + * @access public + * @var tnsSetTopBoxCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2471,11 +2335,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, *

    * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Size"; /** @@ -2525,11 +2389,11 @@ public function __construct($width = null, $height = null, $isAspectRatio = null /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -2544,12 +2408,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2566,10 +2424,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -2579,11 +2436,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -2654,11 +2511,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -2701,11 +2558,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -2730,13 +2587,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2747,11 +2603,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@code Stats} contains trafficking statistics for {@link LineItem} and * {@link LineItemCreativeAssociation} objects * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Stats { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Stats"; /** @@ -2766,6 +2622,18 @@ class Stats { */ public $clicksDelivered; + /** + * @access public + * @var integer + */ + public $videoCompletionsDelivered; + + /** + * @access public + * @var integer + */ + public $videoStartsDelivered; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2782,9 +2650,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($impressionsDelivered = null, $clicksDelivered = null) { + public function __construct($impressionsDelivered = null, $clicksDelivered = null, $videoCompletionsDelivered = null, $videoStartsDelivered = null) { $this->impressionsDelivered = $impressionsDelivered; $this->clicksDelivered = $clicksDelivered; + $this->videoCompletionsDelivered = $videoCompletionsDelivered; + $this->videoStartsDelivered = $videoStartsDelivered; } } @@ -2794,11 +2664,11 @@ public function __construct($impressionsDelivered = null, $clicksDelivered = nul /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -2823,13 +2693,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2840,11 +2709,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -2887,11 +2756,11 @@ public function __construct($key = null, $value = null) { /** * Error for converting flash to swiffy asset. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SwiffyConversionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SwiffyConversionError"; /** @@ -2916,13 +2785,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2932,11 +2800,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with template instantiated creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TemplateInstantiatedCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TemplateInstantiatedCreativeError"; /** @@ -2961,13 +2829,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2977,11 +2844,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -3000,12 +2867,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3015,11 +2881,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -3038,12 +2904,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3053,11 +2918,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -3093,69 +2958,30 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -3166,11 +2992,11 @@ public function __construct($ValueType = null) { * An error occured while trying to associate an AdSense account with GFP. Unable to create an * association with AdSense or Ad Exchange account. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseAccountErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseAccountError.Reason"; /** @@ -3200,11 +3026,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -3233,11 +3059,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AssetErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AssetError.Reason"; /** @@ -3266,11 +3092,11 @@ public function __construct() { /** * Specific audience extension error reasons. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AudienceExtensionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError.Reason"; /** @@ -3302,11 +3128,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -3331,15 +3157,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -3368,11 +3227,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeAssetMacroErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeAssetMacroError.Reason"; /** @@ -3401,11 +3260,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError.Reason"; /** @@ -3430,15 +3289,48 @@ public function __construct() { } } +if (!class_exists("CreativePreviewErrorReason", false)) { + /** + * The creative cannot be previewed on this page. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CreativePreviewErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativePreviewError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CreativeSetErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativeSetErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSetError.Reason"; /** @@ -3467,11 +3359,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCreativeError.Reason"; /** @@ -3500,11 +3392,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError.Reason"; /** @@ -3529,15 +3421,48 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -3566,11 +3491,11 @@ public function __construct() { /** * The provided byte array is empty. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FileErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FileError.Reason"; /** @@ -3599,11 +3524,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ImageErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ImageError.Reason"; /** @@ -3632,11 +3557,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -3665,11 +3590,11 @@ public function __construct() { /** * The phone number is invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidPhoneNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidPhoneNumberError.Reason"; /** @@ -3698,11 +3623,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -3731,11 +3656,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -3764,11 +3689,11 @@ public function __construct() { /** * Describes the status of the association. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociation.Status"; /** @@ -3797,11 +3722,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; /** @@ -3830,11 +3755,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationOperationError.Reason"; /** @@ -3863,11 +3788,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemError.Reason"; /** @@ -3896,11 +3821,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -3929,11 +3854,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -3962,11 +3887,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -3995,11 +3920,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -4028,11 +3953,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -4061,11 +3986,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -4104,11 +4029,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -4137,11 +4062,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -4170,11 +4095,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -4203,11 +4128,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -4236,11 +4161,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -4270,11 +4195,11 @@ public function __construct() { * {@link Creative#size} or {@link LineItem#creativeSizes} is * missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError.Reason"; /** @@ -4303,11 +4228,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RichMediaStudioCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; /** @@ -4336,11 +4261,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -4365,17 +4290,16 @@ public function __construct() { } } -if (!class_exists("StartDateTimeType", false)) { +if (!class_exists("SetTopBoxCreativeErrorReason", false)) { /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * Error reasons for set-top box creatives. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StartDateTimeType { + class SetTopBoxCreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StartDateTimeType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxCreativeError.Reason"; /** * Gets the namesapce of this class @@ -4399,16 +4323,17 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("StartDateTimeType", false)) { /** - * A bind variable has not been bound to a value. + * Specifies the start type to use for an entity with a start date time field. + * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StatementErrorReason { + class StartDateTimeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StartDateTimeType"; /** * Gets the namesapce of this class @@ -4432,16 +4357,16 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StringLengthErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -4465,16 +4390,16 @@ public function __construct() { } } -if (!class_exists("SwiffyConversionErrorReason", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * Error reason for {@link SwiffyConversionError}. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class SwiffyConversionErrorReason { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SwiffyConversionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -4498,16 +4423,16 @@ public function __construct() { } } -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { +if (!class_exists("SwiffyConversionErrorReason", false)) { /** - * The reason for the error + * Error reason for {@link SwiffyConversionError}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class TemplateInstantiatedCreativeErrorReason { + class SwiffyConversionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SwiffyConversionError.Reason"; /** * Gets the namesapce of this class @@ -4531,72 +4456,16 @@ public function __construct() { } } -if (!class_exists("CreateLineItemCreativeAssociation", false)) { - /** - * Creates a new {@link LineItemCreativeAssociation}. - * - * The following fields are required: - *
      - *
    • {@link LineItemCreativeAssociation#creativeId}
    • - *
    • {@link LineItemCreativeAssociation#lineItemId}
    • - *
    - * - * @param lineItemCreativeAssociation the line item creative association to - * create - * @return the new line item creative association with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $lineItemCreativeAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociation = null) { - $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; - } - - } -} - -if (!class_exists("CreateLineItemCreativeAssociationResponse", false)) { +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { /** - * + * The reason for the error * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class TemplateInstantiatedCreativeErrorReason { - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; /** * Gets the namesapce of this class @@ -4614,8 +4483,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } @@ -4630,11 +4498,11 @@ public function __construct($rval = null) { * @return the created line item creative associations with their IDs filled * in * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreateLineItemCreativeAssociations { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4670,11 +4538,11 @@ public function __construct($lineItemCreativeAssociations = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreateLineItemCreativeAssociationsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4706,99 +4574,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetLineItemCreativeAssociation", false)) { - /** - * Returns the {@link LineItemCreativeAssociation} uniquely identified by the - * given line item and creative IDs. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @return the {@code LineItemCreativeAssociation} uniquely identified by the - * line item and creative IDs - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItemCreativeAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * @access public - * @var integer - */ - public $creativeId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null, $creativeId = null) { - $this->lineItemId = $lineItemId; - $this->creativeId = $creativeId; - } - - } -} - -if (!class_exists("GetLineItemCreativeAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetLineItemCreativeAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetLineItemCreativeAssociationsByStatement", false)) { /** * Gets a {@link LineItemCreativeAssociationPage} of @@ -4839,11 +4614,11 @@ public function __construct($rval = null) { * a set of line item creative associations * @return the line item creative associations that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetLineItemCreativeAssociationsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4879,11 +4654,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetLineItemCreativeAssociationsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4927,11 +4702,11 @@ public function __construct($rval = null) { * @return a URL that references the specified site URL with the specified * creative served to it * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetPreviewUrl { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4981,11 +4756,11 @@ public function __construct($lineItemId = null, $creativeId = null, $siteUrl = n /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetPreviewUrlResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5027,11 +4802,11 @@ public function __construct($rval = null) { * a set of line item creative associations * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformLineItemCreativeAssociationAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5074,11 +4849,11 @@ public function __construct($lineItemCreativeAssociationAction = null, $filterSt /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformLineItemCreativeAssociationActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5110,26 +4885,26 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLineItemCreativeAssociation", false)) { +if (!class_exists("UpdateLineItemCreativeAssociations", false)) { /** - * Updates the specified {@link LineItemCreativeAssociation}. + * Updates the specified {@link LineItemCreativeAssociation} objects * - * @param lineItemCreativeAssociation the line item creative association to + * @param lineItemCreativeAssociations the line item creative associations to * update - * @return the updated line item creative association + * @return the updated line item creative associations * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateLineItemCreativeAssociation { + class UpdateLineItemCreativeAssociations { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LineItemCreativeAssociation + * @var LineItemCreativeAssociation[] */ - public $lineItemCreativeAssociation; + public $lineItemCreativeAssociations; /** * Gets the namesapce of this class @@ -5147,27 +4922,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($lineItemCreativeAssociation = null) { - $this->lineItemCreativeAssociation = $lineItemCreativeAssociation; + public function __construct($lineItemCreativeAssociations = null) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; } } } -if (!class_exists("UpdateLineItemCreativeAssociationResponse", false)) { +if (!class_exists("UpdateLineItemCreativeAssociationsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateLineItemCreativeAssociationResponse { + class UpdateLineItemCreativeAssociationsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LineItemCreativeAssociation + * @var LineItemCreativeAssociation[] */ public $rval; @@ -5194,66 +4969,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLineItemCreativeAssociations", false)) { - /** - * Updates the specified {@link LineItemCreativeAssociation} objects - * - * @param lineItemCreativeAssociations the line item creative associations to - * update - * @return the updated line item creative associations - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateLineItemCreativeAssociations { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $lineItemCreativeAssociations; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemCreativeAssociations = null) { - $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; - } - - } -} - -if (!class_exists("UpdateLineItemCreativeAssociationsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateLineItemCreativeAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var LineItemCreativeAssociation[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -5271,8 +5003,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -5282,11 +5014,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link LineItemCreativeAssociation} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateLineItemCreativeAssociations"; /** @@ -5305,9 +5037,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemCreativeAssociationActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; } } @@ -5317,11 +5048,11 @@ public function __construct($LineItemCreativeAssociationActionType = null) { /** * Error for AdSense related API calls. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdSenseAccountError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdSenseAccountError"; /** @@ -5346,13 +5077,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5362,11 +5092,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -5391,11 +5121,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -5405,11 +5134,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -5434,10 +5163,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5447,11 +5175,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -5476,10 +5204,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5489,11 +5216,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -5518,10 +5245,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5531,11 +5257,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used for deactivating {@link LineItemCreativeAssociation} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateLineItemCreativeAssociations"; /** @@ -5554,9 +5280,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemCreativeAssociationActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemCreativeAssociationActionType = $LineItemCreativeAssociationActionType; } } @@ -5566,11 +5291,11 @@ public function __construct($LineItemCreativeAssociationActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -5595,10 +5320,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -5608,11 +5373,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -5637,10 +5402,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5650,25 +5414,26 @@ public function __construct($value = null, $ValueType = null) { /** * LineItemCreativeAssociationService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemCreativeAssociationService extends DfpSoapClient { const SERVICE_NAME = "LineItemCreativeAssociationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/LineItemCreativeAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/LineItemCreativeAssociationService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/LineItemCreativeAssociationService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/LineItemCreativeAssociationService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", "AdSenseAccountError" => "AdSenseAccountError", "ApiError" => "ApiError", @@ -5677,13 +5442,13 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AssetError" => "AssetError", "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CreativeAssetMacroError" => "CreativeAssetMacroError", "CreativeError" => "CreativeError", + "CreativePreviewError" => "CreativePreviewError", "CreativeSetError" => "CreativeSetError", "CustomCreativeError" => "CustomCreativeError", "CustomFieldValueError" => "CustomFieldValueError", @@ -5692,6 +5457,7 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FileError" => "FileError", @@ -5712,7 +5478,6 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -5725,6 +5490,8 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "RequiredSizeError" => "RequiredSizeError", "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", "ServerError" => "ServerError", + "SetTopBoxCreativeError" => "SetTopBoxCreativeError", + "SetValue" => "SetValue", "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -5745,12 +5512,15 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "AssetError.Reason" => "AssetErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", "CreativeError.Reason" => "CreativeErrorReason", + "CreativePreviewError.Reason" => "CreativePreviewErrorReason", "CreativeSetError.Reason" => "CreativeSetErrorReason", "CustomCreativeError.Reason" => "CustomCreativeErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "FileError.Reason" => "FileErrorReason", "ImageError.Reason" => "ImageErrorReason", @@ -5776,25 +5546,20 @@ class LineItemCreativeAssociationService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxCreativeError.Reason" => "SetTopBoxCreativeErrorReason", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "createLineItemCreativeAssociation" => "CreateLineItemCreativeAssociation", - "createLineItemCreativeAssociationResponse" => "CreateLineItemCreativeAssociationResponse", "createLineItemCreativeAssociations" => "CreateLineItemCreativeAssociations", "createLineItemCreativeAssociationsResponse" => "CreateLineItemCreativeAssociationsResponse", - "getLineItemCreativeAssociation" => "GetLineItemCreativeAssociation", - "getLineItemCreativeAssociationResponse" => "GetLineItemCreativeAssociationResponse", "getLineItemCreativeAssociationsByStatement" => "GetLineItemCreativeAssociationsByStatement", "getLineItemCreativeAssociationsByStatementResponse" => "GetLineItemCreativeAssociationsByStatementResponse", "getPreviewUrl" => "GetPreviewUrl", "getPreviewUrlResponse" => "GetPreviewUrlResponse", "performLineItemCreativeAssociationAction" => "PerformLineItemCreativeAssociationAction", "performLineItemCreativeAssociationActionResponse" => "PerformLineItemCreativeAssociationActionResponse", - "updateLineItemCreativeAssociation" => "UpdateLineItemCreativeAssociation", - "updateLineItemCreativeAssociationResponse" => "UpdateLineItemCreativeAssociationResponse", "updateLineItemCreativeAssociations" => "UpdateLineItemCreativeAssociations", "updateLineItemCreativeAssociationsResponse" => "UpdateLineItemCreativeAssociationsResponse", ); @@ -5810,24 +5575,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link LineItemCreativeAssociation}. - * - * The following fields are required: - *

      - *
    • {@link LineItemCreativeAssociation#creativeId}
    • - *
    • {@link LineItemCreativeAssociation#lineItemId}
    • - *
    - * - * @param lineItemCreativeAssociation the line item creative association to - * create - * @return the new line item creative association with its ID set - */ - public function createLineItemCreativeAssociation($lineItemCreativeAssociation) { - $args = new CreateLineItemCreativeAssociation($lineItemCreativeAssociation); - $result = $this->__soapCall("createLineItemCreativeAssociation", array($args)); - return $result->rval; - } /** * Creates new {@link LineItemCreativeAssociation} objects * @@ -5841,20 +5588,6 @@ public function createLineItemCreativeAssociations($lineItemCreativeAssociations $result = $this->__soapCall("createLineItemCreativeAssociations", array($args)); return $result->rval; } - /** - * Returns the {@link LineItemCreativeAssociation} uniquely identified by the - * given line item and creative IDs. - * - * @param lineItemId the ID of the line item, which must already exist - * @param creativeId the ID of the creative, which must already exist - * @return the {@code LineItemCreativeAssociation} uniquely identified by the - * line item and creative IDs - */ - public function getLineItemCreativeAssociation($lineItemId, $creativeId) { - $args = new GetLineItemCreativeAssociation($lineItemId, $creativeId); - $result = $this->__soapCall("getLineItemCreativeAssociation", array($args)); - return $result->rval; - } /** * Gets a {@link LineItemCreativeAssociationPage} of * {@link LineItemCreativeAssociation} objects that satisfy the given @@ -5929,18 +5662,6 @@ public function performLineItemCreativeAssociationAction($lineItemCreativeAssoci $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link LineItemCreativeAssociation}. - * - * @param lineItemCreativeAssociation the line item creative association to - * update - * @return the updated line item creative association - */ - public function updateLineItemCreativeAssociation($lineItemCreativeAssociation) { - $args = new UpdateLineItemCreativeAssociation($lineItemCreativeAssociation); - $result = $this->__soapCall("updateLineItemCreativeAssociation", array($args)); - return $result->rval; - } /** * Updates the specified {@link LineItemCreativeAssociation} objects * diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemService.php b/src/Google/Api/Ads/Dfp/v201502/LineItemService.php similarity index 86% rename from src/Google/Api/Ads/Dfp/v201311/LineItemService.php rename to src/Google/Api/Ads/Dfp/v201502/LineItemService.php index 76b44e0fe..5ccb7c80b 100755 --- a/src/Google/Api/Ads/Dfp/v201311/LineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201502/LineItemService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTargeting"; /** @@ -83,11 +83,11 @@ public function __construct($adUnitId = null, $includeDescendants = null) { *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -108,44 +108,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -162,11 +124,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -177,11 +138,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Provides {@link LineItem} objects the ability to target or exclude * technologies. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargeting"; /** @@ -287,11 +248,11 @@ public function __construct($bandwidthGroupTargeting = null, $browserTargeting = /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -316,13 +277,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -332,11 +292,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -345,44 +305,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -399,9 +321,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -413,11 +334,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -460,11 +381,11 @@ public function __construct($labelId = null, $isNegated = null) { /** * Errors associated with audience extension enabled line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceExtensionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError"; /** @@ -489,85 +410,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -577,11 +425,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -606,13 +454,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -623,11 +470,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents bandwidth groups that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BandwidthGroupTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroupTargeting"; /** @@ -670,11 +517,11 @@ public function __construct($isTargeted = null, $bandwidthGroups = null) { /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -683,44 +530,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -737,9 +546,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -750,11 +558,11 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n * Represents browser languages that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserLanguageTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguageTargeting"; /** @@ -798,11 +606,11 @@ public function __construct($isTargeted = null, $browserLanguages = null) { * Represents browsers that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserTargeting"; /** @@ -846,11 +654,11 @@ public function __construct($isTargeted = null, $browsers = null) { * Click tracking is a special line item type with a number of unique errors as * described below. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingLineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingLineItemError"; /** @@ -875,36 +683,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -922,10 +727,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -935,11 +742,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -964,13 +771,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -980,11 +786,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors due to {@link Company#creditStatus}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanyCreditStatusError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError"; /** @@ -1009,13 +815,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1026,11 +831,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents one or more {@link CustomTargetingValue custom targeting values} from different * {@link CustomTargetingKey custom targeting keys} ANDed together. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; /** @@ -1066,11 +871,11 @@ public function __construct($customTargetingValueIds = null) { /** * Lists all errors related to {@link ContentMetadataTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError"; /** @@ -1095,13 +900,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1111,11 +915,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Used to target {@link LineItem}s to specific videos on a publisher's site. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentTargeting"; /** @@ -1200,11 +1004,11 @@ public function __construct($targetedContentIds = null, $excludedContentIds = nu /** * Lists all errors associated with creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError"; /** @@ -1229,13 +1033,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1250,11 +1053,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * contain companions. Companions are only valid if the line item's environment * type is {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativePlaceholder { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativePlaceholder"; /** @@ -1332,11 +1135,11 @@ public function __construct($size = null, $companions = null, $appliedLabels = n /** * Lists all errors associated with cross selling. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CrossSellError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError"; /** @@ -1361,13 +1164,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1378,11 +1180,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -1407,11 +1209,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -1421,11 +1222,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -1450,13 +1251,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1467,11 +1267,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -1496,13 +1296,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1515,51 +1314,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is * subject to the rules defined on {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaNode"; - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1576,8 +1337,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + public function __construct() { } } @@ -1587,11 +1347,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1641,11 +1401,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1710,11 +1470,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Lists all date time range errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeRangeTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeRangeTargetingError"; /** @@ -1739,13 +1499,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1756,11 +1515,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@code DayPart} represents a time-period within a day of the week which is * targeted by a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPart { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPart"; /** @@ -1811,11 +1570,11 @@ public function __construct($dayOfWeek = null, $startTime = null, $endTime = nul * Modify the delivery times of line items for particular days of the week. By * default, line items are served at all days and times. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargeting"; /** @@ -1858,11 +1617,11 @@ public function __construct($dayParts = null, $timeZone = null) { /** * Lists all errors associated with day-part targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargetingError"; /** @@ -1887,13 +1646,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1905,11 +1663,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@link LineItem#costType}, delivered for a single line item for the * last 7 days * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeliveryData { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeliveryData"; /** @@ -1945,11 +1703,11 @@ public function __construct($units = null) { /** * Indicates the delivery performance of the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeliveryIndicator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeliveryIndicator"; /** @@ -1992,11 +1750,11 @@ public function __construct($expectedDeliveryPercentage = null, $actualDeliveryP /** * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCapabilityTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapabilityTargeting"; /** @@ -2039,11 +1797,11 @@ public function __construct($targetedDeviceCapabilities = null, $excludedDeviceC /** * Represents device categories that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCategoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategoryTargeting"; /** @@ -2087,11 +1845,11 @@ public function __construct($targetedDeviceCategories = null, $excludedDeviceCat * Represents device manufacturer that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceManufacturerTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturerTargeting"; /** @@ -2135,11 +1893,11 @@ public function __construct($isTargeted = null, $deviceManufacturers = null) { * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -2164,11 +1922,54 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -2179,11 +1980,11 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -2202,12 +2003,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2218,11 +2018,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -2247,13 +2047,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2263,11 +2062,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors that can result from a forecast request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError"; /** @@ -2292,13 +2091,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2309,11 +2107,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents a limit on the number of times a single viewer can be exposed to * the same {@link LineItem} in a specified time period. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCap"; /** @@ -2363,11 +2161,11 @@ public function __construct($maxImpressions = null, $numTimeUnits = null, $timeU /** * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError"; /** @@ -2392,13 +2190,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2408,11 +2205,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Targeting validation errors that can be used by different targeting types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GenericTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError"; /** @@ -2437,13 +2234,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2467,11 +2263,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * York as one of the targeted locations * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargeting"; /** @@ -2515,11 +2311,11 @@ public function __construct($targetedLocations = null, $excludedLocations = null * Lists all errors associated with geographical targeting for a * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError"; /** @@ -2544,81 +2340,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("Goal", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * Defines the criteria a {@link LineItem} needs to satisfy to meet its delivery goal. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class Goal { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Goal"; /** * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class + * @var tnsGoalType */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $goalType; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var tnsUnitType */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("InvalidUrlError", false)) { - /** - * Lists all errors associated with URLs. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class InvalidUrlError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError"; + public $unitType; /** * @access public - * @var tnsInvalidUrlErrorReason + * @var integer */ - public $reason; + public $units; /** * Gets the namesapce of this class @@ -2636,46 +2396,57 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($goalType = null, $unitType = null, $units = null) { + $this->goalType = $goalType; + $this->unitType = $unitType; + $this->units = $units; } } } -if (!class_exists("InventoryTargeting", false)) { +if (!class_exists("GrpSettings", false)) { /** - * A collection of targeted and excluded ad units and placements. + * {@code GrpSettings} contains information for a line item that will have a target demographic + * when serving. This information will be used to set up tracking and enable reporting on the + * demographic information. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryTargeting { + class GrpSettings { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettings"; /** * @access public - * @var AdUnitTargeting[] + * @var integer */ - public $targetedAdUnits; + public $minTargetAge; /** * @access public - * @var AdUnitTargeting[] + * @var integer */ - public $excludedAdUnits; + public $maxTargetAge; /** * @access public - * @var integer[] + * @var tnsGrpTargetGender */ - public $targetedPlacementIds; + public $targetGender; + + /** + * @access public + * @var tnsGrpProvider + */ + public $provider; + + /** + * @access public + * @var integer + */ + public $targetImpressionGoal; /** * Gets the namesapce of this class @@ -2693,30 +2464,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; + public function __construct($minTargetAge = null, $maxTargetAge = null, $targetGender = null, $provider = null, $targetImpressionGoal = null) { + $this->minTargetAge = $minTargetAge; + $this->maxTargetAge = $maxTargetAge; + $this->targetGender = $targetGender; + $this->provider = $provider; + $this->targetImpressionGoal = $targetImpressionGoal; } } } -if (!class_exists("InventoryTargetingError", false)) { +if (!class_exists("GrpSettingsError", false)) { /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. + * Errors associated with line items with GRP settings. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryTargetingError extends ApiError { + class GrpSettingsError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError"; /** * @access public - * @var tnsInventoryTargetingErrorReason + * @var tnsGrpSettingsErrorReason */ public $reason; @@ -2736,32 +2508,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LabelEntityAssociationError", false)) { +if (!class_exists("ImageError", false)) { /** - * Errors specific to creating label entity associations. + * Lists all errors associated with images. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelEntityAssociationError extends ApiError { + class ImageError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError"; /** * @access public - * @var tnsLabelEntityAssociationErrorReason + * @var tnsImageErrorReason */ public $reason; @@ -2781,67 +2552,357 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LineItemAction", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Represents the actions that can be performed on {@link LineItem} objects. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargeting"; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $targetedAdUnits; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } + + } +} + +if (!class_exists("InventoryTargetingError", false)) { + /** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemAction", false)) { + /** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 */ class LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemAction"; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $LineItemActionType; - private $_parameterMap = array( - "LineItemAction.Type" => "LineItemActionType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { } + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError"; + + /** + * @access public + * @var tnsLineItemActivityAssociationErrorReason + */ + public $reason; + /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - protected function getParameterMap() { - return $this->_parameterMap; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } + } +} + +if (!class_exists("LineItemActivityAssociation", false)) { + /** + * A {@code LineItemActivityAssociation} associates a {@link LineItem} with an {@link Activity} so + * that the conversions of the {@link Activity} can be counted against the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociation"; + + /** + * @access public + * @var integer + */ + public $activityId; + + /** + * @access public + * @var Money + */ + public $clickThroughConversionCost; + + /** + * @access public + * @var Money + */ + public $viewThroughConversionCost; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2858,8 +2919,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemActionType = null) { - $this->LineItemActionType = $LineItemActionType; + public function __construct($activityId = null, $clickThroughConversionCost = null, $viewThroughConversionCost = null) { + $this->activityId = $activityId; + $this->clickThroughConversionCost = $clickThroughConversionCost; + $this->viewThroughConversionCost = $viewThroughConversionCost; } } @@ -2869,11 +2932,11 @@ public function __construct($LineItemActionType = null) { /** * Lists all errors associated with line item-to-creative association dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemCreativeAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError"; /** @@ -2898,13 +2961,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2914,11 +2976,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A catch-all error that lists all generic errors associated with LineItem. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemError"; /** @@ -2943,13 +3005,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2959,11 +3020,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with LineItem start and end dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemFlightDateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemFlightDateError"; /** @@ -2988,13 +3049,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3004,11 +3064,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors for executing operations on line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError"; /** @@ -3033,13 +3093,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3049,11 +3108,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemPage"; /** @@ -3104,11 +3163,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * The {@code LineItemSummary} represents the base class from which a {@code * LineItem} is derived. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemSummary { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemSummary"; /** @@ -3207,24 +3266,6 @@ class LineItemSummary { */ public $priority; - /** - * @access public - * @var tnsUnitType - */ - public $unitType; - - /** - * @access public - * @var tnsLineItemSummaryDuration - */ - public $duration; - - /** - * @access public - * @var integer - */ - public $unitsBought; - /** * @access public * @var Money @@ -3267,6 +3308,12 @@ class LineItemSummary { */ public $creativePlaceholders; + /** + * @access public + * @var LineItemActivityAssociation[] + */ + public $activityAssociations; + /** * @access public * @var tnsTargetPlatform @@ -3303,6 +3350,12 @@ class LineItemSummary { */ public $skipInventoryCheck; + /** + * @access public + * @var boolean + */ + public $skipCrossSellingRuleWarningChecks; + /** * @access public * @var boolean @@ -3417,6 +3470,12 @@ class LineItemSummary { */ public $customFieldValues; + /** + * @access public + * @var boolean + */ + public $isSetTopBoxEnabled; + /** * @access public * @var boolean @@ -3425,41 +3484,27 @@ class LineItemSummary { /** * @access public - * @var string + * @var SetTopBoxInfo */ - public $LineItemSummaryType; - private $_parameterMap = array( - "LineItemSummary.Type" => "LineItemSummaryType", - ); + public $setTopBoxDisplayInfo; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * @access public + * @var Goal */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $primaryGoal; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var Goal[] */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $secondaryGoals; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var GrpSettings */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $grpSettings; /** * Gets the namesapce of this class @@ -3477,7 +3522,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { + public function __construct($orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = null) { $this->orderId = $orderId; $this->id = $id; $this->name = $name; @@ -3494,9 +3539,6 @@ public function __construct($orderId = null, $id = null, $name = null, $external $this->frequencyCaps = $frequencyCaps; $this->lineItemType = $lineItemType; $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; $this->costPerUnit = $costPerUnit; $this->valueCostPerUnit = $valueCostPerUnit; $this->costType = $costType; @@ -3504,12 +3546,14 @@ public function __construct($orderId = null, $id = null, $name = null, $external $this->discount = $discount; $this->contractedUnitsBought = $contractedUnitsBought; $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; $this->targetPlatform = $targetPlatform; $this->environmentType = $environmentType; $this->companionDeliveryOption = $companionDeliveryOption; $this->creativePersistenceType = $creativePersistenceType; $this->allowOverbook = $allowOverbook; $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; $this->reserveAtCreation = $reserveAtCreation; $this->stats = $stats; $this->deliveryIndicator = $deliveryIndicator; @@ -3529,8 +3573,12 @@ public function __construct($orderId = null, $id = null, $name = null, $external $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; $this->customFieldValues = $customFieldValues; + $this->isSetTopBoxEnabled = $isSetTopBoxEnabled; $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; } } @@ -3543,11 +3591,11 @@ public function __construct($orderId = null, $id = null, $name = null, $external * the location will be represented as just the base class, otherwise it will be * sub-classed correctly. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpLocation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Location"; /** @@ -3574,44 +3622,6 @@ class DfpLocation { */ public $displayName; - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3628,12 +3638,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null, $LocationType = null) { + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { $this->id = $id; $this->type = $type; $this->canonicalParentId = $canonicalParentId; $this->displayName = $displayName; - $this->LocationType = $LocationType; } } @@ -3643,11 +3652,11 @@ public function __construct($id = null, $type = null, $canonicalParentId = null, /** * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileCarrierTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrierTargeting"; /** @@ -3690,11 +3699,11 @@ public function __construct($isTargeted = null, $mobileCarriers = null) { /** * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceSubmodelTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodelTargeting"; /** @@ -3737,11 +3746,11 @@ public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobi /** * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceTargeting"; /** @@ -3784,11 +3793,11 @@ public function __construct($targetedMobileDevices = null, $excludedMobileDevice /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -3831,11 +3840,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -3860,13 +3869,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3876,11 +3884,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -3905,57 +3913,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -3966,11 +3929,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { * Represents operating systems that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemTargeting"; /** @@ -4013,11 +3976,11 @@ public function __construct($isTargeted = null, $operatingSystems = null) { /** * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemVersionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersionTargeting"; /** @@ -4060,11 +4023,11 @@ public function __construct($targetedOperatingSystemVersions = null, $excludedOp /** * Lists all errors associated with orders. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OrderError"; /** @@ -4089,13 +4052,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4105,11 +4067,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -4134,13 +4096,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4150,11 +4111,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The action used for pausing {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PauseLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PauseLineItems"; /** @@ -4173,9 +4134,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemActionType = $LineItemActionType; } } @@ -4185,11 +4145,11 @@ public function __construct($LineItemActionType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -4214,13 +4174,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticError", false)) { + /** + * Errors associated with programmatic line items + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProgrammaticError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError"; + + /** + * @access public + * @var tnsProgrammaticErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4231,11 +4234,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -4260,13 +4263,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4277,11 +4279,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -4306,13 +4308,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4323,11 +4324,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -4352,13 +4353,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4368,11 +4368,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -4397,13 +4397,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4413,11 +4412,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The action used for releasing {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReleaseLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReleaseLineItems"; /** @@ -4436,9 +4435,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemActionType = $LineItemActionType; } } @@ -4448,11 +4446,11 @@ public function __construct($LineItemActionType = null) { /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -4477,13 +4475,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4493,11 +4490,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -4522,13 +4519,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4539,11 +4535,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -4568,13 +4564,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4584,11 +4579,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating {@link Size}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError"; /** @@ -4613,13 +4608,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4629,11 +4623,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with LineItem's reservation details. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReservationDetailsError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReservationDetailsError"; /** @@ -4658,13 +4652,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4674,11 +4667,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The action used for reserving {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReserveLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReserveLineItems"; /** @@ -4703,10 +4696,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($skipInventoryCheck = null, $LineItemActionType = null) { + public function __construct($skipInventoryCheck = null) { parent::__construct(); $this->skipInventoryCheck = $skipInventoryCheck; - $this->LineItemActionType = $LineItemActionType; } } @@ -4716,11 +4708,11 @@ public function __construct($skipInventoryCheck = null, $LineItemActionType = nu /** * The action used for resuming {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ResumeLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ResumeLineItems"; /** @@ -4745,10 +4737,53 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($skipInventoryCheck = null, $LineItemActionType = null) { + public function __construct($skipInventoryCheck = null) { parent::__construct(); $this->skipInventoryCheck = $skipInventoryCheck; - $this->LineItemActionType = $LineItemActionType; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -4758,11 +4793,11 @@ public function __construct($skipInventoryCheck = null, $LineItemActionType = nu /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -4787,13 +4822,118 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxInfo", false)) { + /** + * Contains data used to display information synchronized with Canoe for set-top box enabled + * {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxInfo"; + + /** + * @access public + * @var tnsSetTopBoxSyncStatus + */ + public $syncStatus; + + /** + * @access public + * @var tnsCanoeSyncResult + */ + public $lastSyncResult; + + /** + * @access public + * @var string + */ + public $lastSyncCanoeResponseMessage; + + /** + * @access public + * @var string + */ + public $nielsenProductCategoryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($syncStatus = null, $lastSyncResult = null, $lastSyncCanoeResponseMessage = null, $nielsenProductCategoryCode = null) { + $this->syncStatus = $syncStatus; + $this->lastSyncResult = $lastSyncResult; + $this->lastSyncCanoeResponseMessage = $lastSyncCanoeResponseMessage; + $this->nielsenProductCategoryCode = $nielsenProductCategoryCode; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError"; + + /** + * @access public + * @var tnsSetTopBoxLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4805,11 +4945,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, *

    * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Size"; /** @@ -4859,11 +4999,11 @@ public function __construct($width = null, $height = null, $isAspectRatio = null /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -4878,12 +5018,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -4900,10 +5034,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -4913,11 +5046,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -4988,11 +5121,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -5035,11 +5168,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -5064,13 +5197,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5081,11 +5213,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@code Stats} contains trafficking statistics for {@link LineItem} and * {@link LineItemCreativeAssociation} objects * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Stats { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Stats"; /** @@ -5142,11 +5274,11 @@ public function __construct($impressionsDelivered = null, $clicksDelivered = nul /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -5171,13 +5303,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5188,11 +5319,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -5236,11 +5367,11 @@ public function __construct($key = null, $value = null) { * Contains targeting criteria for {@link LineItem} objects. See * {@link LineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Targeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Targeting"; /** @@ -5325,11 +5456,11 @@ public function __construct($geoTargeting = null, $inventoryTargeting = null, $d /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -5354,13 +5485,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5370,11 +5500,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a technology entity that can be targeted. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Technology"; /** @@ -5389,44 +5519,6 @@ class Technology { */ public $name; - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -5443,10 +5535,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5456,11 +5547,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Technology targeting validation errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargetingError"; /** @@ -5485,13 +5576,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5501,11 +5591,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a specific time in a day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TimeOfDay { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TimeOfDay"; /** @@ -5548,11 +5638,11 @@ public function __construct($hour = null, $minute = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -5571,12 +5661,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5586,11 +5675,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * The action used for unarchiving {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UnarchiveLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UnarchiveLineItems"; /** @@ -5609,9 +5698,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemActionType = $LineItemActionType; } } @@ -5621,11 +5709,11 @@ public function __construct($LineItemActionType = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -5644,12 +5732,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -5659,11 +5746,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -5700,11 +5787,11 @@ public function __construct($numChanges = null) { * Provides line items the ability to target or exclude users visiting their * websites from a list of domains or subdomains. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UserDomainTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargeting"; /** @@ -5747,11 +5834,11 @@ public function __construct($domains = null, $targeted = null) { /** * Lists all errors related to user domain targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UserDomainTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargetingError"; /** @@ -5776,66 +5863,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; /** * Gets the namesapce of this class @@ -5853,8 +5901,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -5865,11 +5912,11 @@ public function __construct($ValueType = null) { * Represents a targetable position within a video. A video ad can be targeted * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPosition { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPosition"; /** @@ -5916,11 +5963,11 @@ public function __construct($positionType = null, $midrollIndex = null) { * {@code post-roll} (after a video has completed playback) and * {@code mid-roll} (during video playback). * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionTargeting"; /** @@ -5958,11 +6005,11 @@ public function __construct($targetedPositions = null) { * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, * either first or last will target that position. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionWithinPod { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionWithinPod"; /** @@ -5998,11 +6045,11 @@ public function __construct($index = null) { /** * Represents the options for targetable positions within a video. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionTarget { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionTarget"; /** @@ -6053,11 +6100,11 @@ public function __construct($videoPosition = null, $videoBumperType = null, $vid * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -6086,11 +6133,11 @@ public function __construct() { /** * Specific audience extension error reasons. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceExtensionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError.Reason"; /** @@ -6122,11 +6169,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -6151,15 +6198,48 @@ public function __construct() { } } +if (!class_exists("CanoeSyncResult", false)) { + /** + * Represents sync result types between set-top box enabled {@link LineItem line items} and Canoe. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CanoeSyncResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CanoeSyncResult"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ClickTrackingLineItemErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingLineItemError.Reason"; /** @@ -6184,15 +6264,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -6222,11 +6335,11 @@ public function __construct() { * The delivery option for companions. Used for line items whose environmentType is * {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanionDeliveryOption { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanionDeliveryOption"; /** @@ -6255,11 +6368,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanyCreditStatusErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError.Reason"; /** @@ -6289,11 +6402,11 @@ public function __construct() { * Describes the computed {@link LineItem} status that is derived from the * current state of the line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ComputedStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ComputedStatus"; /** @@ -6322,11 +6435,11 @@ public function __construct() { /** * The reasons for the metadata targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError.Reason"; /** @@ -6355,11 +6468,11 @@ public function __construct() { /** * Describes the {@link LineItem} actions that are billable. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CostType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CostType"; /** @@ -6388,11 +6501,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError.Reason"; /** @@ -6422,11 +6535,11 @@ public function __construct() { * The strategy to use for displaying multiple {@link Creative} objects that are * associated with a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeRotationType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeRotationType"; /** @@ -6456,11 +6569,11 @@ public function __construct() { * Descriptions of the types of sizes a creative can be. Not all creatives can * be described by a height-width pair, this provides additional context. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeSizeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSizeType"; /** @@ -6489,11 +6602,11 @@ public function __construct() { /** * The reason of the error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CrossSellErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError.Reason"; /** @@ -6522,12 +6635,210 @@ public function __construct() { /** * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayOfWeek", false)) { + /** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayOfWeek"; /** * Gets the namesapce of this class @@ -6551,16 +6862,16 @@ public function __construct() { } } -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { +if (!class_exists("DayPartTargetingErrorReason", false)) { /** - * Specifies the available logical operators. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCriteriaSetLogicalOperator { + class DayPartTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayPartTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6584,16 +6895,16 @@ public function __construct() { } } -if (!class_exists("CustomFieldValueErrorReason", false)) { +if (!class_exists("DeliveryTimeZone", false)) { /** - * The reasons for the target error. + * Represents the time zone to be used for {@link DayPartTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomFieldValueErrorReason { + class DeliveryTimeZone { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryTimeZone"; /** * Gets the namesapce of this class @@ -6617,16 +6928,17 @@ public function __construct() { } } -if (!class_exists("CustomTargetingErrorReason", false)) { +if (!class_exists("DeliveryRateType", false)) { /** - * The reasons for the target error. + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomTargetingErrorReason { + class DeliveryRateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryRateType"; /** * Gets the namesapce of this class @@ -6650,16 +6962,16 @@ public function __construct() { } } -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * Specifies the available comparison operators. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AudienceSegmentCriteriaComparisonOperator { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -6683,16 +6995,16 @@ public function __construct() { } } -if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { +if (!class_exists("EnvironmentType", false)) { /** - * {@link ApiErrorReason} enum for date time range targeting error. + * Enum for the valid environments in which ads can be shown. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DateTimeRangeTargetingErrorReason { + class EnvironmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EnvironmentType"; /** * Gets the namesapce of this class @@ -6716,16 +7028,16 @@ public function __construct() { } } -if (!class_exists("DayOfWeek", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * Days of the week. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DayOfWeek { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DayOfWeek"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -6749,16 +7061,16 @@ public function __construct() { } } -if (!class_exists("DayPartTargetingErrorReason", false)) { +if (!class_exists("ForecastErrorReason", false)) { /** - * The reasons for the target error. + * Reason why a forecast could not be retrieved. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DayPartTargetingErrorReason { + class ForecastErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DayPartTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ForecastError.Reason"; /** * Gets the namesapce of this class @@ -6782,16 +7094,16 @@ public function __construct() { } } -if (!class_exists("DeliveryTimeZone", false)) { +if (!class_exists("FrequencyCapErrorReason", false)) { /** - * Represents the time zone to be used for {@link DayPartTargeting}. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeliveryTimeZone { + class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeliveryTimeZone"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FrequencyCapError.Reason"; /** * Gets the namesapce of this class @@ -6815,17 +7127,16 @@ public function __construct() { } } -if (!class_exists("DeliveryRateType", false)) { +if (!class_exists("GenericTargetingErrorReason", false)) { /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeliveryRateType { + class GenericTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeliveryRateType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GenericTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6849,16 +7160,16 @@ public function __construct() { } } -if (!class_exists("EnvironmentType", false)) { +if (!class_exists("GeoTargetingErrorReason", false)) { /** - * Enum for the valid environments in which ads can be shown. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class EnvironmentType { + class GeoTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EnvironmentType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeoTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6882,16 +7193,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("GoalType", false)) { /** - * A feature is being used that is not enabled on the current network. + * Specifies the type of the goal for a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureErrorReason { + class GoalType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GoalType"; /** * Gets the namesapce of this class @@ -6915,16 +7226,16 @@ public function __construct() { } } -if (!class_exists("ForecastErrorReason", false)) { +if (!class_exists("GrpProvider", false)) { /** - * Reason why a forecast could not be retrieved. + * Represents available GRP providers that a line item will have its target demographic measured by. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ForecastErrorReason { + class GrpProvider { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ForecastError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpProvider"; /** * Gets the namesapce of this class @@ -6948,16 +7259,16 @@ public function __construct() { } } -if (!class_exists("FrequencyCapErrorReason", false)) { +if (!class_exists("GrpSettingsErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * Reason for GRP settings error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FrequencyCapErrorReason { + class GrpSettingsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError.Reason"; /** * Gets the namesapce of this class @@ -6981,16 +7292,16 @@ public function __construct() { } } -if (!class_exists("GenericTargetingErrorReason", false)) { +if (!class_exists("GrpTargetGender", false)) { /** - * The reasons for the target error. + * Represents the target gender for a GRP demographic targeted line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GenericTargetingErrorReason { + class GrpTargetGender { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GenericTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpTargetGender"; /** * Gets the namesapce of this class @@ -7014,16 +7325,16 @@ public function __construct() { } } -if (!class_exists("GeoTargetingErrorReason", false)) { +if (!class_exists("ImageErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GeoTargetingErrorReason { + class ImageErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeoTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError.Reason"; /** * Gets the namesapce of this class @@ -7051,11 +7362,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -7084,11 +7395,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -7117,11 +7428,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError.Reason"; /** @@ -7150,11 +7461,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -7179,16 +7490,16 @@ public function __construct() { } } -if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemCreativeAssociationErrorReason { + class LineItemActivityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; /** * Gets the namesapce of this class @@ -7212,17 +7523,16 @@ public function __construct() { } } -if (!class_exists("LineItemDiscountType", false)) { +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { /** - * Describes the possible discount types on the cost of booking a - * {@link LineItem}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemDiscountType { + class LineItemCreativeAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemDiscountType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; /** * Gets the namesapce of this class @@ -7246,16 +7556,17 @@ public function __construct() { } } -if (!class_exists("LineItemErrorReason", false)) { +if (!class_exists("LineItemDiscountType", false)) { /** - * The reasons for the target error. + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemErrorReason { + class LineItemDiscountType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemDiscountType"; /** * Gets the namesapce of this class @@ -7279,16 +7590,16 @@ public function __construct() { } } -if (!class_exists("LineItemFlightDateErrorReason", false)) { +if (!class_exists("LineItemErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemFlightDateErrorReason { + class LineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemFlightDateError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemError.Reason"; /** * Gets the namesapce of this class @@ -7312,16 +7623,16 @@ public function __construct() { } } -if (!class_exists("LineItemOperationErrorReason", false)) { +if (!class_exists("LineItemFlightDateErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemOperationErrorReason { + class LineItemFlightDateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemOperationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; /** * Gets the namesapce of this class @@ -7345,18 +7656,16 @@ public function __construct() { } } -if (!class_exists("LineItemSummaryDuration", false)) { +if (!class_exists("LineItemOperationErrorReason", false)) { /** - * Specifies the time period used for limiting the number of ads served for a - * {@link LineItem}. For valid and default values of duration for each line - * item type, see {@link LineItem#duration}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemSummaryDuration { + class LineItemOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemSummary.Duration"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemOperationError.Reason"; /** * Gets the namesapce of this class @@ -7384,11 +7693,11 @@ public function __construct() { /** * Specifies the reservation status of the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemSummaryReservationStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemSummary.ReservationStatus"; /** @@ -7418,11 +7727,11 @@ public function __construct() { * {@code LineItemType} indicates the priority of a {@link LineItem}, determined * by the way in which impressions are reserved to be served for it. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemType"; /** @@ -7452,11 +7761,11 @@ public function __construct() { * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This * field is required. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MinuteOfHour { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MinuteOfHour"; /** @@ -7485,11 +7794,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -7518,11 +7827,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -7551,11 +7860,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OrderError.Reason"; /** @@ -7584,11 +7893,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -7617,11 +7926,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -7660,11 +7969,11 @@ public function __construct() { * slots. If set to exclude all ads, no other ads can be shown until the * page is changed. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativePersistenceType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativePersistenceType"; /** @@ -7689,15 +7998,48 @@ public function __construct() { } } +if (!class_exists("ProgrammaticErrorReason", false)) { + /** + * Audience extension is not supported by programmatic line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProgrammaticErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -7726,11 +8068,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -7769,11 +8111,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -7802,11 +8144,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -7835,11 +8177,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -7868,11 +8210,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -7901,12 +8243,112 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RoadblockingType", false)) { + /** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201502 */ - class RequiredNumberErrorReason { + class RoadblockingType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RoadblockingType"; /** * Gets the namesapce of this class @@ -7930,17 +8372,16 @@ public function __construct() { } } -if (!class_exists("RequiredSizeErrorReason", false)) { +if (!class_exists("AudienceSegmentErrorReason", false)) { /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. + * Reason of the given {@link AudienceSegmentError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredSizeErrorReason { + class AudienceSegmentErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError.Reason"; /** * Gets the namesapce of this class @@ -7964,16 +8405,16 @@ public function __construct() { } } -if (!class_exists("ReservationDetailsErrorReason", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ReservationDetailsErrorReason { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReservationDetailsError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -7997,16 +8438,16 @@ public function __construct() { } } -if (!class_exists("RoadblockingType", false)) { +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { /** - * Describes the roadblocking types. + * Reason for set-top box error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RoadblockingType { + class SetTopBoxLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RoadblockingType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; /** * Gets the namesapce of this class @@ -8030,16 +8471,11 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { - /** - * Describes reasons for server errors - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ServerErrorReason { +if (!class_exists("SetTopBoxSyncStatus", false)) { + class SetTopBoxSyncStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxSyncStatus"; /** * Gets the namesapce of this class @@ -8068,11 +8504,11 @@ public function __construct() { * Specifies the start type to use for an entity with a start date time field. * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StartDateTimeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StartDateTimeType"; /** @@ -8101,11 +8537,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -8134,11 +8570,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -8167,11 +8603,11 @@ public function __construct() { /** * Indicates the target platform. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TargetPlatform { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TargetPlatform"; /** @@ -8200,11 +8636,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -8233,11 +8669,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargetingError.Reason"; /** @@ -8266,11 +8702,11 @@ public function __construct() { /** * Represent the possible time units for frequency capping. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TimeUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TimeUnit"; /** @@ -8303,11 +8739,11 @@ public function __construct() { * {@link CostType} and {@link UnitType} will refer to the * same unit. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UnitType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UnitType"; /** @@ -8336,11 +8772,11 @@ public function __construct() { /** * {@link ApiErrorReason} enum for user domain targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UserDomainTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargetingError.Reason"; /** @@ -8372,11 +8808,11 @@ public function __construct() { * pod positions, {@link VideoPositionType#PREROLL}, * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoBumperType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoBumperType"; /** @@ -8405,11 +8841,11 @@ public function __construct() { /** * Represents a targetable position within a video. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class VideoPositionType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPosition.Type"; /** @@ -8434,103 +8870,6 @@ public function __construct() { } } -if (!class_exists("CreateLineItem", false)) { - /** - * Creates a new {@link LineItem}. - * - * These fields are required: - *
      - *
    • {@link LineItem#costPerUnit}
    • - *
    • {@link LineItem#costType}
    • - *
    • {@link LineItem#endDateTime}
    • - *
    • {@link LineItem#lineItemType}
    • - *
    • {@link LineItem#name}
    • - *
    • {@link LineItem#orderId}
    • - *
    • {@link LineItem#startDateTime}
    • - *
    • {@link LineItem#unitsBought}
    • - *
    • {@link LineItem#creativePlaceholders}
    • - *
    • {@link LineItem#targeting}
    • - *
    - * - * @param lineItem the line item to create - * @return the line item with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $lineItem; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; - } - - } -} - -if (!class_exists("CreateLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateLineItems", false)) { /** * Creates new {@link LineItem} objects. @@ -8538,11 +8877,11 @@ public function __construct($rval = null) { * @param lineItems the line items to create * @return the created line items with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateLineItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -8578,11 +8917,11 @@ public function __construct($lineItems = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateLineItemsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -8614,89 +8953,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetLineItem", false)) { - /** - * Returns the {@link LineItem} uniquely identified by the given ID. - * - * @param lineItemId the ID of the line item, which must already exist - * @return the {@code LineItem} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $lineItemId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItemId = null) { - $this->lineItemId = $lineItemId; - } - - } -} - -if (!class_exists("GetLineItemResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetLineItemsByStatement", false)) { /** * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the @@ -8712,23 +8968,25 @@ public function __construct($rval = null) { * ExternalId{@link LineItem#externalId} * Id{@link LineItem#id} * IsMissingCreatives{@link LineItem#isMissingCreatives} + * IsSetTopBoxEnabled{@link LineItem#isSetTopBoxEnabled} * LastModifiedDateTime{@link LineItem#lastModifiedDateTime} * LineItemType{@link LineItem#lineItemType} * Name{@link LineItem#name} * OrderId{@link LineItem#orderId} * StartDateTime{@link LineItem#startDateTime} * Status{@link LineItem#status} + * Targeting{@link LineItem#targeting} * UnitsBought{@link LineItem#unitsBought} * * @param filterStatement a Publisher Query Language statement used to filter * a set of line items. * @return the line items that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetLineItemsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -8764,11 +9022,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetLineItemsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -8810,11 +9068,11 @@ public function __construct($rval = null) { * a set of line items * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformLineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -8857,11 +9115,11 @@ public function __construct($lineItemAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformLineItemActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -8893,25 +9151,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLineItem", false)) { +if (!class_exists("UpdateLineItems", false)) { /** - * Updates the specified {@link LineItem}. + * Updates the specified {@link LineItem} objects. * - * @param lineItem the line item to update - * @return the updated line item + * @param lineItems the line items to update + * @return the updated line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateLineItem { + class UpdateLineItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LineItem + * @var LineItem[] */ - public $lineItem; + public $lineItems; /** * Gets the namesapce of this class @@ -8929,27 +9187,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($lineItem = null) { - $this->lineItem = $lineItem; + public function __construct($lineItems = null) { + $this->lineItems = $lineItems; } } } -if (!class_exists("UpdateLineItemResponse", false)) { +if (!class_exists("UpdateLineItemsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateLineItemResponse { + class UpdateLineItemsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LineItem + * @var LineItem[] */ public $rval; @@ -8976,65 +9234,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLineItems", false)) { - /** - * Updates the specified {@link LineItem} objects. - * - * @param lineItems the line items to update - * @return the updated line items - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateLineItems { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $lineItems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($lineItems = null) { - $this->lineItems = $lineItems; - } - - } -} - -if (!class_exists("UpdateLineItemsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateLineItemsResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var LineItem[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -9052,8 +9268,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -9063,11 +9279,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ActivateLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateLineItems"; /** @@ -9086,9 +9302,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemActionType = $LineItemActionType; } } @@ -9098,11 +9313,11 @@ public function __construct($LineItemActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -9127,11 +9342,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -9141,11 +9355,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * The action used for archiving {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ArchiveLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ArchiveLineItems"; /** @@ -9164,9 +9378,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemActionType = $LineItemActionType; } } @@ -9177,11 +9390,11 @@ public function __construct($LineItemActionType = null) { * Represents a group of bandwidths that are logically organized by some well * known generic names such as 'Cable' or 'DSL'. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BandwidthGroup extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroup"; /** @@ -9200,11 +9413,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9214,11 +9426,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -9243,10 +9455,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9256,11 +9467,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an internet browser. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Browser extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Browser"; /** @@ -9291,13 +9502,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9307,11 +9517,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $id = nu /** * Represents a Browser's language. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserLanguage extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguage"; /** @@ -9330,11 +9540,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9348,11 +9557,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * criteria targeting tree is subject to the rules defined on * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaSet"; /** @@ -9383,11 +9592,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { + public function __construct($logicalOperator = null, $children = null) { parent::__construct(); $this->logicalOperator = $logicalOperator; $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -9398,11 +9606,11 @@ public function __construct($logicalOperator = null, $children = null, $CustomCr * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree * structure. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaLeaf extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaLeaf"; /** @@ -9421,9 +9629,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { + public function __construct() { parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -9433,11 +9640,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentCriteria"; /** @@ -9481,11 +9688,11 @@ public function __construct($operator = null, $audienceSegmentIds = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -9510,10 +9717,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9523,11 +9729,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -9552,10 +9758,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9566,11 +9771,11 @@ public function __construct($value = null, $ValueType = null) { * The action used for deleting {@link LineItem} objects. A line item can be * deleted if it has never been eligible to serve. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeleteLineItems extends LineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeleteLineItems"; /** @@ -9589,9 +9794,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LineItemActionType = null) { + public function __construct() { parent::__construct(); - $this->LineItemActionType = $LineItemActionType; } } @@ -9601,11 +9805,11 @@ public function __construct($LineItemActionType = null) { /** * Represents a capability of a physical device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCapability extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapability"; /** @@ -9624,11 +9828,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9638,11 +9841,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents the category of a device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCategory extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategory"; /** @@ -9661,11 +9864,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9675,11 +9877,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a mobile device's manufacturer. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceManufacturer extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturer"; /** @@ -9698,11 +9900,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9713,11 +9914,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * {@code LineItem} is an advertiser's commitment to purchase a specific number * of ad impressions, clicks, or time. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItem extends LineItemSummary { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItem"; /** @@ -9742,7 +9943,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $unitType = null, $duration = null, $unitsBought = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isMissingCreatives = null, $LineItemSummaryType = null) { + public function __construct($targeting = null, $orderId = null, $id = null, $name = null, $externalId = null, $orderName = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $autoExtensionDays = null, $unlimitedEndDateTime = null, $creativeRotationType = null, $deliveryRateType = null, $roadblockingType = null, $frequencyCaps = null, $lineItemType = null, $priority = null, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = null, $reserveAtCreation = null, $stats = null, $deliveryIndicator = null, $deliveryData = null, $budget = null, $status = null, $reservationStatus = null, $isArchived = null, $webPropertyCode = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $lastModifiedByApp = null, $notes = null, $lastModifiedDateTime = null, $creationDateTime = null, $isPrioritizedPreferredDealsEnabled = null, $adExchangeAuctionOpeningPriority = null, $customFieldValues = null, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = null) { parent::__construct(); $this->targeting = $targeting; $this->orderId = $orderId; @@ -9761,9 +9962,6 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam $this->frequencyCaps = $frequencyCaps; $this->lineItemType = $lineItemType; $this->priority = $priority; - $this->unitType = $unitType; - $this->duration = $duration; - $this->unitsBought = $unitsBought; $this->costPerUnit = $costPerUnit; $this->valueCostPerUnit = $valueCostPerUnit; $this->costType = $costType; @@ -9771,12 +9969,14 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam $this->discount = $discount; $this->contractedUnitsBought = $contractedUnitsBought; $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; $this->targetPlatform = $targetPlatform; $this->environmentType = $environmentType; $this->companionDeliveryOption = $companionDeliveryOption; $this->creativePersistenceType = $creativePersistenceType; $this->allowOverbook = $allowOverbook; $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; $this->reserveAtCreation = $reserveAtCreation; $this->stats = $stats; $this->deliveryIndicator = $deliveryIndicator; @@ -9796,8 +9996,12 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam $this->isPrioritizedPreferredDealsEnabled = $isPrioritizedPreferredDealsEnabled; $this->adExchangeAuctionOpeningPriority = $adExchangeAuctionOpeningPriority; $this->customFieldValues = $customFieldValues; + $this->isSetTopBoxEnabled = $isSetTopBoxEnabled; $this->isMissingCreatives = $isMissingCreatives; - $this->LineItemSummaryType = $LineItemSummaryType; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; } } @@ -9808,11 +10012,11 @@ public function __construct($targeting = null, $orderId = null, $id = null, $nam * Represents a mobile carrier. * Carrier targeting is only available to DFP mobile publishers. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileCarrier extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrier"; /** @@ -9831,11 +10035,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9845,11 +10048,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a Mobile Device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDevice extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDevice"; /** @@ -9874,12 +10077,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->manufacturerCriterionId = $manufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9889,11 +10091,11 @@ public function __construct($manufacturerCriterionId = null, $id = null, $name = /** * Represents a mobile device submodel. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceSubmodel extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodel"; /** @@ -9924,13 +10126,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -9940,11 +10141,11 @@ public function __construct($mobileDeviceCriterionId = null, $deviceManufacturer /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -9969,10 +10170,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -9982,11 +10182,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an Operating System, such as Linux, Mac OS or Windows. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystem extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystem"; /** @@ -10005,11 +10205,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -10019,11 +10218,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific version of an operating system. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemVersion extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersion"; /** @@ -10060,14 +10259,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->microVersion = $microVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -10077,11 +10275,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $microVe /** * The action used for reserving and overbooking {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReserveAndOverbookLineItems extends ReserveLineItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReserveAndOverbookLineItems"; /** @@ -10112,11 +10310,11 @@ public function __construct($skipInventoryCheck = null) { /** * The action used for resuming and overbooking {@link LineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ResumeAndOverbookLineItems extends ResumeLineItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ResumeAndOverbookLineItems"; /** @@ -10147,11 +10345,11 @@ public function __construct($skipInventoryCheck = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -10176,10 +10374,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -10189,11 +10386,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -10218,10 +10415,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -10233,11 +10429,11 @@ public function __construct($value = null, $ValueType = null) { * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} * or {@link CustomTargetingKey.Type#FREEFORM}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria"; /** @@ -10288,25 +10484,26 @@ public function __construct($keyId = null, $valueIds = null, $operator = null) { /** * LineItemService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemService extends DfpSoapClient { const SERVICE_NAME = "LineItemService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/LineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/LineItemService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/LineItemService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/LineItemService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateLineItems" => "ActivateLineItems", "AdUnitTargeting" => "AdUnitTargeting", "ApiError" => "ApiError", @@ -10317,7 +10514,6 @@ class LineItemService extends DfpSoapClient { "AppliedLabel" => "AppliedLabel", "ArchiveLineItems" => "ArchiveLineItems", "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BandwidthGroup" => "BandwidthGroup", "BandwidthGroupTargeting" => "BandwidthGroupTargeting", @@ -10328,7 +10524,7 @@ class LineItemService extends DfpSoapClient { "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", @@ -10363,6 +10559,7 @@ class LineItemService extends DfpSoapClient { "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", @@ -10371,12 +10568,18 @@ class LineItemService extends DfpSoapClient { "GenericTargetingError" => "GenericTargetingError", "GeoTargeting" => "GeoTargeting", "GeoTargetingError" => "GeoTargetingError", + "Goal" => "Goal", + "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", "InventoryTargetingError" => "InventoryTargetingError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "LineItemAction" => "LineItemAction", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", + "LineItemActivityAssociation" => "LineItemActivityAssociation", "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", "LineItem" => "LineItem", "LineItemError" => "LineItemError", @@ -10395,7 +10598,6 @@ class LineItemService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OperatingSystem" => "OperatingSystem", "OperatingSystemTargeting" => "OperatingSystemTargeting", "OperatingSystemVersion" => "OperatingSystemVersion", @@ -10404,6 +10606,7 @@ class LineItemService extends DfpSoapClient { "ParseError" => "ParseError", "PauseLineItems" => "PauseLineItems", "PermissionError" => "PermissionError", + "ProgrammaticError" => "ProgrammaticError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", @@ -10418,7 +10621,10 @@ class LineItemService extends DfpSoapClient { "ReserveLineItems" => "ReserveLineItems", "ResumeAndOverbookLineItems" => "ResumeAndOverbookLineItems", "ResumeLineItems" => "ResumeLineItems", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", + "SetTopBoxInfo" => "SetTopBoxInfo", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", "SetValue" => "SetValue", "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", @@ -10448,7 +10654,9 @@ class LineItemService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CanoeSyncResult" => "CanoeSyncResult", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", @@ -10469,22 +10677,28 @@ class LineItemService extends DfpSoapClient { "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "DeliveryTimeZone" => "DeliveryTimeZone", "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GoalType" => "GoalType", + "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", "LineItemDiscountType" => "LineItemDiscountType", "LineItemError.Reason" => "LineItemErrorReason", "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", "LineItemOperationError.Reason" => "LineItemOperationErrorReason", - "LineItemSummary.Duration" => "LineItemSummaryDuration", "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", "LineItemType" => "LineItemType", "MinuteOfHour" => "MinuteOfHour", @@ -10494,6 +10708,7 @@ class LineItemService extends DfpSoapClient { "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "CreativePersistenceType" => "CreativePersistenceType", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", @@ -10504,7 +10719,10 @@ class LineItemService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", + "SetTopBoxSyncStatus" => "SetTopBoxSyncStatus", "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", @@ -10516,18 +10734,12 @@ class LineItemService extends DfpSoapClient { "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", "VideoBumperType" => "VideoBumperType", "VideoPosition.Type" => "VideoPositionType", - "createLineItem" => "CreateLineItem", - "createLineItemResponse" => "CreateLineItemResponse", "createLineItems" => "CreateLineItems", "createLineItemsResponse" => "CreateLineItemsResponse", - "getLineItem" => "GetLineItem", - "getLineItemResponse" => "GetLineItemResponse", "getLineItemsByStatement" => "GetLineItemsByStatement", "getLineItemsByStatementResponse" => "GetLineItemsByStatementResponse", "performLineItemAction" => "PerformLineItemAction", "performLineItemActionResponse" => "PerformLineItemActionResponse", - "updateLineItem" => "UpdateLineItem", - "updateLineItemResponse" => "UpdateLineItemResponse", "updateLineItems" => "UpdateLineItems", "updateLineItemsResponse" => "UpdateLineItemsResponse", ); @@ -10543,31 +10755,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link LineItem}. - * - * These fields are required: - *

      - *
    • {@link LineItem#costPerUnit}
    • - *
    • {@link LineItem#costType}
    • - *
    • {@link LineItem#endDateTime}
    • - *
    • {@link LineItem#lineItemType}
    • - *
    • {@link LineItem#name}
    • - *
    • {@link LineItem#orderId}
    • - *
    • {@link LineItem#startDateTime}
    • - *
    • {@link LineItem#unitsBought}
    • - *
    • {@link LineItem#creativePlaceholders}
    • - *
    • {@link LineItem#targeting}
    • - *
    - * - * @param lineItem the line item to create - * @return the line item with its ID filled in - */ - public function createLineItem($lineItem) { - $args = new CreateLineItem($lineItem); - $result = $this->__soapCall("createLineItem", array($args)); - return $result->rval; - } /** * Creates new {@link LineItem} objects. * @@ -10579,17 +10766,6 @@ public function createLineItems($lineItems) { $result = $this->__soapCall("createLineItems", array($args)); return $result->rval; } - /** - * Returns the {@link LineItem} uniquely identified by the given ID. - * - * @param lineItemId the ID of the line item, which must already exist - * @return the {@code LineItem} uniquely identified by the given ID - */ - public function getLineItem($lineItemId) { - $args = new GetLineItem($lineItemId); - $result = $this->__soapCall("getLineItem", array($args)); - return $result->rval; - } /** * Gets a {@link LineItemPage} of {@link LineItem} objects that satisfy the * given {@link Statement#query}. The following fields are supported for @@ -10604,12 +10780,14 @@ public function getLineItem($lineItemId) { * ExternalId{@link LineItem#externalId} * Id{@link LineItem#id} * IsMissingCreatives{@link LineItem#isMissingCreatives} + * IsSetTopBoxEnabled{@link LineItem#isSetTopBoxEnabled} * LastModifiedDateTime{@link LineItem#lastModifiedDateTime} * LineItemType{@link LineItem#lineItemType} * Name{@link LineItem#name} * OrderId{@link LineItem#orderId} * StartDateTime{@link LineItem#startDateTime} * Status{@link LineItem#status} + * Targeting{@link LineItem#targeting} * UnitsBought{@link LineItem#unitsBought} * * @param filterStatement a Publisher Query Language statement used to filter @@ -10635,17 +10813,6 @@ public function performLineItemAction($lineItemAction, $filterStatement) { $result = $this->__soapCall("performLineItemAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link LineItem}. - * - * @param lineItem the line item to update - * @return the updated line item - */ - public function updateLineItem($lineItem) { - $args = new UpdateLineItem($lineItem); - $result = $this->__soapCall("updateLineItem", array($args)); - return $result->rval; - } /** * Updates the specified {@link LineItem} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201502/LineItemTemplateService.php similarity index 84% rename from src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php rename to src/Google/Api/Ads/Dfp/v201502/LineItemTemplateService.php index ca7d0d8c2..d23c1c168 100755 --- a/src/Google/Api/Ads/Dfp/v201311/LineItemTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/LineItemTemplateService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,9 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -253,11 +174,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { /** * Errors associated with audience extension enabled line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceExtensionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError"; /** @@ -282,85 +203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -370,11 +218,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -399,13 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -416,11 +263,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Click tracking is a special line item type with a number of unique errors as * described below. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingLineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingLineItemError"; /** @@ -445,36 +292,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -492,10 +336,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -505,11 +351,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -534,13 +380,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -550,11 +395,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors due to {@link Company#creditStatus}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanyCreditStatusError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError"; /** @@ -579,13 +424,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -595,11 +439,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors related to {@link ContentMetadataTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError"; /** @@ -624,13 +468,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -640,11 +483,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError"; /** @@ -669,13 +512,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -685,11 +527,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with cross selling. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CrossSellError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError"; /** @@ -714,13 +556,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -730,11 +571,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -759,13 +600,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -776,11 +616,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -805,13 +645,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -821,11 +660,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -875,11 +714,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -944,11 +783,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Lists all date time range errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeRangeTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeRangeTargetingError"; /** @@ -973,13 +812,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -989,11 +827,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with day-part targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargetingError"; /** @@ -1018,13 +856,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1035,11 +916,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -1058,12 +939,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1074,11 +954,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1103,13 +983,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1119,11 +998,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors that can result from a forecast request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError"; /** @@ -1148,13 +1027,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1164,11 +1042,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError"; /** @@ -1193,13 +1071,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1209,11 +1086,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Targeting validation errors that can be used by different targeting types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GenericTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError"; /** @@ -1238,13 +1115,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1255,11 +1131,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors associated with geographical targeting for a * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError"; /** @@ -1284,13 +1160,100 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1302,11 +1265,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1331,13 +1294,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1347,11 +1309,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -1376,13 +1338,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1393,11 +1354,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all inventory errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError"; /** @@ -1422,13 +1383,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1438,11 +1398,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -1467,13 +1427,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError"; + + /** + * @access public + * @var tnsLineItemActivityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1483,11 +1486,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with line item-to-creative association dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemCreativeAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError"; /** @@ -1512,13 +1515,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1528,11 +1530,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A catch-all error that lists all generic errors associated with LineItem. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemError"; /** @@ -1557,13 +1559,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1573,11 +1574,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with LineItem start and end dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemFlightDateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemFlightDateError"; /** @@ -1602,13 +1603,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1618,11 +1618,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors for executing operations on line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError"; /** @@ -1647,13 +1647,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1664,11 +1663,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents the template that populates the fields of a new line item being * created. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemTemplate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemTemplate"; /** @@ -1788,11 +1787,11 @@ public function __construct($id = null, $name = null, $isDefault = null, $lineIt /** * Captures a page of {@link LineItemTemplate} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemTemplatePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemTemplatePage"; /** @@ -1842,11 +1841,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1871,13 +1870,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1887,11 +1885,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1916,36 +1914,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("OrderError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Lists all errors associated with orders. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class OrderError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderError"; /** * @access public - * @var string + * @var tnsOrderErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1963,29 +1958,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("OrderError", false)) { +if (!class_exists("ParseError", false)) { /** - * Lists all errors associated with orders. + * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class OrderError extends ApiError { + class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError"; /** * @access public - * @var tnsOrderErrorReason + * @var tnsParseErrorReason */ public $reason; @@ -2005,32 +2002,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ParseError", false)) { +if (!class_exists("PermissionError", false)) { /** - * Lists errors related to parsing. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseError extends ApiError { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var tnsParseErrorReason + * @var tnsPermissionErrorReason */ public $reason; @@ -2050,32 +2046,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("ProgrammaticError", false)) { /** - * Errors related to incorrect permission. + * Errors associated with programmatic line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionError extends ApiError { + class ProgrammaticError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError"; /** * @access public - * @var tnsPermissionErrorReason + * @var tnsProgrammaticErrorReason */ public $reason; @@ -2095,13 +2090,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2112,11 +2106,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2141,13 +2135,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2158,11 +2151,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2187,13 +2180,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2204,11 +2196,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2233,13 +2225,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2249,11 +2240,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -2278,13 +2269,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2294,11 +2284,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -2323,13 +2313,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2339,11 +2328,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2368,13 +2357,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2385,11 +2373,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2414,13 +2402,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2430,11 +2417,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating {@link Size}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError"; /** @@ -2459,13 +2446,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2475,11 +2461,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with LineItem's reservation details. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReservationDetailsError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReservationDetailsError"; /** @@ -2504,13 +2490,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2520,11 +2549,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -2549,13 +2578,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError"; + + /** + * @access public + * @var tnsSetTopBoxLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2565,11 +2637,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -2584,12 +2656,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2606,10 +2672,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -2619,11 +2684,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -2694,11 +2759,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -2741,11 +2806,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -2770,13 +2835,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2786,11 +2850,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -2815,13 +2879,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2832,11 +2895,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -2879,11 +2942,11 @@ public function __construct($key = null, $value = null) { /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -2908,13 +2971,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2924,11 +2986,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Technology targeting validation errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargetingError"; /** @@ -2953,13 +3015,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2969,11 +3030,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -2992,12 +3053,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3007,11 +3067,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -3030,12 +3090,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3045,11 +3104,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Lists all errors related to user domain targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UserDomainTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargetingError"; /** @@ -3074,13 +3133,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3089,51 +3147,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, if (!class_exists("Value", false)) { /** * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; /** * Gets the namesapce of this class @@ -3151,8 +3171,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -3163,11 +3182,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -3196,11 +3215,11 @@ public function __construct() { /** * Specific audience extension error reasons. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceExtensionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError.Reason"; /** @@ -3232,11 +3251,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -3265,11 +3284,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingLineItemError.Reason"; /** @@ -3294,15 +3313,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -3331,11 +3383,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanyCreditStatusErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError.Reason"; /** @@ -3364,11 +3416,11 @@ public function __construct() { /** * The reasons for the metadata targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError.Reason"; /** @@ -3397,11 +3449,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError.Reason"; /** @@ -3431,11 +3483,11 @@ public function __construct() { * The strategy to use for displaying multiple {@link Creative} objects that are * associated with a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeRotationType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeRotationType"; /** @@ -3464,11 +3516,11 @@ public function __construct() { /** * The reason of the error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CrossSellErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError.Reason"; /** @@ -3497,11 +3549,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError.Reason"; /** @@ -3530,11 +3582,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError.Reason"; /** @@ -3563,11 +3615,11 @@ public function __construct() { /** * {@link ApiErrorReason} enum for date time range targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeRangeTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; /** @@ -3596,11 +3648,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargetingError.Reason"; /** @@ -3630,11 +3682,11 @@ public function __construct() { * Possible delivery rates for a {@link LineItem}, which dictate the manner in * which they are served. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeliveryRateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeliveryRateType"; /** @@ -3659,15 +3711,48 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -3696,11 +3781,11 @@ public function __construct() { /** * Reason why a forecast could not be retrieved. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError.Reason"; /** @@ -3729,11 +3814,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError.Reason"; /** @@ -3762,11 +3847,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GenericTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError.Reason"; /** @@ -3795,11 +3880,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError.Reason"; /** @@ -3824,15 +3909,81 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -3861,11 +4012,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -3894,11 +4045,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError.Reason"; /** @@ -3927,11 +4078,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -3956,15 +4107,48 @@ public function __construct() { } } +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemCreativeAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; /** @@ -3993,11 +4177,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemError.Reason"; /** @@ -4026,11 +4210,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemFlightDateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemFlightDateError.Reason"; /** @@ -4059,11 +4243,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError.Reason"; /** @@ -4093,11 +4277,11 @@ public function __construct() { * {@code LineItemType} indicates the priority of a {@link LineItem}, determined * by the way in which impressions are reserved to be served for it. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemType"; /** @@ -4126,11 +4310,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -4159,11 +4343,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -4192,11 +4376,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OrderError.Reason"; /** @@ -4225,11 +4409,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -4258,11 +4442,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -4287,15 +4471,48 @@ public function __construct() { } } +if (!class_exists("ProgrammaticErrorReason", false)) { + /** + * Audience extension is not supported by programmatic line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProgrammaticErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -4324,11 +4541,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -4367,11 +4584,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -4400,11 +4617,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -4433,11 +4650,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -4466,11 +4683,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -4499,11 +4716,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -4533,11 +4750,11 @@ public function __construct() { * {@link Creative#size} or {@link LineItem#creativeSizes} is * missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError.Reason"; /** @@ -4566,11 +4783,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReservationDetailsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReservationDetailsError.Reason"; /** @@ -4599,11 +4816,11 @@ public function __construct() { /** * Describes the roadblocking types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RoadblockingType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RoadblockingType"; /** @@ -4628,15 +4845,48 @@ public function __construct() { } } +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ServerErrorReason", false)) { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -4661,15 +4911,48 @@ public function __construct() { } } +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { + /** + * Reason for set-top box error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("StatementErrorReason", false)) { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -4698,11 +4981,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -4731,11 +5014,11 @@ public function __construct() { /** * Indicates the target platform. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TargetPlatform { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TargetPlatform"; /** @@ -4764,11 +5047,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -4797,11 +5080,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargetingError.Reason"; /** @@ -4830,11 +5113,11 @@ public function __construct() { /** * {@link ApiErrorReason} enum for user domain targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UserDomainTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargetingError.Reason"; /** @@ -4880,11 +5163,11 @@ public function __construct() { * @return the line item templates that match the given filter * @throws ApiException if a RuntimeException is thrown * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetLineItemTemplatesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4920,11 +5203,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetLineItemTemplatesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4956,15 +5239,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -4989,11 +5313,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -5003,11 +5326,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -5032,10 +5355,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5045,11 +5367,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -5074,10 +5396,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5087,11 +5408,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -5116,10 +5437,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5129,11 +5449,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -5158,10 +5478,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5171,11 +5490,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -5200,10 +5519,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -5213,11 +5531,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -5242,10 +5560,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5255,35 +5572,35 @@ public function __construct($value = null, $ValueType = null) { /** * LineItemTemplateService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemTemplateService extends DfpSoapClient { const SERVICE_NAME = "LineItemTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/LineItemTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/LineItemTemplateService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/LineItemTemplateService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/LineItemTemplateService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -5297,16 +5614,20 @@ class LineItemTemplateService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DayPartTargetingError" => "DayPartTargetingError", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargetingError" => "InventoryTargetingError", "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", "LineItemError" => "LineItemError", "LineItemFlightDateError" => "LineItemFlightDateError", @@ -5316,10 +5637,10 @@ class LineItemTemplateService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OrderError" => "OrderError", "ParseError" => "ParseError", "PermissionError" => "PermissionError", + "ProgrammaticError" => "ProgrammaticError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", @@ -5329,7 +5650,9 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredNumberError" => "RequiredNumberError", "RequiredSizeError" => "RequiredSizeError", "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -5348,6 +5671,7 @@ class LineItemTemplateService extends DfpSoapClient { "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -5359,15 +5683,19 @@ class LineItemTemplateService extends DfpSoapClient { "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", "LineItemError.Reason" => "LineItemErrorReason", "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", @@ -5378,6 +5706,7 @@ class LineItemTemplateService extends DfpSoapClient { "OrderError.Reason" => "OrderErrorReason", "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", @@ -5388,7 +5717,9 @@ class LineItemTemplateService extends DfpSoapClient { "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "RoadblockingType" => "RoadblockingType", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "TargetPlatform" => "TargetPlatform", diff --git a/src/Google/Api/Ads/Dfp/v201306/LabelService.php b/src/Google/Api/Ads/Dfp/v201502/LiveStreamEventService.php similarity index 73% rename from src/Google/Api/Ads/Dfp/v201306/LabelService.php rename to src/Google/Api/Ads/Dfp/v201502/LiveStreamEventService.php index 1adc16957..c39c7843d 100755 --- a/src/Google/Api/Ads/Dfp/v201306/LabelService.php +++ b/src/Google/Api/Ads/Dfp/v201502/LiveStreamEventService.php @@ -1,6 +1,6 @@ The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,76 +203,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("CommonError", false)) { - /** - * A place for common errors that can be used across services. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; - - /** - * @access public - * @var tnsCommonErrorReason + * @var tnsCollectionSizeErrorReason */ public $reason; @@ -443,32 +247,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeWrapperError", false)) { +if (!class_exists("CommonError", false)) { /** - * Errors specific to creative wrappers. + * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreativeWrapperError extends ApiError { + class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; /** * @access public - * @var tnsCreativeWrapperErrorReason + * @var tnsCommonErrorReason */ public $reason; @@ -488,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -504,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -558,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -627,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -656,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -703,67 +504,73 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LabelAction", false)) { +if (!class_exists("InvalidUrlError", false)) { /** - * Represents the actions that can be performed on {@link Label} objects. + * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class LabelAction { + class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelAction"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidUrlError"; /** * @access public - * @var string + * @var tnsInvalidUrlErrorReason */ - public $LabelActionType; - private $_parameterMap = array( - "LabelAction.Type" => "LabelActionType", - ); + public $reason; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } + } +} + +if (!class_exists("LiveStreamEventAction", false)) { + /** + * Represents the actions that can be performed on {@link LiveStreamEvent} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEventAction"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -780,53 +587,72 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { - $this->LabelActionType = $LabelActionType; + public function __construct() { } } } -if (!class_exists("Label", false)) { +if (!class_exists("LiveStreamEventActionError", false)) { /** - * A {@code Label} is additional information that can be added to an entity. + * Lists all errors associated with live stream event action. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Label { + class LiveStreamEventActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Label"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEventActionError"; /** * @access public - * @var integer + * @var tnsLiveStreamEventActionErrorReason */ - public $id; + public $reason; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $name; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var string + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $description; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var boolean - */ - public $isActive; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LiveStreamEventDateTimeError", false)) { + /** + * Lists all errors associated with live stream event start and end date times. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LiveStreamEventDateTimeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEventDateTimeError"; /** * @access public - * @var tnsLabelType[] + * @var tnsLiveStreamEventDateTimeErrorReason */ - public $types; + public $reason; /** * Gets the namesapce of this class @@ -844,33 +670,100 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $isActive = null, $types = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->isActive = $isActive; - $this->types = $types; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("LabelError", false)) { +if (!class_exists("LiveStreamEvent", false)) { /** - * Errors specific to labels. + * A {@code LiveStreamEvent} represents schedule, content and ad stitching + * information of a live stream event. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class LabelError extends ApiError { + class LiveStreamEvent { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEvent"; /** * @access public - * @var tnsLabelErrorReason + * @var integer */ - public $reason; + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsLiveStreamEventStatus + */ + public $status; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $totalEstimatedConcurrentUsers; + + /** + * @access public + * @var string[] + */ + public $contentUrls; + + /** + * @access public + * @var string[] + */ + public $adTags; + + /** + * @access public + * @var string + */ + public $liveStreamEventCode; /** * Gets the namesapce of this class @@ -888,28 +781,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $name = null, $description = null, $status = null, $creationDateTime = null, $lastModifiedDateTime = null, $startDateTime = null, $endDateTime = null, $totalEstimatedConcurrentUsers = null, $contentUrls = null, $adTags = null, $liveStreamEventCode = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->creationDateTime = $creationDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->totalEstimatedConcurrentUsers = $totalEstimatedConcurrentUsers; + $this->contentUrls = $contentUrls; + $this->adTags = $adTags; + $this->liveStreamEventCode = $liveStreamEventCode; } } } -if (!class_exists("LabelPage", false)) { +if (!class_exists("LiveStreamEventPage", false)) { /** - * Captures a page of {@link Label} objects. + * Captures a page of {@link LiveStreamEvent} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class LabelPage { + class LiveStreamEventPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelPage"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEventPage"; /** * @access public @@ -925,7 +824,7 @@ class LabelPage { /** * @access public - * @var Label[] + * @var LiveStreamEvent[] */ public $results; @@ -958,11 +857,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -987,13 +886,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1003,11 +901,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -1032,36 +930,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("ParseError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError"; /** * @access public - * @var string + * @var tnsParseErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1079,31 +974,61 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ParseError", false)) { +if (!class_exists("PauseLiveStreamEventAds", false)) { /** - * Lists errors related to parsing. + * The action used for pausing ads for {@link LiveStreamEvent} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ParseError extends ApiError { + class PauseLiveStreamEventAds extends LiveStreamEventAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PauseLiveStreamEventAds"; /** - * @access public - * @var tnsParseErrorReason + * Gets the namesapce of this class + * @return the namespace of this class */ - public $reason; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("PauseLiveStreamEvents", false)) { + /** + * The action used for pausing {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PauseLiveStreamEvents extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PauseLiveStreamEvents"; /** * Gets the namesapce of this class @@ -1121,13 +1046,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct() { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1137,11 +1057,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1166,13 +1086,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1183,11 +1102,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1212,13 +1131,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1229,11 +1147,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1258,13 +1176,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1275,11 +1192,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1304,13 +1221,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1320,11 +1280,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1349,13 +1309,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1365,11 +1324,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1394,13 +1353,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1410,11 +1368,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1429,12 +1387,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1451,10 +1403,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1464,11 +1415,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1539,11 +1490,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1586,11 +1537,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1615,13 +1566,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1631,11 +1581,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1660,13 +1610,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1677,11 +1626,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1720,91 +1669,15 @@ public function __construct($key = null, $value = null) { } } -if (!class_exists("TypeError", false)) { - /** - * An error for a field which is an invalid type. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class TypeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - if (!class_exists("UpdateResult", false)) { /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1840,51 +1713,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1901,8 +1736,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1913,11 +1747,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1949,11 +1783,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1978,16 +1812,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Describes reasons for common errors + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CommonErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -2011,16 +1845,16 @@ public function __construct() { } } -if (!class_exists("CreativeWrapperErrorReason", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * The reasons for the creative wrapper error. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreativeWrapperErrorReason { + class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeWrapperError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -2048,45 +1882,12 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class FeatureErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("InternalApiErrorReason", false)) { - /** - * The single reason for the internal API error. - * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class InternalApiErrorReason { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -2110,16 +1911,16 @@ public function __construct() { } } -if (!class_exists("LabelErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the target error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class LabelErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -2143,16 +1944,16 @@ public function __construct() { } } -if (!class_exists("LabelType", false)) { +if (!class_exists("InvalidUrlErrorReason", false)) { /** - * Represents the types of labels supported. + * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class LabelType { + class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidUrlError.Reason"; /** * Gets the namesapce of this class @@ -2176,16 +1977,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("LiveStreamEventActionErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for {@code LiveStreamEventActionError}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NotNullErrorReason { + class LiveStreamEventActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEventActionError.Reason"; /** * Gets the namesapce of this class @@ -2209,16 +2010,16 @@ public function __construct() { } } -if (!class_exists("NullErrorReason", false)) { +if (!class_exists("LiveStreamEventDateTimeErrorReason", false)) { /** - * The reasons for the validation error. + * Describes reasons for {@code LiveStreamEventDateTimeError}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NullErrorReason { + class LiveStreamEventDateTimeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEventDateTimeError.Reason"; /** * Gets the namesapce of this class @@ -2242,16 +2043,16 @@ public function __construct() { } } -if (!class_exists("ParseErrorReason", false)) { +if (!class_exists("LiveStreamEventStatus", false)) { /** - * The reasons for the target error. + * Describes the status of a {@link LiveStreamEvent} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ParseErrorReason { + class LiveStreamEventStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LiveStreamEventStatus"; /** * Gets the namesapce of this class @@ -2275,16 +2076,16 @@ public function __construct() { } } -if (!class_exists("PermissionErrorReason", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** - * Describes reasons for permission errors. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PermissionErrorReason { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -2308,16 +2109,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { +if (!class_exists("NullErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PublisherQueryLanguageContextErrorReason { + class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError.Reason"; /** * Gets the namesapce of this class @@ -2341,16 +2142,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { +if (!class_exists("ParseErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxErrorReason { + class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError.Reason"; /** * Gets the namesapce of this class @@ -2374,26 +2175,16 @@ public function __construct() { } } -if (!class_exists("QuotaErrorReason", false)) { +if (!class_exists("PermissionErrorReason", false)) { /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

    - * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

    + * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class QuotaErrorReason { + class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError.Reason"; /** * Gets the namesapce of this class @@ -2417,16 +2208,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RequiredErrorReason { + class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** * Gets the namesapce of this class @@ -2450,16 +2241,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { /** - * Describes reasons for server errors + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ServerErrorReason { + class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** * Gets the namesapce of this class @@ -2483,16 +2274,26 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("QuotaErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

    + * Another way to mitigate this error is to limit requests to 2 per second for + * Small Business networks, or 8 per second for Premium networks. Once again + * this does not guarantee that every request will succeed, but may help + * reduce the number of times you receive this error. + *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StatementErrorReason { + class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError.Reason"; /** * Gets the namesapce of this class @@ -2516,16 +2317,16 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("RequiredCollectionErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StringLengthErrorReason { + class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError.Reason"; /** * Gets the namesapce of this class @@ -2549,31 +2350,16 @@ public function __construct() { } } -if (!class_exists("CreateLabel", false)) { +if (!class_exists("RequiredErrorReason", false)) { /** - * Creates a new {@link Label}. - * - * The following fields are required: - *
      - *
    • {@link Label#name}
    • - *
    • {@link Label#type}
    • - *
    - * - * @param label the label to create - * @return the label with its ID filled in + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class RequiredErrorReason { - /** - * @access public - * @var Label - */ - public $label; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError.Reason"; /** * Gets the namesapce of this class @@ -2591,29 +2377,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($label = null) { - $this->label = $label; + public function __construct() { } } } -if (!class_exists("CreateLabelResponse", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateLabelResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class ServerErrorReason { - /** - * @access public - * @var Label - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -2631,32 +2410,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("CreateLabels", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * Creates new {@link Label} objects. - * - * @param labels the labels to create - * @return the created labels with their IDs filled in + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateLabels { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class StatementErrorReason { - /** - * @access public - * @var Label[] - */ - public $labels; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -2674,29 +2443,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labels = null) { - $this->labels = $labels; + public function __construct() { } } } -if (!class_exists("CreateLabelsResponse", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateLabelsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class StringLengthErrorReason { - /** - * @access public - * @var Label[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -2714,32 +2476,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("GetLabel", false)) { +if (!class_exists("CreateLiveStreamEvents", false)) { /** - * Returns the {@link Label} uniquely identified by the given ID. + * Creates new {@link LiveStreamEvent} objects. + * + * The following fields are required: + *
      + *
    • {@link LiveStreamEvent#name}
    • + *
    • {@link LiveStreamEvent#startDateTime}
    • + *
    • {@link LiveStreamEvent#endDateTime}
    • + *
    • {@link LiveStreamEvent#contentUrls}
    • + *
    • {@link LiveStreamEvent#adTags}
    • + *
    * - * @param labelId the ID of the label, which must already exist - * @return the {@code Label} uniquely identified by the given ID + * @param liveStreamEvents the live stream events to create + * @return the created live stream events with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetLabel { + class CreateLiveStreamEvents { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var LiveStreamEvent[] */ - public $labelId; + public $liveStreamEvents; /** * Gets the namesapce of this class @@ -2757,27 +2527,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labelId = null) { - $this->labelId = $labelId; + public function __construct($liveStreamEvents = null) { + $this->liveStreamEvents = $liveStreamEvents; } } } -if (!class_exists("GetLabelResponse", false)) { +if (!class_exists("CreateLiveStreamEventsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetLabelResponse { + class CreateLiveStreamEventsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var LiveStreamEvent[] */ public $rval; @@ -2804,11 +2574,11 @@ public function __construct($rval = null) { } } -if (!class_exists("GetLabelsByStatement", false)) { +if (!class_exists("GetLiveStreamEventsByStatement", false)) { /** - * Gets a {@link LabelPage} of {@link Label} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: + * Gets a {@link LiveStreamEventPage} of {@link LiveStreamEvent} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: * * * @@ -2816,36 +2586,19 @@ public function __construct($rval = null) { * * * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + * * *
    {@code id}{@link Label#id}
    {@code type}{@link Label#type}
    {@code name}{@link Label#name}
    {@code description}{@link Label#description}
    {@code isActive}{@link Label#isActive}{@link LiveStreamEvent#id}
    * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels. - * @return the labels that match the given filter + * @param filterStatement a Publisher Query Language statement to filter a + * list of live stream events + * @return the live stream events that match the filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetLabelsByStatement { + class GetLiveStreamEventsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2877,20 +2630,20 @@ public function __construct($filterStatement = null) { } } -if (!class_exists("GetLabelsByStatementResponse", false)) { +if (!class_exists("GetLiveStreamEventsByStatementResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetLabelsByStatementResponse { + class GetLiveStreamEventsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LabelPage + * @var LiveStreamEventPage */ public $rval; @@ -2917,28 +2670,28 @@ public function __construct($rval = null) { } } -if (!class_exists("PerformLabelAction", false)) { +if (!class_exists("PerformLiveStreamEventAction", false)) { /** - * Performs actions on {@link Label} objects that match the given + * Performs actions on {@link LiveStreamEvent} objects that match the given * {@link Statement#query}. * - * @param labelAction the action to perform + * @param liveStreamEventAction the action to perform * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels + * a set of live stream events * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PerformLabelAction { + class PerformLiveStreamEventAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LabelAction + * @var LiveStreamEventAction */ - public $labelAction; + public $liveStreamEventAction; /** * @access public @@ -2962,23 +2715,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labelAction = null, $filterStatement = null) { - $this->labelAction = $labelAction; + public function __construct($liveStreamEventAction = null, $filterStatement = null) { + $this->liveStreamEventAction = $liveStreamEventAction; $this->filterStatement = $filterStatement; } } } -if (!class_exists("PerformLabelActionResponse", false)) { +if (!class_exists("PerformLiveStreamEventActionResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PerformLabelActionResponse { + class PerformLiveStreamEventActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3010,25 +2763,26 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLabel", false)) { +if (!class_exists("UpdateLiveStreamEvents", false)) { /** - * Updates the specified {@link Label}. + * Updates the specified {@link LiveStreamEvent} objects. * - * @param label the label to update - * @return the updated label + * @param liveStreamEvents the live stream events to update + * @return the updated live stream events + * @throws ApiException if there is an error updating the live stream events * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateLabel { + class UpdateLiveStreamEvents { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var LiveStreamEvent[] */ - public $label; + public $liveStreamEvents; /** * Gets the namesapce of this class @@ -3046,27 +2800,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($label = null) { - $this->label = $label; + public function __construct($liveStreamEvents = null) { + $this->liveStreamEvents = $liveStreamEvents; } } } -if (!class_exists("UpdateLabelResponse", false)) { +if (!class_exists("UpdateLiveStreamEventsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateLabelResponse { + class UpdateLiveStreamEventsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var LiveStreamEvent[] */ public $rval; @@ -3093,25 +2847,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLabels", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link Label} objects. - * - * @param labels the labels to update - * @return the updated labels + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateLabels { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Label[] - */ - public $labels; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3129,29 +2881,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labels = null) { - $this->labels = $labels; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateLabelsResponse", false)) { +if (!class_exists("ActivateLiveStreamEvents", false)) { /** - * + * The action used for activating {@link LiveStreamEvent} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateLabelsResponse { + class ActivateLiveStreamEvents extends LiveStreamEventAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Label[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ActivateLiveStreamEvents"; /** * Gets the namesapce of this class @@ -3169,23 +2915,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("ActivateLabels", false)) { +if (!class_exists("ApiException", false)) { /** - * The action used for activating {@link Label} objects. + * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ActivateLabels extends LabelAction { + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiException"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateLabels"; + /** + * @access public + * @var ApiError[] + */ + public $errors; /** * Gets the namesapce of this class @@ -3203,30 +2955,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); - $this->LabelActionType = $LabelActionType; + $this->errors = $errors; + $this->message = $message; } } } -if (!class_exists("ApiException", false)) { +if (!class_exists("ArchiveLiveStreamEvents", false)) { /** - * Exception class for holding a list of service errors. + * The action used for archiving {@link LiveStreamEvent} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiException"; + class ArchiveLiveStreamEvents extends LiveStreamEventAction { - /** - * @access public - * @var ApiError[] - */ - public $errors; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ArchiveLiveStreamEvents"; /** * Gets the namesapce of this class @@ -3244,11 +2991,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct() { parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3258,11 +3002,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3287,10 +3031,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3300,11 +3043,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3329,10 +3072,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3342,11 +3084,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3371,25 +3113,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("DeactivateLabels", false)) { +if (!class_exists("NumberValue", false)) { /** - * The action used for deactivating {@link Label} objects. + * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DeactivateLabels extends LabelAction { + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NumberValue"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateLabels"; + /** + * @access public + * @var string + */ + public $value; /** * Gets the namesapce of this class @@ -3407,30 +3154,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { + public function __construct($value = null) { parent::__construct(); - $this->LabelActionType = $LabelActionType; + $this->value = $value; } } } -if (!class_exists("NumberValue", false)) { +if (!class_exists("SetValue", false)) { /** - * Contains a numeric value. + * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NumberValue extends Value { + class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NumberValue"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; /** * @access public - * @var string + * @var Value[] */ - public $value; + public $values; /** * Gets the namesapce of this class @@ -3448,10 +3195,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; + $this->values = $values; } } @@ -3461,11 +3207,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3490,71 +3236,74 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("LabelService", false)) { +if (!class_exists("LiveStreamEventService", false)) { /** - * LabelService + * LiveStreamEventService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class LabelService extends DfpSoapClient { + class LiveStreamEventService extends DfpSoapClient { - const SERVICE_NAME = "LabelService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/LabelService"; + const SERVICE_NAME = "LiveStreamEventService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/LiveStreamEventService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/LabelService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/LiveStreamEventService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( - "ActivateLabels" => "ActivateLabels", + "ObjectValue" => "ObjectValue", + "ActivateLiveStreamEvents" => "ActivateLiveStreamEvents", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", + "ArchiveLiveStreamEvents" => "ArchiveLiveStreamEvents", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", - "CreativeWrapperError" => "CreativeWrapperError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", - "DeactivateLabels" => "DeactivateLabels", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", - "LabelAction" => "LabelAction", - "Label" => "Label", - "LabelError" => "LabelError", - "LabelPage" => "LabelPage", + "InvalidUrlError" => "InvalidUrlError", + "LiveStreamEventAction" => "LiveStreamEventAction", + "LiveStreamEventActionError" => "LiveStreamEventActionError", + "LiveStreamEventDateTimeError" => "LiveStreamEventDateTimeError", + "LiveStreamEvent" => "LiveStreamEvent", + "LiveStreamEventPage" => "LiveStreamEventPage", "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", + "PauseLiveStreamEventAds" => "PauseLiveStreamEventAds", + "PauseLiveStreamEvents" => "PauseLiveStreamEvents", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3562,18 +3311,18 @@ class LabelService extends DfpSoapClient { "StringLengthError" => "StringLengthError", "String_ValueMapEntry" => "String_ValueMapEntry", "TextValue" => "TextValue", - "TypeError" => "TypeError", - "UniqueError" => "UniqueError", "UpdateResult" => "UpdateResult", "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", - "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", - "LabelError.Reason" => "LabelErrorReason", - "LabelType" => "LabelType", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LiveStreamEventActionError.Reason" => "LiveStreamEventActionErrorReason", + "LiveStreamEventDateTimeError.Reason" => "LiveStreamEventDateTimeErrorReason", + "LiveStreamEventStatus" => "LiveStreamEventStatus", "NotNullError.Reason" => "NotNullErrorReason", "NullError.Reason" => "NullErrorReason", "ParseError.Reason" => "ParseErrorReason", @@ -3581,24 +3330,19 @@ class LabelService extends DfpSoapClient { "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createLabel" => "CreateLabel", - "createLabelResponse" => "CreateLabelResponse", - "createLabels" => "CreateLabels", - "createLabelsResponse" => "CreateLabelsResponse", - "getLabel" => "GetLabel", - "getLabelResponse" => "GetLabelResponse", - "getLabelsByStatement" => "GetLabelsByStatement", - "getLabelsByStatementResponse" => "GetLabelsByStatementResponse", - "performLabelAction" => "PerformLabelAction", - "performLabelActionResponse" => "PerformLabelActionResponse", - "updateLabel" => "UpdateLabel", - "updateLabelResponse" => "UpdateLabelResponse", - "updateLabels" => "UpdateLabels", - "updateLabelsResponse" => "UpdateLabelsResponse", + "createLiveStreamEvents" => "CreateLiveStreamEvents", + "createLiveStreamEventsResponse" => "CreateLiveStreamEventsResponse", + "getLiveStreamEventsByStatement" => "GetLiveStreamEventsByStatement", + "getLiveStreamEventsByStatementResponse" => "GetLiveStreamEventsByStatementResponse", + "performLiveStreamEventAction" => "PerformLiveStreamEventAction", + "performLiveStreamEventActionResponse" => "PerformLiveStreamEventActionResponse", + "updateLiveStreamEvents" => "UpdateLiveStreamEvents", + "updateLiveStreamEventsResponse" => "UpdateLiveStreamEventsResponse", ); @@ -3613,48 +3357,29 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Creates a new {@link Label}. + * Creates new {@link LiveStreamEvent} objects. * * The following fields are required: *

      - *
    • {@link Label#name}
    • - *
    • {@link Label#type}
    • + *
    • {@link LiveStreamEvent#name}
    • + *
    • {@link LiveStreamEvent#startDateTime}
    • + *
    • {@link LiveStreamEvent#endDateTime}
    • + *
    • {@link LiveStreamEvent#contentUrls}
    • + *
    • {@link LiveStreamEvent#adTags}
    • *
    * - * @param label the label to create - * @return the label with its ID filled in - */ - public function createLabel($label) { - $args = new CreateLabel($label); - $result = $this->__soapCall("createLabel", array($args)); - return $result->rval; - } - /** - * Creates new {@link Label} objects. - * - * @param labels the labels to create - * @return the created labels with their IDs filled in - */ - public function createLabels($labels) { - $args = new CreateLabels($labels); - $result = $this->__soapCall("createLabels", array($args)); - return $result->rval; - } - /** - * Returns the {@link Label} uniquely identified by the given ID. - * - * @param labelId the ID of the label, which must already exist - * @return the {@code Label} uniquely identified by the given ID + * @param liveStreamEvents the live stream events to create + * @return the created live stream events with their IDs filled in */ - public function getLabel($labelId) { - $args = new GetLabel($labelId); - $result = $this->__soapCall("getLabel", array($args)); + public function createLiveStreamEvents($liveStreamEvents) { + $args = new CreateLiveStreamEvents($liveStreamEvents); + $result = $this->__soapCall("createLiveStreamEvents", array($args)); return $result->rval; } /** - * Gets a {@link LabelPage} of {@link Label} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: + * Gets a {@link LiveStreamEventPage} of {@link LiveStreamEvent} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: * * * @@ -3662,70 +3387,43 @@ public function getLabel($labelId) { * * * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + * * *
    {@code id}{@link Label#id}
    {@code type}{@link Label#type}
    {@code name}{@link Label#name}
    {@code description}{@link Label#description}
    {@code isActive}{@link Label#isActive}{@link LiveStreamEvent#id}
    * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels. - * @return the labels that match the given filter + * @param filterStatement a Publisher Query Language statement to filter a + * list of live stream events + * @return the live stream events that match the filter */ - public function getLabelsByStatement($filterStatement) { - $args = new GetLabelsByStatement($filterStatement); - $result = $this->__soapCall("getLabelsByStatement", array($args)); + public function getLiveStreamEventsByStatement($filterStatement) { + $args = new GetLiveStreamEventsByStatement($filterStatement); + $result = $this->__soapCall("getLiveStreamEventsByStatement", array($args)); return $result->rval; } /** - * Performs actions on {@link Label} objects that match the given + * Performs actions on {@link LiveStreamEvent} objects that match the given * {@link Statement#query}. * - * @param labelAction the action to perform + * @param liveStreamEventAction the action to perform * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels + * a set of live stream events * @return the result of the action performed */ - public function performLabelAction($labelAction, $filterStatement) { - $args = new PerformLabelAction($labelAction, $filterStatement); - $result = $this->__soapCall("performLabelAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Label}. - * - * @param label the label to update - * @return the updated label - */ - public function updateLabel($label) { - $args = new UpdateLabel($label); - $result = $this->__soapCall("updateLabel", array($args)); + public function performLiveStreamEventAction($liveStreamEventAction, $filterStatement) { + $args = new PerformLiveStreamEventAction($liveStreamEventAction, $filterStatement); + $result = $this->__soapCall("performLiveStreamEventAction", array($args)); return $result->rval; } /** - * Updates the specified {@link Label} objects. + * Updates the specified {@link LiveStreamEvent} objects. * - * @param labels the labels to update - * @return the updated labels + * @param liveStreamEvents the live stream events to update + * @return the updated live stream events + * @throws ApiException if there is an error updating the live stream events */ - public function updateLabels($labels) { - $args = new UpdateLabels($labels); - $result = $this->__soapCall("updateLabels", array($args)); + public function updateLiveStreamEvents($liveStreamEvents) { + $args = new UpdateLiveStreamEvents($liveStreamEvents); + $result = $this->__soapCall("updateLiveStreamEvents", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201306/NetworkService.php b/src/Google/Api/Ads/Dfp/v201502/NetworkService.php similarity index 86% rename from src/Google/Api/Ads/Dfp/v201306/NetworkService.php rename to src/Google/Api/Ads/Dfp/v201502/NetworkService.php index e9b28d372..532d0e515 100755 --- a/src/Google/Api/Ads/Dfp/v201306/NetworkService.php +++ b/src/Google/Api/Ads/Dfp/v201502/NetworkService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,62 +163,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -314,27 +203,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * An error for an exception that occurred when authenticating. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsCollectionSizeErrorReason */ public $reason; @@ -354,36 +247,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CommonError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; /** * @access public - * @var string + * @var tnsCommonErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,29 +291,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("CommonError", false)) { +if (!class_exists("ExchangeRateError", false)) { /** - * A place for common errors that can be used across services. + * Lists all errors associated with {@link ExchangeRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CommonError extends ApiError { + class ExchangeRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ExchangeRateError"; /** * @access public - * @var tnsCommonErrorReason + * @var tnsExchangeRateErrorReason */ public $reason; @@ -443,13 +335,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -460,11 +351,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -489,13 +380,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -507,11 +397,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -536,13 +426,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -553,11 +442,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Caused by supplying a value for an email attribute that is not a valid * email address. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidEmailError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError"; /** @@ -582,13 +471,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -598,11 +486,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * {@code Network} represents a network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Network { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Network"; /** @@ -701,11 +589,11 @@ public function __construct($id = null, $displayName = null, $networkCode = null /** * An error for a network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NetworkError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NetworkError"; /** @@ -730,13 +618,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -746,11 +633,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -775,57 +662,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -835,11 +677,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -864,13 +706,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -880,11 +721,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -909,13 +750,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -925,11 +765,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * List all errors associated with number precisions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PrecisionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PrecisionError"; /** @@ -954,13 +794,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -971,11 +810,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1000,13 +839,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1017,11 +855,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1046,13 +884,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1063,11 +900,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1092,13 +929,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1108,11 +944,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -1137,13 +973,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1153,11 +988,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1182,13 +1017,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1199,11 +1033,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -1228,13 +1062,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1244,11 +1077,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1273,13 +1106,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1289,11 +1121,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1308,12 +1140,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1330,10 +1156,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1343,11 +1168,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1390,11 +1215,11 @@ public function __construct($requestId = null, $responseTime = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1419,13 +1244,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1435,11 +1259,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1464,13 +1288,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1480,11 +1303,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1503,12 +1326,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1518,11 +1340,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1541,12 +1363,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1557,11 +1378,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1593,11 +1414,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1622,15 +1443,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1655,15 +1509,48 @@ public function __construct() { } } +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1692,11 +1579,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1725,11 +1612,11 @@ public function __construct() { /** * Describes reasons for an email to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InvalidEmailErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError.Reason"; /** @@ -1758,11 +1645,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NetworkErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NetworkError.Reason"; /** @@ -1791,11 +1678,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1824,11 +1711,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -1857,11 +1744,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1890,11 +1777,11 @@ public function __construct() { /** * Describes reasons for precision errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PrecisionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PrecisionError.Reason"; /** @@ -1923,11 +1810,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -1956,11 +1843,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -1999,11 +1886,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2032,11 +1919,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -2065,11 +1952,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2098,11 +1985,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -2131,11 +2018,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2164,11 +2051,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2197,11 +2084,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2237,11 +2124,11 @@ public function __construct() { * * @return the networks to which the current login has access * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetAllNetworks { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2270,11 +2157,11 @@ public function __construct() { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetAllNetworksResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2312,11 +2199,11 @@ public function __construct($rval = null) { * * @return the network for which the user is currently making the request * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCurrentNetwork { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2345,11 +2232,11 @@ public function __construct() { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetCurrentNetworkResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2405,11 +2292,11 @@ public function __construct($rval = null) { * *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MakeTestNetwork { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2438,11 +2325,11 @@ public function __construct() { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MakeTestNetworkResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2482,11 +2369,11 @@ public function __construct($rval = null) { * @param network the network that needs to be updated * @return the updated network * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateNetwork { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2522,11 +2409,11 @@ public function __construct($network = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateNetworkResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2562,11 +2449,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2591,11 +2478,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2605,19 +2491,19 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * NetworkService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NetworkService extends DfpSoapClient { const SERVICE_NAME = "NetworkService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/NetworkService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/NetworkService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/NetworkService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/NetworkService"; /** * Default class map for wsdl=>php * @access private @@ -2628,17 +2514,16 @@ class NetworkService extends DfpSoapClient { "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", + "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "InvalidEmailError" => "InvalidEmailError", "Network" => "Network", "NetworkError" => "NetworkError", "NotNullError" => "NotNullError", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PrecisionError" => "PrecisionError", @@ -2657,7 +2542,9 @@ class NetworkService extends DfpSoapClient { "UniqueError" => "UniqueError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidEmailError.Reason" => "InvalidEmailErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201311/OrderService.php b/src/Google/Api/Ads/Dfp/v201502/OrderService.php similarity index 86% rename from src/Google/Api/Ads/Dfp/v201311/OrderService.php rename to src/Google/Api/Ads/Dfp/v201502/OrderService.php index 02b6f7a89..dc770c91c 100755 --- a/src/Google/Api/Ads/Dfp/v201311/OrderService.php +++ b/src/Google/Api/Ads/Dfp/v201502/OrderService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,9 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -255,11 +176,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -302,11 +223,11 @@ public function __construct($labelId = null, $isNegated = null) { /** * Errors associated with audience extension enabled line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceExtensionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError"; /** @@ -331,85 +252,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -419,11 +267,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -448,13 +296,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -464,11 +311,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -477,44 +324,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -531,9 +340,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -544,11 +352,11 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n * Click tracking is a special line item type with a number of unique errors as * described below. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingLineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingLineItemError"; /** @@ -573,36 +381,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -620,10 +425,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -633,11 +440,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -662,13 +469,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -678,11 +484,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors due to {@link Company#creditStatus}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanyCreditStatusError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError"; /** @@ -707,13 +513,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -723,11 +528,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors related to {@link ContentMetadataTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError"; /** @@ -752,13 +557,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -768,11 +572,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError"; /** @@ -797,13 +601,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -813,11 +616,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with cross selling. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CrossSellError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError"; /** @@ -842,13 +645,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -859,11 +661,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -888,11 +690,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -902,11 +703,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -931,13 +732,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -948,11 +748,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -977,13 +777,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -993,11 +792,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1047,11 +846,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1116,11 +915,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Lists all date time range errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeRangeTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeRangeTargetingError"; /** @@ -1145,13 +944,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1161,11 +959,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with day-part targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargetingError"; /** @@ -1190,13 +988,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1207,11 +1004,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -1236,11 +1033,54 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1251,11 +1091,11 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -1274,12 +1114,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1290,11 +1129,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1319,13 +1158,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1335,11 +1173,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors that can result from a forecast request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError"; /** @@ -1364,13 +1202,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1380,11 +1217,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError"; /** @@ -1409,13 +1246,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1425,11 +1261,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Targeting validation errors that can be used by different targeting types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GenericTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError"; /** @@ -1454,13 +1290,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1471,11 +1306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors associated with geographical targeting for a * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError"; /** @@ -1500,13 +1335,100 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1518,11 +1440,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1547,13 +1469,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1564,11 +1485,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Caused by supplying a value for an email attribute that is not a valid * email address. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidEmailError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError"; /** @@ -1593,13 +1514,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1609,11 +1529,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -1638,13 +1558,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1655,11 +1574,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all inventory errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError"; /** @@ -1684,13 +1603,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1700,11 +1618,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -1729,13 +1647,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError"; + + /** + * @access public + * @var tnsLineItemActivityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1745,11 +1706,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with line item-to-creative association dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemCreativeAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError"; /** @@ -1774,13 +1735,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1790,11 +1750,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A catch-all error that lists all generic errors associated with LineItem. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemError"; /** @@ -1819,13 +1779,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1835,11 +1794,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with LineItem start and end dates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemFlightDateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemFlightDateError"; /** @@ -1864,13 +1823,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1880,11 +1838,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors for executing operations on line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError"; /** @@ -1909,13 +1867,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1925,11 +1882,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -1972,11 +1929,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -2001,13 +1958,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2017,11 +1973,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -2046,36 +2002,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("OrderAction", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Represents the actions that can be performed on {@link Order} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderAction"; /** * Gets the namesapce of this class @@ -2093,82 +2040,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("OrderAction", false)) { - /** - * Represents the actions that can be performed on {@link Order} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OrderAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderAction"; - - /** - * @access public - * @var string - */ - public $OrderActionType; - private $_parameterMap = array( - "OrderAction.Type" => "OrderActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($OrderActionType = null) { - $this->OrderActionType = $OrderActionType; + public function __construct() { } } @@ -2178,11 +2050,11 @@ public function __construct($OrderActionType = null) { /** * Lists all errors associated with performing actions on {@link Order} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OrderActionError"; /** @@ -2207,13 +2079,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2224,11 +2095,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An {@code Order} represents a grouping of individual {@link LineItem} * objects, each of which fulfill an ad request from a particular advertiser. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Order { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Order"; /** @@ -2387,6 +2258,18 @@ class Order { */ public $lastModifiedByApp; + /** + * @access public + * @var boolean + */ + public $isProgrammatic; + + /** + * @access public + * @var ProgrammaticSettings + */ + public $programmaticSettings; + /** * @access public * @var integer[] @@ -2421,7 +2304,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $startDateTime = null, $endDateTime = null, $unlimitedEndDateTime = null, $status = null, $isArchived = null, $notes = null, $externalOrderId = null, $poNumber = null, $currencyCode = null, $advertiserId = null, $advertiserContactIds = null, $agencyId = null, $agencyContactIds = null, $creatorId = null, $traffickerId = null, $secondaryTraffickerIds = null, $salespersonId = null, $secondarySalespersonIds = null, $totalImpressionsDelivered = null, $totalClicksDelivered = null, $totalBudget = null, $appliedLabels = null, $effectiveAppliedLabels = null, $lastModifiedByApp = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $customFieldValues = null) { + public function __construct($id = null, $name = null, $startDateTime = null, $endDateTime = null, $unlimitedEndDateTime = null, $status = null, $isArchived = null, $notes = null, $externalOrderId = null, $poNumber = null, $currencyCode = null, $advertiserId = null, $advertiserContactIds = null, $agencyId = null, $agencyContactIds = null, $creatorId = null, $traffickerId = null, $secondaryTraffickerIds = null, $salespersonId = null, $secondarySalespersonIds = null, $totalImpressionsDelivered = null, $totalClicksDelivered = null, $totalBudget = null, $appliedLabels = null, $effectiveAppliedLabels = null, $lastModifiedByApp = null, $isProgrammatic = null, $programmaticSettings = null, $appliedTeamIds = null, $lastModifiedDateTime = null, $customFieldValues = null) { $this->id = $id; $this->name = $name; $this->startDateTime = $startDateTime; @@ -2448,6 +2331,8 @@ public function __construct($id = null, $name = null, $startDateTime = null, $en $this->appliedLabels = $appliedLabels; $this->effectiveAppliedLabels = $effectiveAppliedLabels; $this->lastModifiedByApp = $lastModifiedByApp; + $this->isProgrammatic = $isProgrammatic; + $this->programmaticSettings = $programmaticSettings; $this->appliedTeamIds = $appliedTeamIds; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->customFieldValues = $customFieldValues; @@ -2460,11 +2345,11 @@ public function __construct($id = null, $name = null, $startDateTime = null, $en /** * Lists all errors associated with orders. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OrderError"; /** @@ -2489,13 +2374,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2505,11 +2389,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Order} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OrderPage"; /** @@ -2559,11 +2443,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -2588,13 +2472,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2605,11 +2488,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The action used for pausing {@link Order} objects. All {@link LineItem} * objects within the order will be paused as well. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PauseOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PauseOrders"; /** @@ -2628,9 +2511,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -2640,11 +2522,11 @@ public function __construct($OrderActionType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -2669,13 +2551,124 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ProgrammaticError", false)) { + /** + * Errors associated with programmatic line items + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProgrammaticError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError"; + + /** + * @access public + * @var tnsProgrammaticErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticSettings", false)) { + /** + * Represents the additional settings of a programmatic order. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProgrammaticSettings { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticSettings"; + + /** + * @access public + * @var integer + */ + public $adxBuyerNetworkId; + + /** + * @access public + * @var integer + */ + public $buyerId; + + /** + * @access public + * @var tnsBuyerPlatform + */ + public $buyerPlatform; + + /** + * @access public + * @var tnsBillingTermsType + */ + public $billingTermsType; + + /** + * @access public + * @var tnsProgrammaticStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adxBuyerNetworkId = null, $buyerId = null, $buyerPlatform = null, $billingTermsType = null, $status = null) { + $this->adxBuyerNetworkId = $adxBuyerNetworkId; + $this->buyerId = $buyerId; + $this->buyerPlatform = $buyerPlatform; + $this->billingTermsType = $billingTermsType; + $this->status = $status; } } @@ -2686,11 +2679,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2715,13 +2708,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2732,11 +2724,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2761,13 +2753,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2778,11 +2769,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2807,13 +2798,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2823,11 +2813,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -2852,13 +2842,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2868,11 +2857,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -2897,13 +2886,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2913,11 +2901,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2942,13 +2930,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2959,11 +2946,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2988,13 +2975,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3004,11 +2990,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating {@link Size}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError"; /** @@ -3033,13 +3019,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3049,11 +3034,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with LineItem's reservation details. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReservationDetailsError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReservationDetailsError"; /** @@ -3078,13 +3063,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3095,11 +3079,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The action used for resuming {@link Order} objects. {@link LineItem} objects within * the order that are eligble to resume will resume as well. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ResumeOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ResumeOrders"; /** @@ -3124,10 +3108,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { + public function __construct($skipInventoryCheck = null) { parent::__construct(); $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; } } @@ -3137,11 +3120,11 @@ public function __construct($skipInventoryCheck = null, $OrderActionType = null) /** * The action used for retracting {@link Order} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RetractOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RetractOrders"; /** @@ -3160,9 +3143,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -3174,11 +3156,11 @@ public function __construct($OrderActionType = null) { * make any changes to the {@link LineItem#reservationStatus} of the line items * within the order. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RetractOrdersWithoutReservationChanges extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RetractOrdersWithoutReservationChanges"; /** @@ -3197,9 +3179,52 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -3209,11 +3234,11 @@ public function __construct($OrderActionType = null) { /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -3238,13 +3263,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetTopBoxLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError"; + + /** + * @access public + * @var tnsSetTopBoxLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3254,11 +3322,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -3273,12 +3341,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3295,10 +3357,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -3308,11 +3369,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -3383,11 +3444,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -3430,11 +3491,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -3459,13 +3520,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3475,11 +3535,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -3504,13 +3564,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3521,11 +3580,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -3568,11 +3627,11 @@ public function __construct($key = null, $value = null) { /** * The action used for submitting {@link Order} objects for approval. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SubmitOrdersForApproval extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SubmitOrdersForApproval"; /** @@ -3597,10 +3656,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { + public function __construct($skipInventoryCheck = null) { parent::__construct(); $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; } } @@ -3610,11 +3668,11 @@ public function __construct($skipInventoryCheck = null, $OrderActionType = null) /** * The action used for submitting and overbooking {@link Order} objects for approval. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SubmitOrdersForApprovalAndOverbook"; /** @@ -3647,11 +3705,11 @@ public function __construct($skipInventoryCheck = null) { * action does not make any changes to the {@link LineItem#reservationStatus} * of the line items within the order. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SubmitOrdersForApprovalWithoutReservationChanges"; /** @@ -3670,9 +3728,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -3682,11 +3739,11 @@ public function __construct($OrderActionType = null) { /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -3711,13 +3768,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3727,11 +3783,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Technology targeting validation errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargetingError"; /** @@ -3756,13 +3812,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3772,11 +3827,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with template instantiated creatives. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TemplateInstantiatedCreativeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TemplateInstantiatedCreativeError"; /** @@ -3801,13 +3856,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3817,11 +3871,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -3840,12 +3894,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3855,11 +3908,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * The action used for unarchiving {@link Order} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UnarchiveOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UnarchiveOrders"; /** @@ -3878,9 +3931,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -3890,11 +3942,11 @@ public function __construct($OrderActionType = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -3913,12 +3965,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3928,11 +3979,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -3968,11 +4019,11 @@ public function __construct($numChanges = null) { /** * Lists all errors related to user domain targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UserDomainTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargetingError"; /** @@ -3997,13 +4048,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -4013,51 +4063,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -4074,8 +4086,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -4086,11 +4097,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -4119,11 +4130,11 @@ public function __construct() { /** * Specific audience extension error reasons. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AudienceExtensionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceExtensionError.Reason"; /** @@ -4155,11 +4166,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -4184,15 +4195,81 @@ public function __construct() { } } +if (!class_exists("BillingTermsType", false)) { + /** + * Describes the billing terms for a programmatic order. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BillingTermsType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingTermsType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BuyerPlatform", false)) { + /** + * Describes the buyer platform for a programmatic order. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BuyerPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BuyerPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ClickTrackingLineItemErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ClickTrackingLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ClickTrackingLineItemError.Reason"; /** @@ -4217,15 +4294,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -4254,11 +4364,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CompanyCreditStatusErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CompanyCreditStatusError.Reason"; /** @@ -4287,11 +4397,11 @@ public function __construct() { /** * The reasons for the metadata targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataTargetingError.Reason"; /** @@ -4320,11 +4430,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeError.Reason"; /** @@ -4353,11 +4463,11 @@ public function __construct() { /** * The reason of the error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CrossSellErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CrossSellError.Reason"; /** @@ -4386,11 +4496,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError.Reason"; /** @@ -4419,11 +4529,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError.Reason"; /** @@ -4452,11 +4562,11 @@ public function __construct() { /** * {@link ApiErrorReason} enum for date time range targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeRangeTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; /** @@ -4485,11 +4595,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargetingError.Reason"; /** @@ -4514,15 +4624,48 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -4551,11 +4694,11 @@ public function __construct() { /** * Reason why a forecast could not be retrieved. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError.Reason"; /** @@ -4584,11 +4727,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError.Reason"; /** @@ -4617,11 +4760,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GenericTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError.Reason"; /** @@ -4650,11 +4793,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError.Reason"; /** @@ -4679,15 +4822,81 @@ public function __construct() { } } +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("InternalApiErrorReason", false)) { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -4716,11 +4925,11 @@ public function __construct() { /** * Describes reasons for an email to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidEmailErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError.Reason"; /** @@ -4749,11 +4958,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -4782,11 +4991,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError.Reason"; /** @@ -4815,11 +5024,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -4844,15 +5053,48 @@ public function __construct() { } } +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class LineItemActivityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemCreativeAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; /** @@ -4881,11 +5123,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemError.Reason"; /** @@ -4914,11 +5156,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemFlightDateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemFlightDateError.Reason"; /** @@ -4947,11 +5189,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError.Reason"; /** @@ -4980,11 +5222,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -5013,11 +5255,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -5046,12 +5288,78 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderActionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderStatus", false)) { + /** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class OrderStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderStatus"; /** * Gets the namesapce of this class @@ -5075,16 +5383,16 @@ public function __construct() { } } -if (!class_exists("OrderErrorReason", false)) { +if (!class_exists("ParseErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class OrderErrorReason { + class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError.Reason"; /** * Gets the namesapce of this class @@ -5108,16 +5416,16 @@ public function __construct() { } } -if (!class_exists("OrderStatus", false)) { +if (!class_exists("PermissionErrorReason", false)) { /** - * Describes the order statuses. + * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class OrderStatus { + class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OrderStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError.Reason"; /** * Gets the namesapce of this class @@ -5141,16 +5449,16 @@ public function __construct() { } } -if (!class_exists("ParseErrorReason", false)) { +if (!class_exists("ProgrammaticErrorReason", false)) { /** - * The reasons for the target error. + * Audience extension is not supported by programmatic line items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseErrorReason { + class ProgrammaticErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticError.Reason"; /** * Gets the namesapce of this class @@ -5174,16 +5482,16 @@ public function __construct() { } } -if (!class_exists("PermissionErrorReason", false)) { +if (!class_exists("ProgrammaticStatus", false)) { /** - * Describes reasons for permission errors. + * Describes the programmatic statuses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionErrorReason { + class ProgrammaticStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProgrammaticStatus"; /** * Gets the namesapce of this class @@ -5211,11 +5519,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -5244,11 +5552,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -5287,11 +5595,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -5320,11 +5628,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -5353,11 +5661,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -5386,11 +5694,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -5419,11 +5727,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -5453,11 +5761,11 @@ public function __construct() { * {@link Creative#size} or {@link LineItem#creativeSizes} is * missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredSizeError.Reason"; /** @@ -5486,11 +5794,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ReservationDetailsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReservationDetailsError.Reason"; /** @@ -5515,16 +5823,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("AudienceSegmentErrorReason", false)) { /** - * Describes reasons for server errors + * Reason of the given {@link AudienceSegmentError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class AudienceSegmentErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentError.Reason"; /** * Gets the namesapce of this class @@ -5548,16 +5856,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -5581,16 +5889,16 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * Reason for set-top box error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthErrorReason { + class SetTopBoxLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; /** * Gets the namesapce of this class @@ -5614,16 +5922,16 @@ public function __construct() { } } -if (!class_exists("TeamErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * The reasons for the target error. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -5647,16 +5955,16 @@ public function __construct() { } } -if (!class_exists("TechnologyTargetingErrorReason", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TechnologyTargetingErrorReason { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -5680,16 +5988,16 @@ public function __construct() { } } -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { +if (!class_exists("TeamErrorReason", false)) { /** - * The reason for the error + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TemplateInstantiatedCreativeErrorReason { + class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TeamError.Reason"; /** * Gets the namesapce of this class @@ -5713,16 +6021,16 @@ public function __construct() { } } -if (!class_exists("UserDomainTargetingErrorReason", false)) { +if (!class_exists("TechnologyTargetingErrorReason", false)) { /** - * {@link ApiErrorReason} enum for user domain targeting error. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UserDomainTargetingErrorReason { + class TechnologyTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5746,32 +6054,16 @@ public function __construct() { } } -if (!class_exists("CreateOrder", false)) { +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { /** - * Creates a new {@link Order}. - * - * The following fields are required: - *
      - *
    • {@link Order#advertiserId}
    • - *
    • {@link Order#name}
    • - *
    • {@link Order#traffickerId}
    • - *
    - * - * @param order the order to create - * @return the order with its ID filled in + * The reason for the error * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class TemplateInstantiatedCreativeErrorReason { - /** - * @access public - * @var Order - */ - public $order; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; /** * Gets the namesapce of this class @@ -5789,29 +6081,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($order = null) { - $this->order = $order; + public function __construct() { } } } -if (!class_exists("CreateOrderResponse", false)) { +if (!class_exists("UserDomainTargetingErrorReason", false)) { /** - * + * {@link ApiErrorReason} enum for user domain targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class UserDomainTargetingErrorReason { - /** - * @access public - * @var Order - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5829,8 +6114,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } @@ -5843,11 +6127,11 @@ public function __construct($rval = null) { * @param orders the orders to create * @return the created orders with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateOrders { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5883,11 +6167,11 @@ public function __construct($orders = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateOrdersResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5919,89 +6203,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetOrder", false)) { - /** - * Returns the {@link Order} uniquely identified by the given ID. - * - * @param orderId the ID of the order, which must already exist - * @return the {@code Order} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetOrder { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $orderId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orderId = null) { - $this->orderId = $orderId; - } - - } -} - -if (!class_exists("GetOrderResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetOrderResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetOrdersByStatement", false)) { /** * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given @@ -6053,11 +6254,11 @@ public function __construct($rval = null) { * a set of orders * @return the orders that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetOrdersByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -6093,11 +6294,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetOrdersByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -6139,11 +6340,11 @@ public function __construct($rval = null) { * a set of orders * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformOrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -6186,11 +6387,11 @@ public function __construct($orderAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformOrderActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -6222,25 +6423,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateOrder", false)) { +if (!class_exists("UpdateOrders", false)) { /** - * Updates the specified {@link Order}. + * Updates the specified {@link Order} objects. * - * @param order the order to update - * @return the updated order + * @param orders the orders to update + * @return the updated orders * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateOrder { + class UpdateOrders { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Order + * @var Order[] */ - public $order; + public $orders; /** * Gets the namesapce of this class @@ -6258,27 +6459,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($order = null) { - $this->order = $order; + public function __construct($orders = null) { + $this->orders = $orders; } } } -if (!class_exists("UpdateOrderResponse", false)) { +if (!class_exists("UpdateOrdersResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateOrderResponse { + class UpdateOrdersResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Order + * @var Order[] */ public $rval; @@ -6305,65 +6506,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateOrders", false)) { - /** - * Updates the specified {@link Order} objects. - * - * @param orders the orders to update - * @return the updated orders - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateOrders { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Order[] - */ - public $orders; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($orders = null) { - $this->orders = $orders; - } - - } -} - -if (!class_exists("UpdateOrdersResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateOrdersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var Order[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -6381,8 +6540,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -6392,11 +6551,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -6421,11 +6580,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -6436,11 +6594,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti * The action used for approving {@link Order} objects. All {@link LineItem} * objects within the order will be approved as well. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApproveOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApproveOrders"; /** @@ -6465,10 +6623,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($skipInventoryCheck = null, $OrderActionType = null) { + public function __construct($skipInventoryCheck = null) { parent::__construct(); $this->skipInventoryCheck = $skipInventoryCheck; - $this->OrderActionType = $OrderActionType; } } @@ -6482,11 +6639,11 @@ public function __construct($skipInventoryCheck = null, $OrderActionType = null) * items within the order. If there are reservable line items that have not * been reserved the operation will not succeed. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApproveOrdersWithoutReservationChanges extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApproveOrdersWithoutReservationChanges"; /** @@ -6505,9 +6662,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -6517,11 +6673,11 @@ public function __construct($OrderActionType = null) { /** * The action used for archiving {@link Order} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ArchiveOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ArchiveOrders"; /** @@ -6540,9 +6696,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -6552,11 +6707,11 @@ public function __construct($OrderActionType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -6581,10 +6736,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6594,11 +6748,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -6623,10 +6777,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6636,11 +6789,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -6665,10 +6818,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6681,11 +6833,11 @@ public function __construct($value = null, $ValueType = null) { * items have been eligible to serve. This action can be used to delete * proposed orders and line items if they are no longer valid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeleteOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeleteOrders"; /** @@ -6704,9 +6856,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -6717,11 +6868,11 @@ public function __construct($OrderActionType = null) { * The action used for disapproving {@link Order} objects. All {@link LineItem} * objects within the order will be disapproved as well. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DisapproveOrders extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DisapproveOrders"; /** @@ -6740,9 +6891,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -6755,11 +6905,11 @@ public function __construct($OrderActionType = null) { * make any changes to the {@link LineItem#reservationStatus} of the line items * within the order. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DisapproveOrdersWithoutReservationChanges extends OrderAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DisapproveOrdersWithoutReservationChanges"; /** @@ -6778,9 +6928,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($OrderActionType = null) { + public function __construct() { parent::__construct(); - $this->OrderActionType = $OrderActionType; } } @@ -6790,11 +6939,11 @@ public function __construct($OrderActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -6819,10 +6968,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6833,11 +6981,11 @@ public function __construct($value = null, $ValueType = null) { * The action used for resuming and overbooking {@link Order} objects. * All {@link LineItem} objects within the order will resume as well. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ResumeAndOverbookOrders extends ResumeOrders { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ResumeAndOverbookOrders"; /** @@ -6868,11 +7016,11 @@ public function __construct($skipInventoryCheck = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -6897,10 +7045,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -6910,11 +7057,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -6939,10 +7086,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6953,11 +7099,11 @@ public function __construct($value = null, $ValueType = null) { * The action used for approving and overbooking {@link Order} objects. * All {@link LineItem} objects within the order will be approved as well. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApproveAndOverbookOrders extends ApproveOrders { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApproveAndOverbookOrders"; /** @@ -6988,25 +7134,26 @@ public function __construct($skipInventoryCheck = null) { /** * OrderService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OrderService extends DfpSoapClient { const SERVICE_NAME = "OrderService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/OrderService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/OrderService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/OrderService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/OrderService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", @@ -7017,12 +7164,11 @@ class OrderService extends DfpSoapClient { "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", "ArchiveOrders" => "ArchiveOrders", "AudienceExtensionError" => "AudienceExtensionError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", "ClickTrackingLineItemError" => "ClickTrackingLineItemError", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CompanyCreditStatusError" => "CompanyCreditStatusError", "ContentMetadataTargetingError" => "ContentMetadataTargetingError", @@ -7041,17 +7187,21 @@ class OrderService extends DfpSoapClient { "DisapproveOrders" => "DisapproveOrders", "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "FrequencyCapError" => "FrequencyCapError", "GenericTargetingError" => "GenericTargetingError", "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", "InternalApiError" => "InternalApiError", "InvalidEmailError" => "InvalidEmailError", "InvalidUrlError" => "InvalidUrlError", "InventoryTargetingError" => "InventoryTargetingError", "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", "LineItemError" => "LineItemError", "LineItemFlightDateError" => "LineItemFlightDateError", @@ -7060,7 +7210,6 @@ class OrderService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OrderAction" => "OrderAction", "OrderActionError" => "OrderActionError", "Order" => "Order", @@ -7069,6 +7218,8 @@ class OrderService extends DfpSoapClient { "ParseError" => "ParseError", "PauseOrders" => "PauseOrders", "PermissionError" => "PermissionError", + "ProgrammaticError" => "ProgrammaticError", + "ProgrammaticSettings" => "ProgrammaticSettings", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", @@ -7082,7 +7233,9 @@ class OrderService extends DfpSoapClient { "ResumeOrders" => "ResumeOrders", "RetractOrders" => "RetractOrders", "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "AudienceSegmentError" => "AudienceSegmentError", "ServerError" => "ServerError", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -7106,7 +7259,10 @@ class OrderService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingTermsType" => "BillingTermsType", + "BuyerPlatform" => "BuyerPlatform", "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", @@ -7116,16 +7272,20 @@ class OrderService extends DfpSoapClient { "CustomTargetingError.Reason" => "CustomTargetingErrorReason", "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InvalidEmailError.Reason" => "InvalidEmailErrorReason", "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", "LineItemError.Reason" => "LineItemErrorReason", "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", @@ -7137,6 +7297,8 @@ class OrderService extends DfpSoapClient { "OrderStatus" => "OrderStatus", "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", + "ProgrammaticStatus" => "ProgrammaticStatus", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", @@ -7146,25 +7308,21 @@ class OrderService extends DfpSoapClient { "RequiredNumberError.Reason" => "RequiredNumberErrorReason", "RequiredSizeError.Reason" => "RequiredSizeErrorReason", "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "TeamError.Reason" => "TeamErrorReason", "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "createOrder" => "CreateOrder", - "createOrderResponse" => "CreateOrderResponse", "createOrders" => "CreateOrders", "createOrdersResponse" => "CreateOrdersResponse", - "getOrder" => "GetOrder", - "getOrderResponse" => "GetOrderResponse", "getOrdersByStatement" => "GetOrdersByStatement", "getOrdersByStatementResponse" => "GetOrdersByStatementResponse", "performOrderAction" => "PerformOrderAction", "performOrderActionResponse" => "PerformOrderActionResponse", - "updateOrder" => "UpdateOrder", - "updateOrderResponse" => "UpdateOrderResponse", "updateOrders" => "UpdateOrders", "updateOrdersResponse" => "UpdateOrdersResponse", ); @@ -7180,24 +7338,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link Order}. - * - * The following fields are required: - *

      - *
    • {@link Order#advertiserId}
    • - *
    • {@link Order#name}
    • - *
    • {@link Order#traffickerId}
    • - *
    - * - * @param order the order to create - * @return the order with its ID filled in - */ - public function createOrder($order) { - $args = new CreateOrder($order); - $result = $this->__soapCall("createOrder", array($args)); - return $result->rval; - } /** * Creates new {@link Order} objects. * @@ -7209,17 +7349,6 @@ public function createOrders($orders) { $result = $this->__soapCall("createOrders", array($args)); return $result->rval; } - /** - * Returns the {@link Order} uniquely identified by the given ID. - * - * @param orderId the ID of the order, which must already exist - * @return the {@code Order} uniquely identified by the given ID - */ - public function getOrder($orderId) { - $args = new GetOrder($orderId); - $result = $this->__soapCall("getOrder", array($args)); - return $result->rval; - } /** * Gets an {@link OrderPage} of {@link Order} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -7289,17 +7418,6 @@ public function performOrderAction($orderAction, $filterStatement) { $result = $this->__soapCall("performOrderAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link Order}. - * - * @param order the order to update - * @return the updated order - */ - public function updateOrder($order) { - $args = new UpdateOrder($order); - $result = $this->__soapCall("updateOrder", array($args)); - return $result->rval; - } /** * Updates the specified {@link Order} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201502/PackageService.php similarity index 72% rename from src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php rename to src/Google/Api/Ads/Dfp/v201502/PackageService.php index c77796e36..b95e3aefe 100755 --- a/src/Google/Api/Ads/Dfp/v201311/CreativeSetService.php +++ b/src/Google/Api/Ads/Dfp/v201502/PackageService.php @@ -1,6 +1,6 @@ The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,28 +163,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("AssetError", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * Lists all errors associated with assets. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AssetError extends ApiError { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AssetError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var tnsAssetErrorReason + * @var tnsAuthenticationErrorReason */ public $reason; @@ -282,66 +203,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AvailableBillingError", false)) { /** - * A representation of the authentication protocols that can be used. + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class AvailableBillingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAvailableBillingErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -359,27 +248,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("BillingError", false)) { /** - * An error for an exception that occurred when authenticating. + * Lists all errors associated with the billing settings of a proposal or proposal line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class BillingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsBillingErrorReason */ public $reason; @@ -399,36 +292,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -446,10 +336,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -459,11 +351,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -488,32 +380,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeAssetMacroError", false)) { +if (!class_exists("CustomFieldValueError", false)) { /** - * Lists all errors associated with creative asset macros. + * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeAssetMacroError extends ApiError { + class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeAssetMacroError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError"; /** * @access public - * @var tnsCreativeAssetMacroErrorReason + * @var tnsCustomFieldValueErrorReason */ public $reason; @@ -533,32 +424,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeError", false)) { +if (!class_exists("CustomTargetingError", false)) { /** - * Lists all errors associated with creatives. + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeError extends ApiError { + class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingError"; /** * @access public - * @var tnsCreativeErrorReason + * @var tnsCustomTargetingErrorReason */ public $reason; @@ -578,58 +469,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeSet", false)) { +if (!class_exists("Date", false)) { /** - * A creative set is comprised of a master creative and its companion creatives. + * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeSet { + class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSet"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Date"; /** * @access public * @var integer */ - public $id; - - /** - * @access public - * @var string - */ - public $name; + public $year; /** * @access public * @var integer */ - public $masterCreativeId; - - /** - * @access public - * @var integer[] - */ - public $companionCreativeIds; + public $month; /** * @access public - * @var DateTime + * @var integer */ - public $lastModifiedDateTime; + public $day; /** * Gets the namesapce of this class @@ -647,90 +525,55 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $masterCreativeId = null, $companionCreativeIds = null, $lastModifiedDateTime = null) { - $this->id = $id; - $this->name = $name; - $this->masterCreativeId = $masterCreativeId; - $this->companionCreativeIds = $companionCreativeIds; - $this->lastModifiedDateTime = $lastModifiedDateTime; + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; } } } -if (!class_exists("CreativeSetError", false)) { +if (!class_exists("DfpDateTime", false)) { /** - * Errors relating to creative sets & subclasses. + * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeSetError extends ApiError { + class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSetError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTime"; /** * @access public - * @var tnsCreativeSetErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class + * @var Date */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $date; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var integer */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CreativeSetPage", false)) { - /** - * Captures a page of {@link CreativeSet} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreativeSetPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSetPage"; + public $hour; /** * @access public * @var integer */ - public $totalResultSetSize; + public $minute; /** * @access public * @var integer */ - public $startIndex; + public $second; /** * @access public - * @var CreativeSet[] + * @var string */ - public $results; + public $timeZoneID; /** * Gets the namesapce of this class @@ -748,29 +591,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; + public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; } } } -if (!class_exists("CustomCreativeError", false)) { +if (!class_exists("DayPartTargetingError", false)) { /** - * Lists all errors associated with custom creatives. + * Lists all errors associated with day-part targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCreativeError extends ApiError { + class DayPartTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCreativeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayPartTargetingError"; /** * @access public - * @var tnsCustomCreativeErrorReason + * @var tnsDayPartTargetingErrorReason */ public $reason; @@ -790,32 +635,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CustomFieldValueError", false)) { +if (!class_exists("FeatureError", false)) { /** - * Errors specific to editing custom field values + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomFieldValueError extends ApiError { + class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var tnsCustomFieldValueErrorReason + * @var tnsFeatureErrorReason */ public $reason; @@ -835,46 +680,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Date", false)) { +if (!class_exists("FrequencyCapError", false)) { /** - * Represents a date. + * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Date { + class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FrequencyCapError"; /** * @access public - * @var integer + * @var tnsFrequencyCapErrorReason */ - public $year; - - /** - * @access public - * @var integer - */ - public $month; - - /** - * @access public - * @var integer - */ - public $day; + public $reason; /** * Gets the namesapce of this class @@ -892,55 +724,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DfpDateTime", false)) { +if (!class_exists("GenericTargetingError", false)) { /** - * Represents a date combined with the time of day. + * Targeting validation errors that can be used by different targeting types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; + class GenericTargetingError extends ApiError { - /** - * @access public - * @var integer - */ - public $minute; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GenericTargetingError"; /** * @access public - * @var integer + * @var tnsGenericTargetingErrorReason */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; + public $reason; /** * Gets the namesapce of this class @@ -958,28 +768,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("EntityLimitReachedError", false)) { +if (!class_exists("GeoTargetingError", false)) { /** - * An error that occurs when creating an entity if the limit on the number of allowed entities for - * a network has already been reached. + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class EntityLimitReachedError extends ApiError { + class GeoTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "EntityLimitReachedError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; /** * Gets the namesapce of this class @@ -997,32 +813,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); + $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var tnsFeatureErrorReason + * @var tnsInternalApiErrorReason */ public $reason; @@ -1042,32 +859,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("FileError", false)) { +if (!class_exists("InventoryTargetingError", false)) { /** - * A list of all errors to be used for problems related to files. + * Lists all inventory errors caused by associating a line item with a targeting + * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FileError extends ApiError { + class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FileError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError"; /** * @access public - * @var tnsFileErrorReason + * @var tnsInventoryTargetingErrorReason */ public $reason; @@ -1087,32 +904,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ImageError", false)) { +if (!class_exists("LabelEntityAssociationError", false)) { /** - * Lists all errors associated with images. + * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ImageError extends ApiError { + class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ImageError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LabelEntityAssociationError"; /** * @access public - * @var tnsImageErrorReason + * @var tnsLabelEntityAssociationErrorReason */ public $reason; @@ -1132,34 +948,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("NotNullError", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var tnsInternalApiErrorReason + * @var tnsNotNullErrorReason */ public $reason; @@ -1179,34 +992,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InvalidPhoneNumberError", false)) { +if (!class_exists("PackageAction", false)) { /** - * Lists all errors associated with phone numbers. + * Represents the actions that can be performed on {@link Package} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InvalidPhoneNumberError extends ApiError { + class PackageAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidPhoneNumberError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageAction"; /** * @access public - * @var tnsInvalidPhoneNumberErrorReason + * @var tnsPackageOperator */ - public $reason; + public $packageOperator; /** * Gets the namesapce of this class @@ -1224,32 +1036,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($packageOperator = null) { + $this->packageOperator = $packageOperator; } } } -if (!class_exists("InvalidUrlError", false)) { +if (!class_exists("PackageActionError", false)) { /** - * Lists all errors associated with URLs. + * Lists all errors for executing actions on {@link Package} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InvalidUrlError extends ApiError { + class PackageActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageActionError"; /** * @access public - * @var tnsInvalidUrlErrorReason + * @var tnsPackageActionErrorReason */ public $reason; @@ -1269,34 +1076,87 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LabelEntityAssociationError", false)) { +if (!class_exists("Package", false)) { /** - * Errors specific to creating label entity associations. + * A {@code Package} represents a group of proposal line items which will be sold together. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelEntityAssociationError extends ApiError { + class Package { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Package"; /** * @access public - * @var tnsLabelEntityAssociationErrorReason + * @var integer */ - public $reason; + public $id; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var integer + */ + public $productPackageId; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $comments; + + /** + * @access public + * @var tnsPackageStatus + */ + public $status; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; /** * Gets the namesapce of this class @@ -1314,32 +1174,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $proposalId = null, $productPackageId = null, $rateCardId = null, $name = null, $comments = null, $status = null, $startDateTime = null, $endDateTime = null, $lastModifiedDateTime = null) { + $this->id = $id; + $this->proposalId = $proposalId; + $this->productPackageId = $productPackageId; + $this->rateCardId = $rateCardId; + $this->name = $name; + $this->comments = $comments; + $this->status = $status; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("PackageError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Lists all errors associated with {@link Package} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class PackageError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsPackageErrorReason */ public $reason; @@ -1359,34 +1223,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("PackagePage", false)) { /** - * Errors associated with violation of a NOT NULL check. + * Captures a page of {@link Package} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullError extends ApiError { + class PackagePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackagePage"; /** * @access public - * @var tnsNullErrorReason + * @var Package[] */ - public $reason; + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; /** * Gets the namesapce of this class @@ -1404,36 +1279,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("PermissionError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var string + * @var tnsPermissionErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1451,29 +1321,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ParseError", false)) { +if (!class_exists("PrecisionError", false)) { /** - * Lists errors related to parsing. + * List all errors associated with number precisions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseError extends ApiError { + class PrecisionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PrecisionError"; /** * @access public - * @var tnsParseErrorReason + * @var tnsPrecisionErrorReason */ public $reason; @@ -1493,32 +1365,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("ProductError", false)) { /** - * Errors related to incorrect permission. + * A catch-all error that lists all generic errors associated with Product. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionError extends ApiError { + class ProductError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductError"; /** * @access public - * @var tnsPermissionErrorReason + * @var tnsProductErrorReason */ public $reason; @@ -1538,33 +1409,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PublisherQueryLanguageContextError", false)) { +if (!class_exists("ProposalError", false)) { /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. + * Lists all errors associated with proposals. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextError extends ApiError { + class ProposalError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalError"; /** * @access public - * @var tnsPublisherQueryLanguageContextErrorReason + * @var tnsProposalErrorReason */ public $reason; @@ -1584,33 +1453,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { +if (!class_exists("ProposalLineItemError", false)) { /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. + * Lists all errors associated with proposal line items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxError extends ApiError { + class ProposalLineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemError"; /** * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason + * @var tnsProposalLineItemErrorReason */ public $reason; @@ -1630,33 +1497,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("QuotaError", false)) { +if (!class_exists("PublisherQueryLanguageContextError", false)) { /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaError extends ApiError { + class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; /** * @access public - * @var tnsQuotaErrorReason + * @var tnsPublisherQueryLanguageContextErrorReason */ public $reason; @@ -1676,32 +1542,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RangeError", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { /** - * A list of all errors associated with the Range constraint. + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RangeError extends ApiError { + class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** * @access public - * @var tnsRangeErrorReason + * @var tnsPublisherQueryLanguageSyntaxErrorReason */ public $reason; @@ -1721,32 +1587,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredCollectionError", false)) { +if (!class_exists("QuotaError", false)) { /** - * A list of all errors to be used for validating sizes of collections. + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredCollectionError extends ApiError { + class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError"; /** * @access public - * @var tnsRequiredCollectionErrorReason + * @var tnsQuotaErrorReason */ public $reason; @@ -1766,32 +1632,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredError", false)) { +if (!class_exists("RangeError", false)) { /** - * Errors due to missing required field. + * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredError extends ApiError { + class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError"; /** * @access public - * @var tnsRequiredErrorReason + * @var tnsRangeErrorReason */ public $reason; @@ -1811,33 +1676,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredNumberError", false)) { +if (!class_exists("RequiredError", false)) { /** - * A list of all errors to be used in conjunction with required number - * validators. + * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredNumberError extends ApiError { + class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError"; /** * @access public - * @var tnsRequiredNumberErrorReason + * @var tnsRequiredErrorReason */ public $reason; @@ -1857,32 +1720,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredSizeError", false)) { +if (!class_exists("RequiredNumberError", false)) { /** - * A list of all errors to be used for validating {@link Size}. + * A list of all errors to be used in conjunction with required number + * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredSizeError extends ApiError { + class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError"; /** * @access public - * @var tnsRequiredSizeErrorReason + * @var tnsRequiredNumberErrorReason */ public $reason; @@ -1902,32 +1765,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RichMediaStudioCreativeError", false)) { +if (!class_exists("ReservationDetailsError", false)) { /** - * Lists all errors associated with Rich Media Studio creatives. + * Lists all errors associated with LineItem's reservation details. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RichMediaStudioCreativeError extends ApiError { + class ReservationDetailsError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RichMediaStudioCreativeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError"; /** * @access public - * @var tnsRichMediaStudioCreativeErrorReason + * @var tnsReservationDetailsErrorReason */ public $reason; @@ -1947,13 +1809,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1963,11 +1824,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1992,13 +1853,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2008,11 +1868,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -2027,12 +1887,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2049,10 +1903,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -2062,11 +1915,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -2137,11 +1990,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -2184,11 +2037,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -2213,13 +2066,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2229,11 +2081,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -2258,13 +2110,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2275,11 +2126,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -2318,20 +2169,20 @@ public function __construct($key = null, $value = null) { } } -if (!class_exists("SwiffyConversionError", false)) { +if (!class_exists("TeamError", false)) { /** - * Error for converting flash to swiffy asset. + * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class SwiffyConversionError extends ApiError { + class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SwiffyConversionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TeamError"; /** * @access public - * @var tnsSwiffyConversionErrorReason + * @var tnsTeamErrorReason */ public $reason; @@ -2351,32 +2202,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("TemplateInstantiatedCreativeError", false)) { +if (!class_exists("TechnologyTargetingError", false)) { /** - * Lists all errors associated with template instantiated creatives. + * Technology targeting validation errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TemplateInstantiatedCreativeError extends ApiError { + class TechnologyTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TemplateInstantiatedCreativeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargetingError"; /** * @access public - * @var tnsTemplateInstantiatedCreativeErrorReason + * @var tnsTechnologyTargetingErrorReason */ public $reason; @@ -2396,28 +2246,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("TypeError", false)) { +if (!class_exists("TimeZoneError", false)) { /** - * An error for a field which is an invalid type. + * Errors related to timezones. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TypeError extends ApiError { + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; /** * Gets the namesapce of this class @@ -2435,12 +2290,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); + $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2450,11 +2305,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -2473,12 +2328,95 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("UserDomainTargetingError", false)) { + /** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); + $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2488,51 +2426,215 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AuthenticationErrorReason", false)) { + /** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AvailableBillingErrorReason", false)) { + /** + * The error reason represented by an enum. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AvailableBillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; + public function __construct() { } + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2549,24 +2651,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("CustomFieldValueErrorReason", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError.Reason"; /** * Gets the namesapce of this class @@ -2590,16 +2690,16 @@ public function __construct() { } } -if (!class_exists("AssetErrorReason", false)) { +if (!class_exists("CustomTargetingErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AssetErrorReason { + class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AssetError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingError.Reason"; /** * Gets the namesapce of this class @@ -2623,19 +2723,16 @@ public function __construct() { } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("DayPartTargetingErrorReason", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class DayPartTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayPartTargetingError.Reason"; /** * Gets the namesapce of this class @@ -2659,16 +2756,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * Describes reasons for common errors + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -2692,16 +2789,16 @@ public function __construct() { } } -if (!class_exists("CreativeAssetMacroErrorReason", false)) { +if (!class_exists("FrequencyCapErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeAssetMacroErrorReason { + class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeAssetMacroError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FrequencyCapError.Reason"; /** * Gets the namesapce of this class @@ -2725,16 +2822,16 @@ public function __construct() { } } -if (!class_exists("CreativeErrorReason", false)) { +if (!class_exists("GenericTargetingErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeErrorReason { + class GenericTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GenericTargetingError.Reason"; /** * Gets the namesapce of this class @@ -2758,16 +2855,16 @@ public function __construct() { } } -if (!class_exists("CreativeSetErrorReason", false)) { +if (!class_exists("GeoTargetingErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeSetErrorReason { + class GeoTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSetError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeoTargetingError.Reason"; /** * Gets the namesapce of this class @@ -2791,16 +2888,16 @@ public function __construct() { } } -if (!class_exists("CustomCreativeErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the target error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCreativeErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -2824,16 +2921,16 @@ public function __construct() { } } -if (!class_exists("CustomFieldValueErrorReason", false)) { +if (!class_exists("InventoryTargetingErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomFieldValueErrorReason { + class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError.Reason"; /** * Gets the namesapce of this class @@ -2857,16 +2954,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** - * A feature is being used that is not enabled on the current network. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureErrorReason { + class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** * Gets the namesapce of this class @@ -2890,16 +2987,16 @@ public function __construct() { } } -if (!class_exists("FileErrorReason", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** - * The provided byte array is empty. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FileErrorReason { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FileError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -2923,16 +3020,16 @@ public function __construct() { } } -if (!class_exists("ImageErrorReason", false)) { +if (!class_exists("PackageActionErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ImageErrorReason { + class PackageActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ImageError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageActionError.Reason"; /** * Gets the namesapce of this class @@ -2956,16 +3053,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("PackageErrorReason", false)) { /** - * The single reason for the internal API error. + * The reasons for the {@link PackageError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiErrorReason { + class PackageErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageError.Reason"; /** * Gets the namesapce of this class @@ -2989,16 +3086,16 @@ public function __construct() { } } -if (!class_exists("InvalidPhoneNumberErrorReason", false)) { +if (!class_exists("PackageOperator", false)) { /** - * The phone number is invalid. + * Possible operators to be performed on a {@link Package}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InvalidPhoneNumberErrorReason { + class PackageOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidPhoneNumberError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageOperator"; /** * Gets the namesapce of this class @@ -3022,16 +3119,16 @@ public function __construct() { } } -if (!class_exists("InvalidUrlErrorReason", false)) { +if (!class_exists("PackageStatus", false)) { /** - * The URL contains invalid characters. + * Describes the different statuses for {@link Package}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InvalidUrlErrorReason { + class PackageStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InvalidUrlError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageStatus"; /** * Gets the namesapce of this class @@ -3055,16 +3152,16 @@ public function __construct() { } } -if (!class_exists("LabelEntityAssociationErrorReason", false)) { +if (!class_exists("PermissionErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelEntityAssociationErrorReason { + class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError.Reason"; /** * Gets the namesapce of this class @@ -3088,16 +3185,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("PrecisionErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for precision errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullErrorReason { + class PrecisionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PrecisionError.Reason"; /** * Gets the namesapce of this class @@ -3121,16 +3218,16 @@ public function __construct() { } } -if (!class_exists("NullErrorReason", false)) { +if (!class_exists("ProductErrorReason", false)) { /** - * The reasons for the validation error. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullErrorReason { + class ProductErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductError.Reason"; /** * Gets the namesapce of this class @@ -3154,16 +3251,16 @@ public function __construct() { } } -if (!class_exists("ParseErrorReason", false)) { +if (!class_exists("ProposalErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseErrorReason { + class ProposalErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalError.Reason"; /** * Gets the namesapce of this class @@ -3187,16 +3284,16 @@ public function __construct() { } } -if (!class_exists("PermissionErrorReason", false)) { +if (!class_exists("ProposalLineItemErrorReason", false)) { /** - * Describes reasons for permission errors. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionErrorReason { + class ProposalLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemError.Reason"; /** * Gets the namesapce of this class @@ -3224,11 +3321,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -3257,11 +3354,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -3300,11 +3397,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -3333,11 +3430,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -3362,16 +3459,16 @@ public function __construct() { } } -if (!class_exists("RequiredCollectionErrorReason", false)) { +if (!class_exists("RequiredErrorReason", false)) { /** - * A required collection is missing. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredCollectionErrorReason { + class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredCollectionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError.Reason"; /** * Gets the namesapce of this class @@ -3395,16 +3492,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("RequiredNumberErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredErrorReason { + class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError.Reason"; /** * Gets the namesapce of this class @@ -3428,16 +3525,16 @@ public function __construct() { } } -if (!class_exists("RequiredNumberErrorReason", false)) { +if (!class_exists("ReservationDetailsErrorReason", false)) { /** - * Describes reasons for a number to be invalid. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredNumberErrorReason { + class ReservationDetailsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError.Reason"; /** * Gets the namesapce of this class @@ -3461,17 +3558,16 @@ public function __construct() { } } -if (!class_exists("RequiredSizeErrorReason", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * {@link Creative#size} or {@link LineItem#creativeSizes} is - * missing. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredSizeErrorReason { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredSizeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -3495,16 +3591,16 @@ public function __construct() { } } -if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * The reasons for the target error. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RichMediaStudioCreativeErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -3528,16 +3624,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * Describes reasons for server errors + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -3561,16 +3657,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("TeamErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TeamError.Reason"; /** * Gets the namesapce of this class @@ -3594,16 +3690,16 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("TechnologyTargetingErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthErrorReason { + class TechnologyTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; /** * Gets the namesapce of this class @@ -3627,16 +3723,16 @@ public function __construct() { } } -if (!class_exists("SwiffyConversionErrorReason", false)) { +if (!class_exists("TimeZoneErrorReason", false)) { /** - * Error reason for {@link SwiffyConversionError}. + * Describes reasons for invalid timezone. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class SwiffyConversionErrorReason { + class TimeZoneErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SwiffyConversionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; /** * Gets the namesapce of this class @@ -3660,16 +3756,16 @@ public function __construct() { } } -if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { +if (!class_exists("UserDomainTargetingErrorReason", false)) { /** - * The reason for the error + * {@link ApiErrorReason} enum for user domain targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TemplateInstantiatedCreativeErrorReason { + class UserDomainTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; /** * Gets the namesapce of this class @@ -3693,25 +3789,32 @@ public function __construct() { } } -if (!class_exists("CreateCreativeSet", false)) { +if (!class_exists("CreatePackages", false)) { /** - * Creates a new {@link CreativeSet}. + * Creates new {@link Package} objects. * - * @param creativeSet the creative set to create - * @return the creative set with its ID filled in + * For each package, the following fields are required: + *
      + *
    • {@link Package#proposalId}
    • + *
    • {@link Package#productPackageId}
    • + *
    • {@link Package#name}
    • + *
    + * + * @param packageDtos the packages to create + * @return the created packages with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateCreativeSet { + class CreatePackages { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeSet + * @var Package[] */ - public $creativeSet; + public $packageDtos; /** * Gets the namesapce of this class @@ -3729,27 +3832,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeSet = null) { - $this->creativeSet = $creativeSet; + public function __construct($packageDtos = null) { + $this->packageDtos = $packageDtos; } } } -if (!class_exists("CreateCreativeSetResponse", false)) { +if (!class_exists("CreatePackagesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateCreativeSetResponse { + class CreatePackagesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeSet + * @var Package[] */ public $rval; @@ -3776,25 +3879,58 @@ public function __construct($rval = null) { } } -if (!class_exists("GetCreativeSet", false)) { +if (!class_exists("GetPackagesByStatement", false)) { /** - * Returns the {@link CreativeSet} uniquely identified by the given ID. + * Gets a {@link PackagePage} of {@link Package} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link Package#id}
    {@code name}{@link Package#name}
    {@code proposalId}{@link Package#proposalId}
    {@code productPackageId}{@link Package#productPackageId}
    {@code isArchived}{@link Package#isArchived}
    {@code lastModifiedDateTime}{@link Package#lastModifiedDateTime}
    * - * @param creativeSetId the ID of the creative set, which must already exist - * @return the {@code CreativeSet} uniquely identified by the given ID + * @param filterStatement a Publisher Query Language statement used to filter + * a set of packages + * @return the packages that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetCreativeSet { + class GetPackagesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var Statement */ - public $creativeSetId; + public $filterStatement; /** * Gets the namesapce of this class @@ -3812,27 +3948,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeSetId = null) { - $this->creativeSetId = $creativeSetId; + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; } } } -if (!class_exists("GetCreativeSetResponse", false)) { +if (!class_exists("GetPackagesByStatementResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetCreativeSetResponse { + class GetPackagesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeSet + * @var PackagePage */ public $rval; @@ -3859,50 +3995,32 @@ public function __construct($rval = null) { } } -if (!class_exists("GetCreativeSetsByStatement", false)) { +if (!class_exists("PerformPackageAction", false)) { /** - * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    PQL Property Object Property
    {@code id}{@link CreativeSet#id}
    {@code name}{@link CreativeSet#name}
    {@code masterCreativeId}{@link CreativeSet#masterCreativeId}
    {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}
    + * Performs actions on {@link Package} objects that match the given {@link Statement}. * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative sets - * @return the creative sets that match the given filter + * @param packageAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of packages + * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetCreativeSetsByStatement { + class PerformPackageAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; + /** + * @access public + * @var PackageAction + */ + public $packageAction; + /** * @access public * @var Statement */ - public $statement; + public $filterStatement; /** * Gets the namesapce of this class @@ -3920,27 +4038,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($statement = null) { - $this->statement = $statement; + public function __construct($packageAction = null, $filterStatement = null) { + $this->packageAction = $packageAction; + $this->filterStatement = $filterStatement; } } } -if (!class_exists("GetCreativeSetsByStatementResponse", false)) { +if (!class_exists("PerformPackageActionResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetCreativeSetsByStatementResponse { + class PerformPackageActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeSetPage + * @var UpdateResult */ public $rval; @@ -3967,25 +4086,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateCreativeSet", false)) { +if (!class_exists("UpdatePackages", false)) { /** - * Updates the specified {@link CreativeSet}. + * Updates the specified {@link Package} objects. * - * @param creativeSet the creative set to update - * @return the updated creative set + * @param packageDtos the packages to update + * @return the updated packages * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateCreativeSet { + class UpdatePackages { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeSet + * @var Package[] */ - public $creativeSet; + public $packageDtos; /** * Gets the namesapce of this class @@ -4003,27 +4122,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($creativeSet = null) { - $this->creativeSet = $creativeSet; + public function __construct($packageDtos = null) { + $this->packageDtos = $packageDtos; } } } -if (!class_exists("UpdateCreativeSetResponse", false)) { +if (!class_exists("UpdatePackagesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateCreativeSetResponse { + class UpdatePackagesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var CreativeSet + * @var Package[] */ public $rval; @@ -4050,15 +4169,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -4083,11 +4243,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -4097,11 +4256,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -4126,10 +4285,44 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("CreateProposalLineItemsFromPackages", false)) { + /** + * The action used for creating proposal line items from {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CreateProposalLineItemsFromPackages extends PackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreateProposalLineItemsFromPackages"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($packageOperator = null) { + parent::__construct(); + $this->packageOperator = $packageOperator; } } @@ -4139,11 +4332,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -4168,10 +4361,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4181,11 +4373,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -4210,10 +4402,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4223,11 +4414,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -4252,10 +4443,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -4265,11 +4455,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -4294,10 +4484,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -4307,11 +4496,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -4336,82 +4525,82 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("CreativeSetService", false)) { +if (!class_exists("PackageService", false)) { /** - * CreativeSetService + * PackageService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeSetService extends DfpSoapClient { + class PackageService extends DfpSoapClient { - const SERVICE_NAME = "CreativeSetService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/CreativeSetService"; + const SERVICE_NAME = "PackageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/PackageService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/CreativeSetService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/PackageService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "AssetError" => "AssetError", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", + "BillingError" => "BillingError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", - "CreativeAssetMacroError" => "CreativeAssetMacroError", - "CreativeError" => "CreativeError", - "CreativeSet" => "CreativeSet", - "CreativeSetError" => "CreativeSetError", - "CreativeSetPage" => "CreativeSetPage", - "CustomCreativeError" => "CustomCreativeError", + "CreateProposalLineItemsFromPackages" => "CreateProposalLineItemsFromPackages", "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", - "EntityLimitReachedError" => "EntityLimitReachedError", + "DayPartTargetingError" => "DayPartTargetingError", "FeatureError" => "FeatureError", - "FileError" => "FileError", - "ImageError" => "ImageError", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargetingError" => "GeoTargetingError", "InternalApiError" => "InternalApiError", - "InvalidPhoneNumberError" => "InvalidPhoneNumberError", - "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "NotNullError" => "NotNullError", - "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", + "PackageAction" => "PackageAction", + "PackageActionError" => "PackageActionError", + "Package" => "Package", + "PackageError" => "PackageError", + "PackagePage" => "PackagePage", "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalError" => "ProposalError", + "ProposalLineItemError" => "ProposalLineItemError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", "RangeError" => "RangeError", - "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", - "RequiredSizeError" => "RequiredSizeError", - "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ReservationDetailsError" => "ReservationDetailsError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -4420,54 +4609,62 @@ class CreativeSetService extends DfpSoapClient { "StatementError" => "StatementError", "StringLengthError" => "StringLengthError", "String_ValueMapEntry" => "String_ValueMapEntry", - "SwiffyConversionError" => "SwiffyConversionError", - "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", "TextValue" => "TextValue", - "TypeError" => "TypeError", + "TimeZoneError" => "TimeZoneError", "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargetingError" => "UserDomainTargetingError", "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", - "AssetError.Reason" => "AssetErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "BillingError.Reason" => "BillingErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", - "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", - "CreativeError.Reason" => "CreativeErrorReason", - "CreativeSetError.Reason" => "CreativeSetErrorReason", - "CustomCreativeError.Reason" => "CustomCreativeErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "FeatureError.Reason" => "FeatureErrorReason", - "FileError.Reason" => "FileErrorReason", - "ImageError.Reason" => "ImageErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", - "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", - "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", + "PackageOperator" => "PackageOperator", + "PackageStatus" => "PackageStatus", "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", "RangeError.Reason" => "RangeErrorReason", - "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", "RequiredError.Reason" => "RequiredErrorReason", "RequiredNumberError.Reason" => "RequiredNumberErrorReason", - "RequiredSizeError.Reason" => "RequiredSizeErrorReason", - "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", - "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", - "createCreativeSet" => "CreateCreativeSet", - "createCreativeSetResponse" => "CreateCreativeSetResponse", - "getCreativeSet" => "GetCreativeSet", - "getCreativeSetResponse" => "GetCreativeSetResponse", - "getCreativeSetsByStatement" => "GetCreativeSetsByStatement", - "getCreativeSetsByStatementResponse" => "GetCreativeSetsByStatementResponse", - "updateCreativeSet" => "UpdateCreativeSet", - "updateCreativeSetResponse" => "UpdateCreativeSetResponse", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "createPackages" => "CreatePackages", + "createPackagesResponse" => "CreatePackagesResponse", + "getPackagesByStatement" => "GetPackagesByStatement", + "getPackagesByStatementResponse" => "GetPackagesByStatementResponse", + "performPackageAction" => "PerformPackageAction", + "performPackageActionResponse" => "PerformPackageActionResponse", + "updatePackages" => "UpdatePackages", + "updatePackagesResponse" => "UpdatePackagesResponse", ); @@ -4482,30 +4679,26 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Creates a new {@link CreativeSet}. + * Creates new {@link Package} objects. * - * @param creativeSet the creative set to create - * @return the creative set with its ID filled in - */ - public function createCreativeSet($creativeSet) { - $args = new CreateCreativeSet($creativeSet); - $result = $this->__soapCall("createCreativeSet", array($args)); - return $result->rval; - } - /** - * Returns the {@link CreativeSet} uniquely identified by the given ID. + * For each package, the following fields are required: + *

      + *
    • {@link Package#proposalId}
    • + *
    • {@link Package#productPackageId}
    • + *
    • {@link Package#name}
    • + *
    * - * @param creativeSetId the ID of the creative set, which must already exist - * @return the {@code CreativeSet} uniquely identified by the given ID + * @param packageDtos the packages to create + * @return the created packages with their IDs filled in */ - public function getCreativeSet($creativeSetId) { - $args = new GetCreativeSet($creativeSetId); - $result = $this->__soapCall("getCreativeSet", array($args)); + public function createPackages($packageDtos) { + $args = new CreatePackages($packageDtos); + $result = $this->__soapCall("createPackages", array($args)); return $result->rval; } /** - * Gets a {@link CreativeSetPage} of {@link CreativeSet} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for + * Gets a {@link PackagePage} of {@link Package} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for * filtering: * * @@ -4514,40 +4707,60 @@ public function getCreativeSet($creativeSetId) { * * * - * + * * * * - * + * + * + * + * + * + * + * + * + * * * - * - * + * + * * * * - * + * * *
    {@code id}{@link CreativeSet#id}{@link Package#id}
    {@code name}{@link CreativeSet#name}{@link Package#name}
    {@code proposalId}{@link Package#proposalId}
    {@code productPackageId}{@link Package#productPackageId}
    {@code masterCreativeId}{@link CreativeSet#masterCreativeId}{@code isArchived}{@link Package#isArchived}
    {@code lastModifiedDateTime}{@link CreativeSet#lastModifiedDateTime}{@link Package#lastModifiedDateTime}
    * * @param filterStatement a Publisher Query Language statement used to filter - * a set of creative sets - * @return the creative sets that match the given filter + * a set of packages + * @return the packages that match the given filter + */ + public function getPackagesByStatement($filterStatement) { + $args = new GetPackagesByStatement($filterStatement); + $result = $this->__soapCall("getPackagesByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Package} objects that match the given {@link Statement}. + * + * @param packageAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of packages + * @return the result of the action performed */ - public function getCreativeSetsByStatement($statement) { - $args = new GetCreativeSetsByStatement($statement); - $result = $this->__soapCall("getCreativeSetsByStatement", array($args)); + public function performPackageAction($packageAction, $filterStatement) { + $args = new PerformPackageAction($packageAction, $filterStatement); + $result = $this->__soapCall("performPackageAction", array($args)); return $result->rval; } /** - * Updates the specified {@link CreativeSet}. + * Updates the specified {@link Package} objects. * - * @param creativeSet the creative set to update - * @return the updated creative set + * @param packageDtos the packages to update + * @return the updated packages */ - public function updateCreativeSet($creativeSet) { - $args = new UpdateCreativeSet($creativeSet); - $result = $this->__soapCall("updateCreativeSet", array($args)); + public function updatePackages($packageDtos) { + $args = new UpdatePackages($packageDtos); + $result = $this->__soapCall("updatePackages", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201308/PlacementService.php b/src/Google/Api/Ads/Dfp/v201502/PlacementService.php similarity index 79% rename from src/Google/Api/Ads/Dfp/v201308/PlacementService.php rename to src/Google/Api/Ads/Dfp/v201502/PlacementService.php index 5790bb0ab..511419c42 100755 --- a/src/Google/Api/Ads/Dfp/v201308/PlacementService.php +++ b/src/Google/Api/Ads/Dfp/v201502/PlacementService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -577,16 +424,60 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("EntityLimitReachedError", false)) { /** * An error that occurs when creating an entity if the limit on the number of allowed entities for * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EntityLimitReachedError"; /** @@ -605,12 +496,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -621,11 +511,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -650,13 +540,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -668,11 +557,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -697,13 +586,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -713,11 +601,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -742,13 +630,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -758,11 +645,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -787,57 +674,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -847,11 +689,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -876,13 +718,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -892,11 +733,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -921,13 +762,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -937,51 +777,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the actions that can be performed on {@link Placement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PlacementAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PlacementAction"; - /** - * @access public - * @var string - */ - public $PlacementActionType; - private $_parameterMap = array( - "PlacementAction.Type" => "PlacementActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -998,8 +800,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($PlacementActionType = null) { - $this->PlacementActionType = $PlacementActionType; + public function __construct() { } } @@ -1009,11 +810,11 @@ public function __construct($PlacementActionType = null) { /** * Class defining all validation errors for a placement. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PlacementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PlacementError"; /** @@ -1038,13 +839,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1054,11 +854,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Placement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PlacementPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PlacementPage"; /** @@ -1109,11 +909,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1138,13 +938,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1155,11 +954,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1184,13 +983,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1201,11 +999,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1230,13 +1028,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1246,11 +1043,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1275,13 +1072,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1292,11 +1088,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Caused by supplying a value for an object attribute that does not conform * to a documented valid regular expression. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RegExError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RegExError"; /** @@ -1321,13 +1117,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1337,11 +1132,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -1366,13 +1161,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1382,11 +1176,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1411,13 +1205,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1427,11 +1220,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1456,13 +1249,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1472,11 +1264,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Contains information required for AdWords advertisers to place their ads. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SiteTargetingInfo { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SiteTargetingInfo"; /** @@ -1497,44 +1289,6 @@ class SiteTargetingInfo { */ public $targetingAdLocation; - /** - * @access public - * @var string - */ - public $SiteTargetingInfoType; - private $_parameterMap = array( - "SiteTargetingInfo.Type" => "SiteTargetingInfoType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1551,11 +1305,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null, $SiteTargetingInfoType = null) { + public function __construct($targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null) { $this->targetingDescription = $targetingDescription; $this->targetingSiteName = $targetingSiteName; $this->targetingAdLocation = $targetingAdLocation; - $this->SiteTargetingInfoType = $SiteTargetingInfoType; } } @@ -1565,11 +1318,11 @@ public function __construct($targetingDescription = null, $targetingSiteName = n /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1584,12 +1337,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1606,10 +1353,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1619,11 +1365,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1694,11 +1440,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1741,11 +1487,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1770,13 +1516,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1786,11 +1531,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1815,13 +1560,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1832,11 +1576,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1879,11 +1623,11 @@ public function __construct($key = null, $value = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1902,12 +1646,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1917,11 +1660,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1940,12 +1683,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1955,11 +1697,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1995,51 +1737,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2056,8 +1760,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2068,11 +1771,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2104,11 +1807,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2133,16 +1836,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Describes reasons for common errors + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class CommonErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -2166,16 +1869,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * A feature is being used that is not enabled on the current network. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class FeatureErrorReason { + class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -2199,16 +1902,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * The single reason for the internal API error. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class InternalApiErrorReason { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -2232,17 +1935,16 @@ public function __construct() { } } -if (!class_exists("InventoryStatus", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * Represents the status of objects that represent inventory - ad units and - * placements. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class InventoryStatus { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InventoryStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -2266,16 +1968,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the target error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class NotNullErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -2299,15 +2001,82 @@ public function __construct() { } } -if (!class_exists("NullErrorReason", false)) { +if (!class_exists("InventoryStatus", false)) { /** - * The reasons for the validation error. + * Represents the status of objects that represent inventory - ad units and + * placements. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class NullErrorReason { + class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2336,11 +2105,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2369,11 +2138,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2402,11 +2171,11 @@ public function __construct() { /** * Possible reasons for the error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PlacementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PlacementError.Reason"; /** @@ -2435,11 +2204,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2468,11 +2237,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2511,11 +2280,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2544,11 +2313,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2577,11 +2346,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RegExErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RegExError.Reason"; /** @@ -2610,11 +2379,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -2643,11 +2412,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2676,11 +2445,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2709,11 +2478,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2742,11 +2511,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2771,95 +2540,6 @@ public function __construct() { } } -if (!class_exists("CreatePlacement", false)) { - /** - * Creates a new {@link Placement}. - * - * The following fields are required: - *
      - *
    • {@link Placement#name}
    • - *
    • {@link Placement#description}
    • - *
    - * - * @param placement the placement to create - * @return the new placement with its ID set - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreatePlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $placement; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placement = null) { - $this->placement = $placement; - } - - } -} - -if (!class_exists("CreatePlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreatePlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreatePlacements", false)) { /** * Creates new {@link Placement} objects. @@ -2867,11 +2547,11 @@ public function __construct($rval = null) { * @param placements the placements to create * @return the new placements, with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreatePlacements { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2907,11 +2587,11 @@ public function __construct($placements = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreatePlacementsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2943,89 +2623,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetPlacement", false)) { - /** - * Returns the {@link Placement} uniquely identified by the given ID. - * - * @param placementId ID of the placement, which must already exist - * @return the {@code Placement} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetPlacement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $placementId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placementId = null) { - $this->placementId = $placementId; - } - - } -} - -if (!class_exists("GetPlacementResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetPlacementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetPlacementsByStatement", false)) { /** * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the @@ -3070,11 +2667,11 @@ public function __construct($rval = null) { * a set of placements * @return the placements that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetPlacementsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3110,11 +2707,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetPlacementsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3156,11 +2753,11 @@ public function __construct($rval = null) { * a set of placements * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformPlacementAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3203,11 +2800,11 @@ public function __construct($placementAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformPlacementActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3239,25 +2836,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdatePlacement", false)) { +if (!class_exists("UpdatePlacements", false)) { /** - * Updates the specified {@link Placement}. + * Updates the specified {@link Placement} objects. * - * @param placement the placement to update - * @return the updated placement + * @param placements the placements to update + * @return the updated placements * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdatePlacement { + class UpdatePlacements { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Placement + * @var Placement[] */ - public $placement; + public $placements; /** * Gets the namesapce of this class @@ -3275,27 +2872,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($placement = null) { - $this->placement = $placement; + public function __construct($placements = null) { + $this->placements = $placements; } } } -if (!class_exists("UpdatePlacementResponse", false)) { +if (!class_exists("UpdatePlacementsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdatePlacementResponse { + class UpdatePlacementsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Placement + * @var Placement[] */ public $rval; @@ -3322,65 +2919,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdatePlacements", false)) { - /** - * Updates the specified {@link Placement} objects. - * - * @param placements the placements to update - * @return the updated placements - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdatePlacements { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $placements; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($placements = null) { - $this->placements = $placements; - } - - } -} - -if (!class_exists("UpdatePlacementsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdatePlacementsResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Placement[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3398,8 +2953,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -3409,11 +2964,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link Placement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivatePlacements extends PlacementAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivatePlacements"; /** @@ -3432,9 +2987,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($PlacementActionType = null) { + public function __construct() { parent::__construct(); - $this->PlacementActionType = $PlacementActionType; } } @@ -3444,11 +2998,11 @@ public function __construct($PlacementActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3473,11 +3027,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3487,11 +3040,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * The action used for archiving {@link Placement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ArchivePlacements extends PlacementAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ArchivePlacements"; /** @@ -3510,9 +3063,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($PlacementActionType = null) { + public function __construct() { parent::__construct(); - $this->PlacementActionType = $PlacementActionType; } } @@ -3522,11 +3074,11 @@ public function __construct($PlacementActionType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3551,10 +3103,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3564,11 +3115,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3593,10 +3144,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3606,11 +3156,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3635,10 +3185,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3648,11 +3197,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used for deactivating {@link Placement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivatePlacements extends PlacementAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivatePlacements"; /** @@ -3671,9 +3220,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($PlacementActionType = null) { + public function __construct() { parent::__construct(); - $this->PlacementActionType = $PlacementActionType; } } @@ -3683,11 +3231,11 @@ public function __construct($PlacementActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3712,10 +3260,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3725,11 +3272,11 @@ public function __construct($value = null, $ValueType = null) { /** * A {@code Placement} groups related {@code AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Placement extends SiteTargetingInfo { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Placement"; /** @@ -3768,12 +3315,6 @@ class Placement extends SiteTargetingInfo { */ public $isAdSenseTargetingEnabled; - /** - * @access public - * @var boolean - */ - public $isAdPlannerTargetingEnabled; - /** * @access public * @var string @@ -3808,7 +3349,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $placementCode = null, $status = null, $isAdSenseTargetingEnabled = null, $isAdPlannerTargetingEnabled = null, $adSenseTargetingLocale = null, $targetedAdUnitIds = null, $lastModifiedDateTime = null, $targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null, $SiteTargetingInfoType = null) { + public function __construct($id = null, $name = null, $description = null, $placementCode = null, $status = null, $isAdSenseTargetingEnabled = null, $adSenseTargetingLocale = null, $targetedAdUnitIds = null, $lastModifiedDateTime = null, $targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null) { parent::__construct(); $this->id = $id; $this->name = $name; @@ -3816,14 +3357,53 @@ public function __construct($id = null, $name = null, $description = null, $plac $this->placementCode = $placementCode; $this->status = $status; $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; - $this->isAdPlannerTargetingEnabled = $isAdPlannerTargetingEnabled; $this->adSenseTargetingLocale = $adSenseTargetingLocale; $this->targetedAdUnitIds = $targetedAdUnitIds; $this->lastModifiedDateTime = $lastModifiedDateTime; $this->targetingDescription = $targetingDescription; $this->targetingSiteName = $targetingSiteName; $this->targetingAdLocation = $targetingAdLocation; - $this->SiteTargetingInfoType = $SiteTargetingInfoType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3833,11 +3413,11 @@ public function __construct($id = null, $name = null, $description = null, $plac /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3862,10 +3442,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3875,48 +3454,48 @@ public function __construct($value = null, $ValueType = null) { /** * PlacementService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PlacementService extends DfpSoapClient { const SERVICE_NAME = "PlacementService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/PlacementService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/PlacementService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/PlacementService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/PlacementService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivatePlacements" => "ActivatePlacements", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "ArchivePlacements" => "ArchivePlacements", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivatePlacements" => "DeactivatePlacements", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PlacementAction" => "PlacementAction", @@ -3931,6 +3510,7 @@ class PlacementService extends DfpSoapClient { "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SiteTargetingInfo" => "SiteTargetingInfo", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -3945,7 +3525,9 @@ class PlacementService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "InventoryStatus" => "InventoryStatus", @@ -3964,18 +3546,12 @@ class PlacementService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createPlacement" => "CreatePlacement", - "createPlacementResponse" => "CreatePlacementResponse", "createPlacements" => "CreatePlacements", "createPlacementsResponse" => "CreatePlacementsResponse", - "getPlacement" => "GetPlacement", - "getPlacementResponse" => "GetPlacementResponse", "getPlacementsByStatement" => "GetPlacementsByStatement", "getPlacementsByStatementResponse" => "GetPlacementsByStatementResponse", "performPlacementAction" => "PerformPlacementAction", "performPlacementActionResponse" => "PerformPlacementActionResponse", - "updatePlacement" => "UpdatePlacement", - "updatePlacementResponse" => "UpdatePlacementResponse", "updatePlacements" => "UpdatePlacements", "updatePlacementsResponse" => "UpdatePlacementsResponse", ); @@ -3991,23 +3567,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link Placement}. - * - * The following fields are required: - *

      - *
    • {@link Placement#name}
    • - *
    • {@link Placement#description}
    • - *
    - * - * @param placement the placement to create - * @return the new placement with its ID set - */ - public function createPlacement($placement) { - $args = new CreatePlacement($placement); - $result = $this->__soapCall("createPlacement", array($args)); - return $result->rval; - } /** * Creates new {@link Placement} objects. * @@ -4019,17 +3578,6 @@ public function createPlacements($placements) { $result = $this->__soapCall("createPlacements", array($args)); return $result->rval; } - /** - * Returns the {@link Placement} uniquely identified by the given ID. - * - * @param placementId ID of the placement, which must already exist - * @return the {@code Placement} uniquely identified by the given ID - */ - public function getPlacement($placementId) { - $args = new GetPlacement($placementId); - $result = $this->__soapCall("getPlacement", array($args)); - return $result->rval; - } /** * Gets a {@link PlacementPage} of {@link Placement} objects that satisfy the * given {@link Statement#query}. The following fields are supported for @@ -4092,17 +3640,6 @@ public function performPlacementAction($placementAction, $filterStatement) { $result = $this->__soapCall("performPlacementAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link Placement}. - * - * @param placement the placement to update - * @return the updated placement - */ - public function updatePlacement($placement) { - $args = new UpdatePlacement($placement); - $result = $this->__soapCall("updatePlacement", array($args)); - return $result->rval; - } /** * Updates the specified {@link Placement} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201502/PremiumRateService.php similarity index 70% rename from src/Google/Api/Ads/Dfp/v201311/BaseRateService.php rename to src/Google/Api/Ads/Dfp/v201502/PremiumRateService.php index 58b31da8c..09ffc0818 100755 --- a/src/Google/Api/Ads/Dfp/v201311/BaseRateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/PremiumRateService.php @@ -1,6 +1,6 @@ The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,62 +163,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -314,27 +203,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * An error for an exception that occurred when authenticating. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsCollectionSizeErrorReason */ public $reason; @@ -354,66 +247,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("BaseRateAction", false)) { +if (!class_exists("CommonError", false)) { /** - * Represents the action that can be performed on {@link BaseRate} objects. + * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRateAction { + class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateAction"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; /** * @access public - * @var string - */ - public $BaseRateActionType; - private $_parameterMap = array( - "BaseRateAction.Type" => "BaseRateActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsCommonErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -431,29 +291,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($BaseRateActionType = null) { - $this->BaseRateActionType = $BaseRateActionType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("BaseRateActionError", false)) { +if (!class_exists("Date", false)) { /** - * An error having to do with {@link BaseRate} when performing actions. + * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRateActionError extends ApiError { + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Date"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateActionError"; + /** + * @access public + * @var integer + */ + public $year; /** * @access public - * @var tnsBaseRateActionErrorReason + * @var integer */ - public $reason; + public $month; + + /** + * @access public + * @var integer + */ + public $day; /** * Gets the namesapce of this class @@ -471,85 +347,55 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; } } } -if (!class_exists("BaseRate", false)) { +if (!class_exists("DfpDateTime", false)) { /** - * A base rate that applies to a product template or product belonging to rate - * card. + * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRate { + class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRate"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTime"; /** * @access public - * @var integer + * @var Date */ - public $rateCardId; + public $date; /** * @access public * @var integer */ - public $id; + public $hour; /** * @access public - * @var tnsBaseRateStatus + * @var integer */ - public $status; + public $minute; /** * @access public - * @var string - */ - public $BaseRateType; - private $_parameterMap = array( - "BaseRate.Type" => "BaseRateType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @var integer */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $second; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var string */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $timeZoneID; /** * Gets the namesapce of this class @@ -567,30 +413,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rateCardId = null, $id = null, $status = null, $BaseRateType = null) { - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; + public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; } } } -if (!class_exists("BaseRateError", false)) { +if (!class_exists("EntityChildrenLimitReachedError", false)) { /** - * An error having to do with {@link BaseRate}. + * Lists errors relating to having too many children on an entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRateError extends ApiError { + class EntityChildrenLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; /** * @access public - * @var tnsBaseRateErrorReason + * @var tnsEntityChildrenLimitReachedErrorReason */ public $reason; @@ -610,46 +457,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("BaseRatePage", false)) { +if (!class_exists("FeatureError", false)) { /** - * Captures a page of {@link BaseRate} objects. + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRatePage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRatePage"; - - /** - * @access public - * @var BaseRate[] - */ - public $results; + class FeatureError extends ApiError { - /** - * @access public - * @var integer - */ - public $startIndex; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var integer + * @var tnsFeatureErrorReason */ - public $totalResultSetSize; + public $reason; /** * Gets the namesapce of this class @@ -667,33 +502,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("InternalApiError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var string + * @var tnsInternalApiErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -711,29 +548,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("CommonError", false)) { +if (!class_exists("NotNullError", false)) { /** - * A place for common errors that can be used across services. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonError extends ApiError { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var tnsCommonErrorReason + * @var tnsNotNullErrorReason */ public $reason; @@ -753,46 +592,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Date", false)) { +if (!class_exists("NullError", false)) { /** - * Represents a date. + * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; + class NullError extends ApiError { - /** - * @access public - * @var integer - */ - public $month; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError"; /** * @access public - * @var integer + * @var tnsNullErrorReason */ - public $day; + public $reason; /** * Gets the namesapce of this class @@ -810,135 +636,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DfpDateTime", false)) { +if (!class_exists("PermissionError", false)) { /** - * Represents a date combined with the time of day. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpDateTime { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var Date + * @var tnsPermissionErrorReason */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; - - /** - * @access public - * @var string - */ - public $timeZoneID; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; - } - - } -} - -if (!class_exists("DeactivateBaseRates", false)) { - /** - * The action used to deactivate {@link BaseRate} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DeactivateBaseRates extends BaseRateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateBaseRates"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($BaseRateActionType = null) { - parent::__construct(); - $this->BaseRateActionType = $BaseRateActionType; - } - - } -} - -if (!class_exists("FeatureError", false)) { - /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class FeatureError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; - - /** - * @access public - * @var tnsFeatureErrorReason - */ - public $reason; + public $reason; /** * Gets the namesapce of this class @@ -956,36 +680,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("PremiumFeature", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * A {@code PremiumFeature} represents the feature type to be applied as a premium on a + * {@link RateCard}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; - - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumFeature"; /** * Gets the namesapce of this class @@ -1003,81 +719,53 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Money", false)) { +if (!class_exists("PremiumRate", false)) { /** - * Represents a money amount. + * A premium rate holding a set of {@link PremiumRateValue} objects with the + * same {@link PremiumFeature}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Money { + class PremiumRate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Money"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumRate"; /** * @access public - * @var string + * @var integer */ - public $currencyCode; + public $id; /** * @access public * @var integer */ - public $microAmount; + public $rateCardId; /** - * Gets the namesapce of this class - * @return the namespace of this class + * @access public + * @var tnsPricingMethod */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $pricingMethod; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var PremiumFeature */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($currencyCode = null, $microAmount = null) { - $this->currencyCode = $currencyCode; - $this->microAmount = $microAmount; - } - - } -} - -if (!class_exists("NotNullError", false)) { - /** - * Caused by supplying a null value for an attribute that cannot be null. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class NotNullError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; + public $premiumFeature; /** * @access public - * @var tnsNotNullErrorReason + * @var PremiumRateValue[] */ - public $reason; + public $premiumRateValues; /** * Gets the namesapce of this class @@ -1095,32 +783,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $rateCardId = null, $pricingMethod = null, $premiumFeature = null, $premiumRateValues = null) { + $this->id = $id; + $this->rateCardId = $rateCardId; + $this->pricingMethod = $pricingMethod; + $this->premiumFeature = $premiumFeature; + $this->premiumRateValues = $premiumRateValues; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("PremiumRateError", false)) { /** - * Errors associated with violation of a NOT NULL check. + * An error having to do with {@link PremiumRate}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullError extends ApiError { + class PremiumRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumRateError"; /** * @access public - * @var tnsNullErrorReason + * @var tnsPremiumRateErrorReason */ public $reason; @@ -1140,78 +827,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("PremiumRatePage", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Captures a page of {@link PremiumRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class PremiumRatePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumRatePage"; /** * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class + * @var PremiumRate[] */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $results; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var integer */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; - } - - } -} - -if (!class_exists("PermissionError", false)) { - /** - * Errors related to incorrect permission. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class PermissionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; + public $startIndex; /** * @access public - * @var tnsPermissionErrorReason + * @var integer */ - public $reason; + public $totalResultSetSize; /** * Gets the namesapce of this class @@ -1229,92 +883,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; } } } -if (!class_exists("ProductBaseRate", false)) { +if (!class_exists("PremiumRateValue", false)) { /** - * A base rate applied to a {@link Product}. + * A premium of a {@link RateCard} which could be applied to the line item + * and charges extra. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProductBaseRate extends BaseRate { + class PremiumRateValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductBaseRate"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumRateValue"; /** * @access public * @var integer */ - public $productId; + public $premiumRateId; /** * @access public - * @var Money + * @var PremiumFeature */ - public $rate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $premiumFeature; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var tnsRateType */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productId = null, $rate = null, $rateCardId = null, $id = null, $status = null, $BaseRateType = null) { - parent::__construct(); - $this->productId = $productId; - $this->rate = $rate; - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; - } - - } -} - -if (!class_exists("ProductTemplateBaseRate", false)) { - /** - * A base rate applied to a {@link ProductTemplate}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProductTemplateBaseRate extends BaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductTemplateBaseRate"; + public $rateType; /** * @access public - * @var integer + * @var tnsPremiumAdjustmentType */ - public $productTemplateId; + public $adjustmentType; /** * @access public - * @var Money + * @var integer */ - public $rate; + public $adjustmentSize; /** * Gets the namesapce of this class @@ -1332,14 +950,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($productTemplateId = null, $rate = null, $rateCardId = null, $id = null, $status = null, $BaseRateType = null) { - parent::__construct(); - $this->productTemplateId = $productTemplateId; - $this->rate = $rate; - $this->rateCardId = $rateCardId; - $this->id = $id; - $this->status = $status; - $this->BaseRateType = $BaseRateType; + public function __construct($premiumRateId = null, $premiumFeature = null, $rateType = null, $adjustmentType = null, $adjustmentSize = null) { + $this->premiumRateId = $premiumRateId; + $this->premiumFeature = $premiumFeature; + $this->rateType = $rateType; + $this->adjustmentType = $adjustmentType; + $this->adjustmentSize = $adjustmentSize; } } @@ -1350,11 +966,11 @@ public function __construct($productTemplateId = null, $rate = null, $rateCardId * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1379,13 +995,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1396,11 +1011,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1425,13 +1040,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1442,11 +1056,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1471,13 +1085,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1487,11 +1100,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1516,13 +1129,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1532,11 +1144,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1561,13 +1173,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1577,11 +1188,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1606,13 +1217,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1622,11 +1232,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1641,12 +1251,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1663,10 +1267,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1676,11 +1279,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1751,11 +1354,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1798,11 +1401,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1827,41 +1430,379 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("String_ValueMapEntry", false)) { + /** + * This represents an entry in a map with a key of type String + * and value of type Value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "String_ValueMapEntry"; + + /** + * @access public + * @var string + */ + public $key; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("UnknownPremiumFeature", false)) { + /** + * The {@link PremiumFeature} returned if the actual feature is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UnknownPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnknownPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UserDomainPremiumFeature", false)) { + /** + * A premium feature applied to user domain targeting. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UserDomainPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AuthenticationErrorReason", false)) { + /** + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { } } } -if (!class_exists("String_ValueMapEntry", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * This represents an entry in a map with a key of type String - * and value of type Value. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; - - /** - * @access public - * @var string - */ - public $key; + class InternalApiErrorReason { - /** - * @access public - * @var Value - */ - public $value; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -1879,30 +1820,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; + public function __construct() { } } } -if (!class_exists("UpdateResult", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** - * Represents the result of performing an action on objects. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; + class NotNullErrorReason { - /** - * @access public - * @var integer - */ - public $numChanges; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -1920,62 +1853,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; + public function __construct() { } } } -if (!class_exists("Value", false)) { +if (!class_exists("NullErrorReason", false)) { /** - * {@code Value} represents a value. + * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; + class NullErrorReason { - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError.Reason"; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; + public function __construct() { } + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError.Reason"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1992,24 +1919,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("PremiumAdjustmentType", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * Describes how to apply the adjustment to the base rate. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class PremiumAdjustmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumAdjustmentType"; /** * Gets the namesapce of this class @@ -2033,19 +1958,16 @@ public function __construct() { } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("PremiumRateErrorReason", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class PremiumRateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumRateError.Reason"; /** * Gets the namesapce of this class @@ -2069,16 +1991,17 @@ public function __construct() { } } -if (!class_exists("BaseRateActionErrorReason", false)) { +if (!class_exists("PricingMethod", false)) { /** - * The reasons for the target error. + * Describes which {@link PremiumRateValue} objects from the + * {@link PremiumRate} to apply to a {@link ProposalLineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRateActionErrorReason { + class PricingMethod { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateActionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PricingMethod"; /** * Gets the namesapce of this class @@ -2102,16 +2025,16 @@ public function __construct() { } } -if (!class_exists("BaseRateErrorReason", false)) { +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRateErrorReason { + class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** * Gets the namesapce of this class @@ -2135,16 +2058,16 @@ public function __construct() { } } -if (!class_exists("BaseRateStatus", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { /** - * The status of {@link BaseRate} objects. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRateStatus { + class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BaseRateStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** * Gets the namesapce of this class @@ -2168,16 +2091,26 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("QuotaErrorReason", false)) { /** - * Describes reasons for common errors + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

    + * Another way to mitigate this error is to limit requests to 2 per second for + * Small Business networks, or 8 per second for Premium networks. Once again + * this does not guarantee that every request will succeed, but may help + * reduce the number of times you receive this error. + *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError.Reason"; /** * Gets the namesapce of this class @@ -2201,16 +2134,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("RangeErrorReason", false)) { /** - * A feature is being used that is not enabled on the current network. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureErrorReason { + class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError.Reason"; /** * Gets the namesapce of this class @@ -2234,16 +2167,17 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("RateType", false)) { /** - * The single reason for the internal API error. + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiErrorReason { + class RateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RateType"; /** * Gets the namesapce of this class @@ -2267,16 +2201,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("RequiredErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullErrorReason { + class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError.Reason"; /** * Gets the namesapce of this class @@ -2300,16 +2234,16 @@ public function __construct() { } } -if (!class_exists("NullErrorReason", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * The reasons for the validation error. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullErrorReason { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -2333,16 +2267,16 @@ public function __construct() { } } -if (!class_exists("PermissionErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * Describes reasons for permission errors. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -2366,16 +2300,25 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { +if (!class_exists("CreatePremiumRates", false)) { /** - * The reasons for the target error. + * Creates a list of new {@link PremiumRate} objects. + * + * @param premiumRates the premium rates to be created + * @return the premium rates with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextErrorReason { + class CreatePremiumRates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $premiumRates; /** * Gets the namesapce of this class @@ -2393,22 +2336,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($premiumRates = null) { + $this->premiumRates = $premiumRates; } } } -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { +if (!class_exists("CreatePremiumRatesResponse", false)) { /** - * The reasons for the target error. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxErrorReason { + class CreatePremiumRatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $rval; /** * Gets the namesapce of this class @@ -2426,32 +2376,53 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("QuotaErrorReason", false)) { +if (!class_exists("GetPremiumRatesByStatement", false)) { /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

    - * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

    + * Gets a {@link PremiumRatePage} of {@link PremiumRate} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link PremiumRate#id}
    {@code rateCardId}{@link PremiumRate#rateCardId}
    {@code pricingMethod}{@link PremiumRate#pricingMethod}
    + * + * @param filterStatement a Publisher Query Language statement to filter a + * list of premium rates. + * @return the premium rates that match the filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaErrorReason { + class GetPremiumRatesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; /** * Gets the namesapce of this class @@ -2469,22 +2440,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; } } } -if (!class_exists("RangeErrorReason", false)) { +if (!class_exists("GetPremiumRatesByStatementResponse", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RangeErrorReason { + class GetPremiumRatesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRatePage + */ + public $rval; /** * Gets the namesapce of this class @@ -2502,22 +2480,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("UpdatePremiumRates", false)) { /** - * The reasons for the target error. + * Updates the specified {@link PremiumRate} objects. + * + * @param premiumRates the premium rates to be updated + * @return the updated premium rates * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredErrorReason { + class UpdatePremiumRates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $premiumRates; /** * Gets the namesapce of this class @@ -2535,22 +2523,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($premiumRates = null) { + $this->premiumRates = $premiumRates; } } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("UpdatePremiumRatesResponse", false)) { /** - * Describes reasons for server errors + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class UpdatePremiumRatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $rval; /** * Gets the namesapce of this class @@ -2568,22 +2563,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("ObjectValue", false)) { /** - * A bind variable has not been bound to a value. + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2602,30 +2605,22 @@ public function getXsiTypeName() { } public function __construct() { + parent::__construct(); } } } -if (!class_exists("CreateBaseRate", false)) { +if (!class_exists("AdUnitPremiumFeature", false)) { /** - * Creates a new {@link BaseRate} object. - * - * @param baseRate the base rate to be created - * @return the base rate with its ID filled in + * A premium feature applied to ad unit targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class AdUnitPremiumFeature extends PremiumFeature { - /** - * @access public - * @var BaseRate - */ - public $baseRate; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitPremiumFeature"; /** * Gets the namesapce of this class @@ -2643,29 +2638,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($baseRate = null) { - $this->baseRate = $baseRate; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("CreateBaseRateResponse", false)) { +if (!class_exists("ApiException", false)) { /** - * + * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateBaseRateResponse { + class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiException"; /** * @access public - * @var BaseRate + * @var ApiError[] */ - public $rval; + public $errors; /** * Gets the namesapce of this class @@ -2683,32 +2678,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; } } } -if (!class_exists("CreateBaseRates", false)) { +if (!class_exists("AudienceSegmentPremiumFeature", false)) { /** - * Creates a list of new {@link BaseRate} objects. - * - * @param baseRates the base rates to be created - * @return the base rates with their IDs filled in + * A premium feature applied to audience segment targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateBaseRates { + class AudienceSegmentPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentPremiumFeature"; /** * @access public - * @var BaseRate[] + * @var integer */ - public $baseRates; + public $audienceSegmentId; /** * Gets the namesapce of this class @@ -2726,29 +2720,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($baseRates = null) { - $this->baseRates = $baseRates; + public function __construct($audienceSegmentId = null) { + parent::__construct(); + $this->audienceSegmentId = $audienceSegmentId; } } } -if (!class_exists("CreateBaseRatesResponse", false)) { +if (!class_exists("BandwidthPremiumFeature", false)) { /** - * + * A premium feature applied to bandwidth targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateBaseRatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class BandwidthPremiumFeature extends PremiumFeature { - /** - * @access public - * @var BaseRate[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BandwidthPremiumFeature"; /** * Gets the namesapce of this class @@ -2766,31 +2755,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("GetBaseRate", false)) { +if (!class_exists("BooleanValue", false)) { /** - * Returns the {@link BaseRate} object uniquely identified by the given ID. - * - * @param baseRateId the ID of the base rate, which must already exist + * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetBaseRate { + class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BooleanValue"; /** * @access public - * @var integer + * @var boolean */ - public $baseRateId; + public $value; /** * Gets the namesapce of this class @@ -2808,29 +2795,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($baseRateId = null) { - $this->baseRateId = $baseRateId; + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; } } } -if (!class_exists("GetBaseRateResponse", false)) { +if (!class_exists("BrowserPremiumFeature", false)) { /** - * + * A premium feature applied to browser targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class BrowserPremiumFeature extends PremiumFeature { - /** - * @access public - * @var BaseRate - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BrowserPremiumFeature"; /** * Gets the namesapce of this class @@ -2848,59 +2830,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("GetBaseRatesByStatement", false)) { +if (!class_exists("BrowserLanguagePremiumFeature", false)) { /** - * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the page of base rates that match the given filter + * A premium feature applied to browser language targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetBaseRatesByStatement { + class BrowserLanguagePremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Statement - */ - public $filterStatement; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BrowserLanguagePremiumFeature"; /** * Gets the namesapce of this class @@ -2918,29 +2864,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("GetBaseRatesByStatementResponse", false)) { +if (!class_exists("CustomTargetingPremiumFeature", false)) { /** - * + * A premium feature applied to custom criteria targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetBaseRatesByStatementResponse { + class CustomTargetingPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingPremiumFeature"; /** * @access public - * @var BaseRatePage + * @var integer */ - public $rval; + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; /** * Gets the namesapce of this class @@ -2958,41 +2910,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct($customTargetingKeyId = null, $customTargetingValueId = null) { + parent::__construct(); + $this->customTargetingKeyId = $customTargetingKeyId; + $this->customTargetingValueId = $customTargetingValueId; } } } -if (!class_exists("PerformBaseRateAction", false)) { +if (!class_exists("DateTimeValue", false)) { /** - * Performs actions on {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * @param baseRateAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the result of the action performed + * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PerformBaseRateAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class DateTimeValue extends Value { - /** - * @access public - * @var BaseRateAction - */ - public $baseRateAction; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTimeValue"; /** * @access public - * @var Statement + * @var DateTime */ - public $filterStatement; + public $value; /** * Gets the namesapce of this class @@ -3010,30 +2952,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($baseRateAction = null, $filterStatement = null) { - $this->baseRateAction = $baseRateAction; - $this->filterStatement = $filterStatement; + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; } } } -if (!class_exists("PerformBaseRateActionResponse", false)) { +if (!class_exists("DateValue", false)) { /** - * + * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PerformBaseRateActionResponse { + class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateValue"; /** * @access public - * @var UpdateResult + * @var Date */ - public $rval; + public $value; /** * Gets the namesapce of this class @@ -3051,32 +2993,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; } } } -if (!class_exists("UpdateBaseRate", false)) { +if (!class_exists("DaypartPremiumFeature", false)) { /** - * Updates the specified {@link BaseRate} object. - * - * @param baseRate the base rate to be updated - * @return the updated base rate + * A premium feature applied to daypart targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateBaseRate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class DaypartPremiumFeature extends PremiumFeature { - /** - * @access public - * @var BaseRate - */ - public $baseRate; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DaypartPremiumFeature"; /** * Gets the namesapce of this class @@ -3094,29 +3028,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($baseRate = null) { - $this->baseRate = $baseRate; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateBaseRateResponse", false)) { +if (!class_exists("DeviceCapabilityPremiumFeature", false)) { /** - * + * A premium feature applied to device capability targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateBaseRateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class DeviceCapabilityPremiumFeature extends PremiumFeature { - /** - * @access public - * @var BaseRate - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCapabilityPremiumFeature"; /** * Gets the namesapce of this class @@ -3134,32 +3062,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateBaseRates", false)) { +if (!class_exists("DeviceCategoryPremiumFeature", false)) { /** - * Updates the specified {@link BaseRate} objects. - * - * @param baseRates the base rates to be updated - * @return the updated base rates + * A premium feature applied to device category targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateBaseRates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class DeviceCategoryPremiumFeature extends PremiumFeature { - /** - * @access public - * @var BaseRate[] - */ - public $baseRates; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCategoryPremiumFeature"; /** * Gets the namesapce of this class @@ -3177,29 +3096,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($baseRates = null) { - $this->baseRates = $baseRates; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateBaseRatesResponse", false)) { +if (!class_exists("DeviceManufacturerPremiumFeature", false)) { /** - * + * A premium feature applied to device manufacturer targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateBaseRatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class DeviceManufacturerPremiumFeature extends PremiumFeature { - /** - * @access public - * @var BaseRate[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceManufacturerPremiumFeature"; /** * Gets the namesapce of this class @@ -3217,23 +3130,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("ActivateBaseRates", false)) { +if (!class_exists("FrequencyCapPremiumFeature", false)) { /** - * The action used to activate {@link BaseRate} objects. + * A premium feature applied to frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivateBaseRates extends BaseRateAction { + class FrequencyCapPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateBaseRates"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FrequencyCapPremiumFeature"; /** * Gets the namesapce of this class @@ -3251,30 +3164,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($BaseRateActionType = null) { + public function __construct() { parent::__construct(); - $this->BaseRateActionType = $BaseRateActionType; } } } -if (!class_exists("ApiException", false)) { +if (!class_exists("GeographyPremiumFeature", false)) { /** - * Exception class for holding a list of service errors. + * A premium feature applied to geography targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; + class GeographyPremiumFeature extends PremiumFeature { - /** - * @access public - * @var ApiError[] - */ - public $errors; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeographyPremiumFeature"; /** * Gets the namesapce of this class @@ -3292,32 +3198,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct() { parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("BooleanValue", false)) { +if (!class_exists("MobileCarrierPremiumFeature", false)) { /** - * Contains a boolean value. + * A premium feature applied to mobile carrier targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BooleanValue extends Value { + class MobileCarrierPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; - - /** - * @access public - * @var boolean - */ - public $value; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileCarrierPremiumFeature"; /** * Gets the namesapce of this class @@ -3335,29 +3232,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct() { parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("DateTimeValue", false)) { +if (!class_exists("NumberValue", false)) { /** - * Contains a date-time value. + * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DateTimeValue extends Value { + class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NumberValue"; /** * @access public - * @var DateTime + * @var string */ public $value; @@ -3377,31 +3272,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("DateValue", false)) { +if (!class_exists("OperatingSystemPremiumFeature", false)) { /** - * Contains a date value. + * A premium feature applied to operating system targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DateValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; + class OperatingSystemPremiumFeature extends PremiumFeature { - /** - * @access public - * @var Date - */ - public $value; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OperatingSystemPremiumFeature"; /** * Gets the namesapce of this class @@ -3419,31 +3307,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct() { parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("NumberValue", false)) { +if (!class_exists("PlacementPremiumFeature", false)) { /** - * Contains a numeric value. + * A premium feature applied to placement targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NumberValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NumberValue"; + class PlacementPremiumFeature extends PremiumFeature { - /** - * @access public - * @var string - */ - public $value; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PlacementPremiumFeature"; /** * Gets the namesapce of this class @@ -3461,10 +3341,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct() { parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3474,11 +3352,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -3503,10 +3381,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -3516,11 +3393,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3545,68 +3422,77 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("BaseRateService", false)) { +if (!class_exists("PremiumRateService", false)) { /** - * BaseRateService + * PremiumRateService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BaseRateService extends DfpSoapClient { + class PremiumRateService extends DfpSoapClient { - const SERVICE_NAME = "BaseRateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/BaseRateService"; + const SERVICE_NAME = "PremiumRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/PremiumRateService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/BaseRateService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/PremiumRateService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( - "ActivateBaseRates" => "ActivateBaseRates", + "ObjectValue" => "ObjectValue", + "AdUnitPremiumFeature" => "AdUnitPremiumFeature", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", + "AudienceSegmentPremiumFeature" => "AudienceSegmentPremiumFeature", "AuthenticationError" => "AuthenticationError", - "BaseRateAction" => "BaseRateAction", - "BaseRateActionError" => "BaseRateActionError", - "BaseRate" => "BaseRate", - "BaseRateError" => "BaseRateError", - "BaseRatePage" => "BaseRatePage", + "BandwidthPremiumFeature" => "BandwidthPremiumFeature", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "BrowserPremiumFeature" => "BrowserPremiumFeature", + "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", + "CustomTargetingPremiumFeature" => "CustomTargetingPremiumFeature", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", - "DeactivateBaseRates" => "DeactivateBaseRates", + "DaypartPremiumFeature" => "DaypartPremiumFeature", + "DeviceCapabilityPremiumFeature" => "DeviceCapabilityPremiumFeature", + "DeviceCategoryPremiumFeature" => "DeviceCategoryPremiumFeature", + "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "FeatureError" => "FeatureError", + "FrequencyCapPremiumFeature" => "FrequencyCapPremiumFeature", + "GeographyPremiumFeature" => "GeographyPremiumFeature", "InternalApiError" => "InternalApiError", - "Money" => "Money", + "MobileCarrierPremiumFeature" => "MobileCarrierPremiumFeature", "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", + "OperatingSystemPremiumFeature" => "OperatingSystemPremiumFeature", "PermissionError" => "PermissionError", - "ProductBaseRate" => "ProductBaseRate", - "ProductTemplateBaseRate" => "ProductTemplateBaseRate", + "PlacementPremiumFeature" => "PlacementPremiumFeature", + "PremiumFeature" => "PremiumFeature", + "PremiumRate" => "PremiumRate", + "PremiumRateError" => "PremiumRateError", + "PremiumRatePage" => "PremiumRatePage", + "PremiumRateValue" => "PremiumRateValue", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", @@ -3620,40 +3506,36 @@ class BaseRateService extends DfpSoapClient { "StatementError" => "StatementError", "String_ValueMapEntry" => "String_ValueMapEntry", "TextValue" => "TextValue", - "UpdateResult" => "UpdateResult", + "UnknownPremiumFeature" => "UnknownPremiumFeature", + "UserDomainPremiumFeature" => "UserDomainPremiumFeature", "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateActionError.Reason" => "BaseRateActionErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", - "BaseRateStatus" => "BaseRateStatus", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "NullError.Reason" => "NullErrorReason", "PermissionError.Reason" => "PermissionErrorReason", + "PremiumAdjustmentType" => "PremiumAdjustmentType", + "PremiumRateError.Reason" => "PremiumRateErrorReason", + "PricingMethod" => "PricingMethod", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", - "createBaseRate" => "CreateBaseRate", - "createBaseRateResponse" => "CreateBaseRateResponse", - "createBaseRates" => "CreateBaseRates", - "createBaseRatesResponse" => "CreateBaseRatesResponse", - "getBaseRate" => "GetBaseRate", - "getBaseRateResponse" => "GetBaseRateResponse", - "getBaseRatesByStatement" => "GetBaseRatesByStatement", - "getBaseRatesByStatementResponse" => "GetBaseRatesByStatementResponse", - "performBaseRateAction" => "PerformBaseRateAction", - "performBaseRateActionResponse" => "PerformBaseRateActionResponse", - "updateBaseRate" => "UpdateBaseRate", - "updateBaseRateResponse" => "UpdateBaseRateResponse", - "updateBaseRates" => "UpdateBaseRates", - "updateBaseRatesResponse" => "UpdateBaseRatesResponse", + "createPremiumRates" => "CreatePremiumRates", + "createPremiumRatesResponse" => "CreatePremiumRatesResponse", + "getPremiumRatesByStatement" => "GetPremiumRatesByStatement", + "getPremiumRatesByStatementResponse" => "GetPremiumRatesByStatementResponse", + "updatePremiumRates" => "UpdatePremiumRates", + "updatePremiumRatesResponse" => "UpdatePremiumRatesResponse", ); @@ -3668,109 +3550,57 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Creates a new {@link BaseRate} object. - * - * @param baseRate the base rate to be created - * @return the base rate with its ID filled in - */ - public function createBaseRate($baseRate) { - $args = new CreateBaseRate($baseRate); - $result = $this->__soapCall("createBaseRate", array($args)); - return $result->rval; - } - /** - * Creates a list of new {@link BaseRate} objects. - * - * @param baseRates the base rates to be created - * @return the base rates with their IDs filled in - */ - public function createBaseRates($baseRates) { - $args = new CreateBaseRates($baseRates); - $result = $this->__soapCall("createBaseRates", array($args)); - return $result->rval; - } - /** - * Returns the {@link BaseRate} object uniquely identified by the given ID. + * Creates a list of new {@link PremiumRate} objects. * - * @param baseRateId the ID of the base rate, which must already exist + * @param premiumRates the premium rates to be created + * @return the premium rates with their IDs filled in */ - public function getBaseRate($baseRateId) { - $args = new GetBaseRate($baseRateId); - $result = $this->__soapCall("getBaseRate", array($args)); + public function createPremiumRates($premiumRates) { + $args = new CreatePremiumRates($premiumRates); + $result = $this->__soapCall("createPremiumRates", array($args)); return $result->rval; } /** - * Gets a {@link BaseRatePage} of {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * The following fields are supported for filtering: + * Gets a {@link PremiumRatePage} of {@link PremiumRate} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: * *
    PQL PropertyObject Property
    {@code rateCardId}{@link BaseRate#rateCardId}
    {@code id}{@link BaseRate#id}
    {@code productTemplateId}{@link ProductTemplateBaseRate#id}
    Note: Cannot be - * combined with {@code productId}. - *
    {@code productId}{@link ProductBaseRate#id}
    Note: Cannot be combined with - * {@code productTemplateId}. - *
    * - * - * - * - * - * - * + * * * * - * + * * * - * - * + * * - * - * + * + * * + *
    PQL PropertyObject Property
    {@code rateCardId}{@link BaseRate#rateCardId}PQL Property Object Property
    {@code id}{@link BaseRate#id}{@link PremiumRate#id}
    {@code productTemplateId}{@link ProductTemplateBaseRate#id}
    Note: Cannot be - * combined with {@code productId}. + *
    {@code rateCardId}{@link PremiumRate#rateCardId}
    {@code productId}{@link ProductBaseRate#id}
    Note: Cannot be combined with - * {@code productTemplateId}. + *
    {@code pricingMethod}{@link PremiumRate#pricingMethod}
    * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the page of base rates that match the given filter - */ - public function getBaseRatesByStatement($filterStatement) { - $args = new GetBaseRatesByStatement($filterStatement); - $result = $this->__soapCall("getBaseRatesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link BaseRate} objects that satisfy the given - * {@link Statement#query}. - * - * @param baseRateAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of base rates. - * @return the result of the action performed - */ - public function performBaseRateAction($baseRateAction, $filterStatement) { - $args = new PerformBaseRateAction($baseRateAction, $filterStatement); - $result = $this->__soapCall("performBaseRateAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link BaseRate} object. - * - * @param baseRate the base rate to be updated - * @return the updated base rate + * @param filterStatement a Publisher Query Language statement to filter a + * list of premium rates. + * @return the premium rates that match the filter */ - public function updateBaseRate($baseRate) { - $args = new UpdateBaseRate($baseRate); - $result = $this->__soapCall("updateBaseRate", array($args)); + public function getPremiumRatesByStatement($filterStatement) { + $args = new GetPremiumRatesByStatement($filterStatement); + $result = $this->__soapCall("getPremiumRatesByStatement", array($args)); return $result->rval; } /** - * Updates the specified {@link BaseRate} objects. + * Updates the specified {@link PremiumRate} objects. * - * @param baseRates the base rates to be updated - * @return the updated base rates + * @param premiumRates the premium rates to be updated + * @return the updated premium rates */ - public function updateBaseRates($baseRates) { - $args = new UpdateBaseRates($baseRates); - $result = $this->__soapCall("updateBaseRates", array($args)); + public function updatePremiumRates($premiumRates) { + $args = new UpdatePremiumRates($premiumRates); + $result = $this->__soapCall("updatePremiumRates", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201311/ActivityService.php b/src/Google/Api/Ads/Dfp/v201502/ProductPackageItemService.php similarity index 71% rename from src/Google/Api/Ads/Dfp/v201311/ActivityService.php rename to src/Google/Api/Ads/Dfp/v201502/ProductPackageItemService.php index 4932b8b5c..b78ce38c3 100755 --- a/src/Google/Api/Ads/Dfp/v201311/ActivityService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProductPackageItemService.php @@ -1,6 +1,6 @@ An activity is a specific user action that an advertiser wants to track, such as the - * completion of a purchase or a visit to a webpage. You create and manage activities in DFP. When - * a user performs the action after seeing an advertiser's ad, that's a conversion.

    + * The API error base class that provides details about an error that occurred + * while processing a service request. * - *

    For example, you set up an activity in DFP to track how many users visit an advertiser's - * promotional website after viewing or clicking on an ad. When a user views an ad, then visits the - * page, that's one conversion.

    + *

    The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Activity { + class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Activity"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiError"; /** * @access public - * @var integer + * @var string */ - public $id; + public $fieldPath; /** * @access public - * @var integer + * @var string */ - public $activityGroupId; + public $trigger; /** * @access public * @var string */ - public $name; + public $errorString; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $expectedURL; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var tnsActivityStatus + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $status; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError"; /** * @access public - * @var tnsActivityType + * @var tnsApiVersionErrorReason */ - public $type; + public $reason; /** * Gets the namesapce of this class @@ -97,46 +119,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $activityGroupId = null, $name = null, $expectedURL = null, $status = null, $type = null) { - $this->id = $id; - $this->activityGroupId = $activityGroupId; - $this->name = $name; - $this->expectedURL = $expectedURL; - $this->status = $status; - $this->type = $type; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ActivityPage", false)) { +if (!class_exists("ApplicationException", false)) { /** - * Captures a page of {@link Activity} objects. + * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivityPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivityPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; + class ApplicationException { - /** - * @access public - * @var integer - */ - public $startIndex; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApplicationException"; /** * @access public - * @var Activity[] + * @var string */ - public $results; + public $message; /** * Gets the namesapce of this class @@ -154,85 +163,117 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; + public function __construct($message = null) { + $this->message = $message; } } } -if (!class_exists("ApiError", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

    The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

    + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiError { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string + * @var tnsAuthenticationErrorReason */ - public $fieldPath; + public $reason; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $trigger; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var string + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $errorString; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); + public $reason; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var tnsCommonErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -250,32 +291,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ApiVersionError", false)) { +if (!class_exists("Date", false)) { /** - * Errors related to the usage of API versions. + * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionError extends ApiError { + class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Date"; /** * @access public - * @var tnsApiVersionErrorReason + * @var integer */ - public $reason; + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; /** * Gets the namesapce of this class @@ -293,73 +347,139 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; } } } -if (!class_exists("ApplicationException", false)) { +if (!class_exists("DfpDateTime", false)) { /** - * Base class for exceptions. + * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApplicationException { + class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApplicationException"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTime"; /** * @access public - * @var string + * @var Date */ - public $message; + public $date; + + /** + * @access public + * @var integer + */ + public $hour; + + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; /** * @access public * @var string */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); + public $timeZoneID; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; } + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class */ - protected function getParameterMap() { - return $this->_parameterMap; + public function getNamespace() { + return self::WSDL_NAMESPACE; } + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -376,62 +496,79 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("FeatureError", false)) { /** - * A representation of the authentication protocols that can be used. + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var string + * @var tnsFeatureErrorReason */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); + public $reason; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var tnsInternalApiErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -449,27 +586,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("NotNullError", false)) { /** - * An error for an exception that occurred when authenticating. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsNotNullErrorReason */ public $reason; @@ -489,36 +630,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("PermissionError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var string + * @var tnsPermissionErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -536,29 +674,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("CommonError", false)) { +if (!class_exists("ProductError", false)) { /** - * A place for common errors that can be used across services. + * A catch-all error that lists all generic errors associated with Product. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonError extends ApiError { + class ProductError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductError"; /** * @access public - * @var tnsCommonErrorReason + * @var tnsProductErrorReason */ public $reason; @@ -578,46 +718,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Date", false)) { +if (!class_exists("ProductPackageActionError", false)) { /** - * Represents a date. + * Lists all errors for executing operations on product packages. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; + class ProductPackageActionError extends ApiError { - /** - * @access public - * @var integer - */ - public $month; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageActionError"; /** * @access public - * @var integer + * @var tnsProductPackageActionErrorReason */ - public $day; + public $reason; /** * Gets the namesapce of this class @@ -635,55 +762,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DfpDateTime", false)) { +if (!class_exists("ProductPackageItemAction", false)) { /** - * Represents a date combined with the time of day. + * Represents the actions that can be performed on product package items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; - - /** - * @access public - * @var integer - */ - public $second; + class ProductPackageItemAction { - /** - * @access public - * @var string - */ - public $timeZoneID; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemAction"; /** * Gets the namesapce of this class @@ -701,32 +800,26 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; + public function __construct() { } } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("ProductPackageItemActionError", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * Lists all errors for executing operations on product package items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class ProductPackageItemActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemActionError"; /** * @access public - * @var tnsFeatureErrorReason + * @var tnsProductPackageItemActionErrorReason */ public $reason; @@ -746,36 +839,57 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("ProductPackageItem", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * A {@code ProductPackageItem} represents a product item in a package. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class ProductPackageItem { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItem"; /** * @access public - * @var tnsInternalApiErrorReason + * @var integer */ - public $reason; + public $id; + + /** + * @access public + * @var integer + */ + public $productId; + + /** + * @access public + * @var integer + */ + public $productPackageId; + + /** + * @access public + * @var boolean + */ + public $isMandatory; + + /** + * @access public + * @var tnsArchiveStatus + */ + public $archiveStatus; /** * Gets the namesapce of this class @@ -793,32 +907,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $productId = null, $productPackageId = null, $isMandatory = null, $archiveStatus = null) { + $this->id = $id; + $this->productId = $productId; + $this->productPackageId = $productPackageId; + $this->isMandatory = $isMandatory; + $this->archiveStatus = $archiveStatus; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("ProductPackageItemError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Lists all errors associated with product package items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class ProductPackageItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsProductPackageItemErrorReason */ public $reason; @@ -838,36 +951,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("ProductPackageItemPage", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Captures a page of {@link ProductPackageItemDto} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class ProductPackageItemPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemPage"; /** * @access public - * @var string + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ProductPackageItem[] */ - public $parameters; + public $results; /** * Gets the namesapce of this class @@ -885,29 +1007,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("ProductPackageRateCardAssociationError", false)) { /** - * Errors related to incorrect permission. + * Lists all errors associated with product packages rate card associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionError extends ApiError { + class ProductPackageRateCardAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageRateCardAssociationError"; /** * @access public - * @var tnsPermissionErrorReason + * @var tnsProductPackageRateCardAssociationErrorReason */ public $reason; @@ -927,13 +1049,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -944,11 +1065,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -973,13 +1094,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -990,11 +1110,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1019,13 +1139,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1036,11 +1155,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1065,13 +1184,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1081,11 +1199,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1110,58 +1228,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RequiredError", false)) { - /** - * Errors due to missing required field. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class RequiredError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; - - /** - * @access public - * @var tnsRequiredErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1171,11 +1243,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1200,13 +1272,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1216,11 +1287,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1235,12 +1306,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1257,10 +1322,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1270,11 +1334,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1345,11 +1409,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1392,11 +1456,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1421,13 +1485,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1437,11 +1500,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1466,13 +1529,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1483,11 +1545,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1526,15 +1588,49 @@ public function __construct($key = null, $value = null) { } } +if (!class_exists("UnArchiveProductPackageItems", false)) { + /** + * The action used to un-archive product package items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UnArchiveProductPackageItems extends ProductPackageItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnArchiveProductPackageItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("UniqueError", false)) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1553,66 +1649,67 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Value", false)) { +if (!class_exists("UpdateResult", false)) { /** - * {@code Value} represents a value. + * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Value { + class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; /** * @access public - * @var string + * @var integer */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public $numChanges; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; } + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1629,23 +1726,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } } -if (!class_exists("ActivityStatus", false)) { +if (!class_exists("ApiVersionErrorReason", false)) { /** - * The activity status. + * Indicates that the operation is not allowed in the version the request + * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivityStatus { + class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Activity.Status"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; /** * Gets the namesapce of this class @@ -1669,16 +1766,16 @@ public function __construct() { } } -if (!class_exists("ActivityType", false)) { +if (!class_exists("ArchiveStatus", false)) { /** - * The activity type. + * Archive status of product package item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivityType { + class ArchiveStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Activity.Type"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ArchiveStatus"; /** * Gets the namesapce of this class @@ -1702,16 +1799,19 @@ public function __construct() { } } -if (!class_exists("ActivityErrorReason", false)) { +if (!class_exists("AuthenticationErrorReason", false)) { /** - * The reasons for the target error. + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivityErrorReason { + class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivityError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; /** * Gets the namesapce of this class @@ -1735,17 +1835,16 @@ public function __construct() { } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -1769,19 +1868,16 @@ public function __construct() { } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -1805,16 +1901,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * Describes reasons for common errors + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -1842,11 +1938,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1875,11 +1971,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1908,11 +2004,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1941,11 +2037,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1970,16 +2066,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { +if (!class_exists("ProductErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextErrorReason { + class ProductErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductError.Reason"; /** * Gets the namesapce of this class @@ -2003,16 +2099,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { +if (!class_exists("ProductPackageActionErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the {@link ProductPackageActionError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxErrorReason { + class ProductPackageActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageActionError.Reason"; /** * Gets the namesapce of this class @@ -2036,26 +2132,16 @@ public function __construct() { } } -if (!class_exists("QuotaErrorReason", false)) { +if (!class_exists("ProductPackageItemActionErrorReason", false)) { /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

    - * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

    + * The reasons for the {@link ProductPackageItemActionError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaErrorReason { + class ProductPackageItemActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemActionError.Reason"; /** * Gets the namesapce of this class @@ -2079,16 +2165,16 @@ public function __construct() { } } -if (!class_exists("RangeErrorReason", false)) { +if (!class_exists("ProductPackageItemErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The reasons for the {@link ProductPackageItemError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RangeErrorReason { + class ProductPackageItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemError.Reason"; /** * Gets the namesapce of this class @@ -2112,16 +2198,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("ProductPackageRateCardAssociationErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the {@link ProductPackageError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredErrorReason { + class ProductPackageRateCardAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageRateCardAssociationError.Reason"; /** * Gets the namesapce of this class @@ -2145,16 +2231,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** - * Describes reasons for server errors + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** * Gets the namesapce of this class @@ -2178,16 +2264,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** * Gets the namesapce of this class @@ -2211,16 +2297,26 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("QuotaErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

    + * Another way to mitigate this error is to limit requests to 2 per second for + * Small Business networks, or 8 per second for Premium networks. Once again + * this does not guarantee that every request will succeed, but may help + * reduce the number of times you receive this error. + *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthErrorReason { + class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError.Reason"; /** * Gets the namesapce of this class @@ -2244,25 +2340,16 @@ public function __construct() { } } -if (!class_exists("CreateActivities", false)) { +if (!class_exists("RangeErrorReason", false)) { /** - * Creates a new {@link Activity} objects. - * - * @param activities to be created. - * @return the created activities with its IDs filled in. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateActivities { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class RangeErrorReason { - /** - * @access public - * @var Activity[] - */ - public $activities; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError.Reason"; /** * Gets the namesapce of this class @@ -2280,29 +2367,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($activities = null) { - $this->activities = $activities; + public function __construct() { } } } -if (!class_exists("CreateActivitiesResponse", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateActivitiesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ServerErrorReason { - /** - * @access public - * @var Activity[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -2320,32 +2400,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("CreateActivity", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * Creates a new {@link Activity}. - * - * @param activity to be created - * @return the created activity with its ID filled in. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateActivity { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class StatementErrorReason { - /** - * @access public - * @var Activity - */ - public $activity; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -2363,29 +2433,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($activity = null) { - $this->activity = $activity; + public function __construct() { } } } -if (!class_exists("CreateActivityResponse", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateActivityResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class StringLengthErrorReason { - /** - * @access public - * @var Activity - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -2403,59 +2466,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("GetActivitiesByStatement", false)) { +if (!class_exists("CreateProductPackageItems", false)) { /** - * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: + * Creates new {@link ProductPackageItem} objects. * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    PQL Property Object Property
    {@code id}{@link Activity#id}
    {@code name}{@link Activity#name}
    {@code expectedURL}{@link Activity#expectedURL}
    {@code status}{@link Activity#status}
    {@code activityGroupId}{@link Activity#activityGroupId}
    - * - * @param filterStatement a statement used to filter a set of activities. - * @return the activities that match the given filter. + * @param productPackageItems the product package items to create + * @return the created product package items with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetActivitiesByStatement { + class CreateProductPackageItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Statement + * @var ProductPackageItem[] */ - public $filterStatement; + public $productPackageItems; /** * Gets the namesapce of this class @@ -2473,27 +2508,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; + public function __construct($productPackageItems = null) { + $this->productPackageItems = $productPackageItems; } } } -if (!class_exists("GetActivitiesByStatementResponse", false)) { +if (!class_exists("CreateProductPackageItemsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetActivitiesByStatementResponse { + class CreateProductPackageItemsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ActivityPage + * @var ProductPackageItem[] */ public $rval; @@ -2520,25 +2555,58 @@ public function __construct($rval = null) { } } -if (!class_exists("GetActivity", false)) { +if (!class_exists("GetProductPackageItemsByStatement", false)) { /** - * Returns the {@link Activity} uniquely identified by the given ID. + * Gets a {@link ProductPackageItemPage} of {@code ProductPackageItem} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link ProductPackageItem#id}
    {@code productPackageId}{@link ProductPackageItem#productPackageId}
    {@code productId}{@link ProductPackageItem#productId}
    {@code productTemplateId}{@link ProductPackageItem#productTemplateId}
    {@code mandatory}{@link ProductPackageItem#mandatory}
    {@code archived}{@link ProductPackageItem#archived}
    * - * @param activityId the ID of the activity, which must already exist - * @return the {@code Activity} uniquely identified by the given ID + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product package items that match the given statement * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetActivity { + class GetProductPackageItemsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var Statement */ - public $activityId; + public $statement; /** * Gets the namesapce of this class @@ -2556,27 +2624,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($activityId = null) { - $this->activityId = $activityId; + public function __construct($statement = null) { + $this->statement = $statement; } } } -if (!class_exists("GetActivityResponse", false)) { +if (!class_exists("GetProductPackageItemsByStatementResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetActivityResponse { + class GetProductPackageItemsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Activity + * @var ProductPackageItemPage */ public $rval; @@ -2603,25 +2671,34 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateActivities", false)) { +if (!class_exists("PerformProductPackageItemAction", false)) { /** - * Updates the specified {@link Activity} objects. + * Performs actions on {@link ProductPackageItem} objects that satisfy the given + * {@link Statement#query}. * - * @param activities to be updated. - * @return the updated activities. + * @param productPackageItemAction the action to perform + * @param statement a Publisher Query Language statement used to filter + * a set of product package items + * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateActivities { + class PerformProductPackageItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Activity[] + * @var ProductPackageItemAction + */ + public $productPackageItemAction; + + /** + * @access public + * @var Statement */ - public $activities; + public $statement; /** * Gets the namesapce of this class @@ -2639,27 +2716,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($activities = null) { - $this->activities = $activities; + public function __construct($productPackageItemAction = null, $statement = null) { + $this->productPackageItemAction = $productPackageItemAction; + $this->statement = $statement; } } } -if (!class_exists("UpdateActivitiesResponse", false)) { +if (!class_exists("PerformProductPackageItemActionResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateActivitiesResponse { + class PerformProductPackageItemActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Activity[] + * @var UpdateResult */ public $rval; @@ -2686,25 +2764,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateActivity", false)) { +if (!class_exists("UpdateProductPackageItems", false)) { /** - * Updates the specified {@link Activity}. + * Updates the specified {@link ProductPackageItem} objects. * - * @param activity to be updated. - * @return the updated activity. + * @param productPackageItems the product package items to update + * @return the updated product package items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateActivity { + class UpdateProductPackageItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Activity + * @var ProductPackageItem[] */ - public $activity; + public $productPackageItems; /** * Gets the namesapce of this class @@ -2722,27 +2800,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($activity = null) { - $this->activity = $activity; + public function __construct($productPackageItems = null) { + $this->productPackageItems = $productPackageItems; } } } -if (!class_exists("UpdateActivityResponse", false)) { +if (!class_exists("UpdateProductPackageItemsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateActivityResponse { + class UpdateProductPackageItemsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Activity + * @var ProductPackageItem[] */ public $rval; @@ -2769,22 +2847,23 @@ public function __construct($rval = null) { } } -if (!class_exists("ActivityError", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Errors relating to Activity and Activity Group services. + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivityError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivityError"; + class ObjectValue extends Value { - /** - * @access public - * @var tnsActivityErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2802,13 +2881,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct() { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2818,11 +2892,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2847,11 +2921,44 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; + } + + } +} + +if (!class_exists("ArchiveProductPackageItems", false)) { + /** + * The action used to archive product package items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ArchiveProductPackageItems extends ProductPackageItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ArchiveProductPackageItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); } } @@ -2861,11 +2968,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2890,10 +2997,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2903,11 +3009,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2932,10 +3038,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2945,11 +3050,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2974,10 +3079,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2987,11 +3091,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3016,10 +3120,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3029,11 +3132,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -3058,10 +3161,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -3071,11 +3173,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3100,65 +3202,70 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("ActivityService", false)) { +if (!class_exists("ProductPackageItemService", false)) { /** - * ActivityService + * ProductPackageItemService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivityService extends DfpSoapClient { + class ProductPackageItemService extends DfpSoapClient { - const SERVICE_NAME = "ActivityService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ActivityService"; + const SERVICE_NAME = "ProductPackageItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ProductPackageItemService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ActivityService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ProductPackageItemService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( - "Activity" => "Activity", - "ActivityError" => "ActivityError", - "ActivityPage" => "ActivityPage", + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", + "ArchiveProductPackageItems" => "ArchiveProductPackageItems", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", + "ProductError" => "ProductError", + "ProductPackageActionError" => "ProductPackageActionError", + "ProductPackageItemAction" => "ProductPackageItemAction", + "ProductPackageItemActionError" => "ProductPackageItemActionError", + "ProductPackageItem" => "ProductPackageItem", + "ProductPackageItemError" => "ProductPackageItemError", + "ProductPackageItemPage" => "ProductPackageItemPage", + "ProductPackageRateCardAssociationError" => "ProductPackageRateCardAssociationError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", "RangeError" => "RangeError", - "RequiredError" => "RequiredError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -3168,38 +3275,40 @@ class ActivityService extends DfpSoapClient { "StringLengthError" => "StringLengthError", "String_ValueMapEntry" => "String_ValueMapEntry", "TextValue" => "TextValue", + "UnArchiveProductPackageItems" => "UnArchiveProductPackageItems", "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", "Value" => "Value", - "Activity.Status" => "ActivityStatus", - "Activity.Type" => "ActivityType", - "ActivityError.Reason" => "ActivityErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", + "ArchiveStatus" => "ArchiveStatus", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "PermissionError.Reason" => "PermissionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProductPackageActionError.Reason" => "ProductPackageActionErrorReason", + "ProductPackageItemActionError.Reason" => "ProductPackageItemActionErrorReason", + "ProductPackageItemError.Reason" => "ProductPackageItemErrorReason", + "ProductPackageRateCardAssociationError.Reason" => "ProductPackageRateCardAssociationErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", "RangeError.Reason" => "RangeErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createActivities" => "CreateActivities", - "createActivitiesResponse" => "CreateActivitiesResponse", - "createActivity" => "CreateActivity", - "createActivityResponse" => "CreateActivityResponse", - "getActivitiesByStatement" => "GetActivitiesByStatement", - "getActivitiesByStatementResponse" => "GetActivitiesByStatementResponse", - "getActivity" => "GetActivity", - "getActivityResponse" => "GetActivityResponse", - "updateActivities" => "UpdateActivities", - "updateActivitiesResponse" => "UpdateActivitiesResponse", - "updateActivity" => "UpdateActivity", - "updateActivityResponse" => "UpdateActivityResponse", + "createProductPackageItems" => "CreateProductPackageItems", + "createProductPackageItemsResponse" => "CreateProductPackageItemsResponse", + "getProductPackageItemsByStatement" => "GetProductPackageItemsByStatement", + "getProductPackageItemsByStatementResponse" => "GetProductPackageItemsByStatementResponse", + "performProductPackageItemAction" => "PerformProductPackageItemAction", + "performProductPackageItemActionResponse" => "PerformProductPackageItemActionResponse", + "updateProductPackageItems" => "UpdateProductPackageItems", + "updateProductPackageItemsResponse" => "UpdateProductPackageItemsResponse", ); @@ -3214,30 +3323,20 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Creates a new {@link Activity} objects. - * - * @param activities to be created. - * @return the created activities with its IDs filled in. - */ - public function createActivities($activities) { - $args = new CreateActivities($activities); - $result = $this->__soapCall("createActivities", array($args)); - return $result->rval; - } - /** - * Creates a new {@link Activity}. + * Creates new {@link ProductPackageItem} objects. * - * @param activity to be created - * @return the created activity with its ID filled in. + * @param productPackageItems the product package items to create + * @return the created product package items with their IDs filled in */ - public function createActivity($activity) { - $args = new CreateActivity($activity); - $result = $this->__soapCall("createActivity", array($args)); + public function createProductPackageItems($productPackageItems) { + $args = new CreateProductPackageItems($productPackageItems); + $result = $this->__soapCall("createProductPackageItems", array($args)); return $result->rval; } /** - * Gets an {@link ActivityPage} of {@link Activity} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: + * Gets a {@link ProductPackageItemPage} of {@code ProductPackageItem} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: * * * @@ -3245,65 +3344,62 @@ public function createActivity($activity) { * * * - * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * + * + * + * + * * *
    {@code id}{@link Activity#id}{@link ProductPackageItem#id}
    {@code name}{@link Activity#name}{@code productPackageId}{@link ProductPackageItem#productPackageId}
    {@code expectedURL}{@link Activity#expectedURL}{@code productId}{@link ProductPackageItem#productId}
    {@code status}{@link Activity#status}{@code productTemplateId}{@link ProductPackageItem#productTemplateId}
    {@code activityGroupId}{@link Activity#activityGroupId}{@code mandatory}{@link ProductPackageItem#mandatory}
    {@code archived}{@link ProductPackageItem#archived}
    * - * @param filterStatement a statement used to filter a set of activities. - * @return the activities that match the given filter. - */ - public function getActivitiesByStatement($filterStatement) { - $args = new GetActivitiesByStatement($filterStatement); - $result = $this->__soapCall("getActivitiesByStatement", array($args)); - return $result->rval; - } - /** - * Returns the {@link Activity} uniquely identified by the given ID. - * - * @param activityId the ID of the activity, which must already exist - * @return the {@code Activity} uniquely identified by the given ID + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product package items that match the given statement */ - public function getActivity($activityId) { - $args = new GetActivity($activityId); - $result = $this->__soapCall("getActivity", array($args)); + public function getProductPackageItemsByStatement($statement) { + $args = new GetProductPackageItemsByStatement($statement); + $result = $this->__soapCall("getProductPackageItemsByStatement", array($args)); return $result->rval; } /** - * Updates the specified {@link Activity} objects. + * Performs actions on {@link ProductPackageItem} objects that satisfy the given + * {@link Statement#query}. * - * @param activities to be updated. - * @return the updated activities. - */ - public function updateActivities($activities) { - $args = new UpdateActivities($activities); - $result = $this->__soapCall("updateActivities", array($args)); + * @param productPackageItemAction the action to perform + * @param statement a Publisher Query Language statement used to filter + * a set of product package items + * @return the result of the action performed + */ + public function performProductPackageItemAction($productPackageItemAction, $statement) { + $args = new PerformProductPackageItemAction($productPackageItemAction, $statement); + $result = $this->__soapCall("performProductPackageItemAction", array($args)); return $result->rval; } /** - * Updates the specified {@link Activity}. + * Updates the specified {@link ProductPackageItem} objects. * - * @param activity to be updated. - * @return the updated activity. + * @param productPackageItems the product package items to update + * @return the updated product package items */ - public function updateActivity($activity) { - $args = new UpdateActivity($activity); - $result = $this->__soapCall("updateActivity", array($args)); + public function updateProductPackageItems($productPackageItems) { + $args = new UpdateProductPackageItems($productPackageItems); + $result = $this->__soapCall("updateProductPackageItems", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201311/LabelService.php b/src/Google/Api/Ads/Dfp/v201502/ProductPackageService.php similarity index 72% rename from src/Google/Api/Ads/Dfp/v201311/LabelService.php rename to src/Google/Api/Ads/Dfp/v201502/ProductPackageService.php index 6256af9f0..1648faae1 100755 --- a/src/Google/Api/Ads/Dfp/v201311/LabelService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProductPackageService.php @@ -1,6 +1,6 @@ The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,62 +163,73 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string + * @var tnsAuthenticationErrorReason */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); + public $reason; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseCustomFieldValue", false)) { + /** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BaseCustomFieldValue"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var integer */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $customFieldId; /** * Gets the namesapce of this class @@ -314,27 +247,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("BaseRateError", false)) { /** - * An error for an exception that occurred when authenticating. + * An error having to do with {@link BaseRate}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class BaseRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BaseRateError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsBaseRateErrorReason */ public $reason; @@ -354,36 +287,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +331,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +346,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,34 +375,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CreativeWrapperError", false)) { +if (!class_exists("CustomFieldValue", false)) { /** - * Errors specific to creative wrappers. + * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeWrapperError extends ApiError { + class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValue"; /** * @access public - * @var tnsCreativeWrapperErrorReason + * @var Value */ - public $reason; + public $value; /** * Gets the namesapce of this class @@ -488,13 +420,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + $this->value = $value; + $this->customFieldId = $customFieldId; } } @@ -504,11 +433,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -558,11 +487,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -622,23 +551,23 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("DropDownCustomFieldValue", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DropDownCustomFieldValue"; /** * @access public - * @var tnsFeatureErrorReason + * @var integer */ - public $reason; + public $customFieldOptionId; /** * Gets the namesapce of this class @@ -656,34 +585,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("EntityChildrenLimitReachedError", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * Lists errors relating to having too many children on an entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class EntityChildrenLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; /** * @access public - * @var tnsInternalApiErrorReason + * @var tnsEntityChildrenLimitReachedErrorReason */ public $reason; @@ -703,66 +627,72 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LabelAction", false)) { +if (!class_exists("EntityLimitReachedError", false)) { /** - * Represents the actions that can be performed on {@link Label} objects. + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelAction { + class EntityLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelAction"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $LabelActionType; - private $_parameterMap = array( - "LabelAction.Type" => "LabelActionType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } + } +} + +if (!class_exists("FeatureError", false)) { + /** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var tnsFeatureErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -780,53 +710,79 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { - $this->LabelActionType = $LabelActionType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("Label", false)) { +if (!class_exists("InternalApiError", false)) { /** - * A {@code Label} is additional information that can be added to an entity. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Label { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Label"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var integer + * @var tnsInternalApiErrorReason */ - public $id; + public $reason; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $name; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var string + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $description; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var boolean - */ - public $isActive; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var tnsLabelType[] + * @var tnsNotNullErrorReason */ - public $types; + public $reason; /** * Gets the namesapce of this class @@ -844,31 +800,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $isActive = null, $types = null) { - $this->id = $id; - $this->name = $name; - $this->description = $description; - $this->isActive = $isActive; - $this->types = $types; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("LabelError", false)) { +if (!class_exists("PermissionError", false)) { /** - * Errors specific to labels. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelError extends ApiError { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var tnsLabelErrorReason + * @var tnsPermissionErrorReason */ public $reason; @@ -888,46 +844,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("LabelPage", false)) { +if (!class_exists("ProductPackageAction", false)) { /** - * Captures a page of {@link Label} objects. + * Represents the actions that can be performed on product packages. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; + class ProductPackageAction { - /** - * @access public - * @var Label[] - */ - public $results; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageAction"; /** * Gets the namesapce of this class @@ -945,29 +882,26 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; + public function __construct() { } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("ProductPackageActionError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Lists all errors for executing operations on product packages. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class ProductPackageActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageActionError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsProductPackageActionErrorReason */ public $reason; @@ -987,34 +921,75 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("ProductPackage", false)) { /** - * Errors associated with violation of a NOT NULL check. + * A {@code ProductPackage} represents a group of products which will be sold together. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullError extends ApiError { + class ProductPackage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackage"; /** * @access public - * @var tnsNullErrorReason + * @var integer */ - public $reason; + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsProductPackageStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var integer[] + */ + public $rateCardIds; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; /** * Gets the namesapce of this class @@ -1032,36 +1007,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $name = null, $notes = null, $status = null, $isArchived = null, $rateCardIds = null, $customFieldValues = null, $lastModifiedDateTime = null) { + $this->id = $id; + $this->name = $name; + $this->notes = $notes; + $this->status = $status; + $this->isArchived = $isArchived; + $this->rateCardIds = $rateCardIds; + $this->customFieldValues = $customFieldValues; + $this->lastModifiedDateTime = $lastModifiedDateTime; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("ProductPackageItemError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Lists all errors associated with product package items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class ProductPackageItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemError"; /** * @access public - * @var string + * @var tnsProductPackageItemErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1079,31 +1054,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ParseError", false)) { +if (!class_exists("ProductPackagePage", false)) { /** - * Lists errors related to parsing. + * Captures a page of {@link ProductPackageDto} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseError extends ApiError { + class ProductPackagePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackagePage"; /** * @access public - * @var tnsParseErrorReason + * @var integer */ - public $reason; + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ProductPackage[] + */ + public $results; /** * Gets the namesapce of this class @@ -1121,32 +1110,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("ProductPackageRateCardAssociationError", false)) { /** - * Errors related to incorrect permission. + * Lists all errors associated with product packages rate card associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionError extends ApiError { + class ProductPackageRateCardAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageRateCardAssociationError"; /** * @access public - * @var tnsPermissionErrorReason + * @var tnsProductPackageRateCardAssociationErrorReason */ public $reason; @@ -1166,13 +1152,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1183,11 +1168,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1212,13 +1197,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1229,11 +1213,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1258,13 +1242,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1275,11 +1258,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1304,32 +1287,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredError", false)) { +if (!class_exists("RangeError", false)) { /** - * Errors due to missing required field. + * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredError extends ApiError { + class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError"; /** * @access public - * @var tnsRequiredErrorReason + * @var tnsRangeErrorReason */ public $reason; @@ -1349,13 +1331,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1365,11 +1346,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1394,13 +1375,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1410,11 +1390,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1429,12 +1409,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1451,10 +1425,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1464,11 +1437,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1539,11 +1512,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1586,11 +1559,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1615,13 +1588,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1631,11 +1603,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1660,13 +1632,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1677,11 +1648,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1720,16 +1691,16 @@ public function __construct($key = null, $value = null) { } } -if (!class_exists("TypeError", false)) { +if (!class_exists("UnarchiveProductPackages", false)) { /** - * An error for a field which is an invalid type. + * The action used to un-archive product packages. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TypeError extends ApiError { + class UnarchiveProductPackages extends ProductPackageAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TypeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnarchiveProductPackages"; /** * Gets the namesapce of this class @@ -1747,12 +1718,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct() { parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1762,11 +1729,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1785,140 +1752,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UpdateResult", false)) { - /** - * Represents the result of performing an action on objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; - - /** - * @access public - * @var integer - */ - public $numChanges; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; - } - - } -} - -if (!class_exists("Value", false)) { - /** - * {@code Value} represents a value. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("UpdateResult", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; /** * Gets the namesapce of this class @@ -1936,25 +1795,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; } } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("Value", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; /** * Gets the namesapce of this class @@ -1978,16 +1835,17 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("ApiVersionErrorReason", false)) { /** - * Describes reasons for common errors + * Indicates that the operation is not allowed in the version the request + * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; /** * Gets the namesapce of this class @@ -2011,16 +1869,19 @@ public function __construct() { } } -if (!class_exists("CreativeWrapperErrorReason", false)) { +if (!class_exists("AuthenticationErrorReason", false)) { /** - * The reasons for the creative wrapper error. + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeWrapperErrorReason { + class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeWrapperError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; /** * Gets the namesapce of this class @@ -2044,16 +1905,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("BaseRateErrorReason", false)) { /** - * A feature is being used that is not enabled on the current network. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureErrorReason { + class BaseRateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BaseRateError.Reason"; /** * Gets the namesapce of this class @@ -2077,16 +1938,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The single reason for the internal API error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -2110,16 +1971,16 @@ public function __construct() { } } -if (!class_exists("LabelErrorReason", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelErrorReason { + class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -2143,16 +2004,16 @@ public function __construct() { } } -if (!class_exists("LabelType", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * Represents the types of labels supported. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelType { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -2176,16 +2037,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * The reasons for the target error. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullErrorReason { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -2209,16 +2070,16 @@ public function __construct() { } } -if (!class_exists("NullErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the validation error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NullErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -2242,16 +2103,16 @@ public function __construct() { } } -if (!class_exists("ParseErrorReason", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ParseErrorReason { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ParseError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -2279,11 +2140,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2308,16 +2169,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { +if (!class_exists("ProductPackageActionErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the {@link ProductPackageActionError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextErrorReason { + class ProductPackageActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageActionError.Reason"; /** * Gets the namesapce of this class @@ -2341,16 +2202,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { +if (!class_exists("ProductPackageItemErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the {@link ProductPackageItemError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxErrorReason { + class ProductPackageItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageItemError.Reason"; /** * Gets the namesapce of this class @@ -2374,26 +2235,16 @@ public function __construct() { } } -if (!class_exists("QuotaErrorReason", false)) { +if (!class_exists("ProductPackageRateCardAssociationErrorReason", false)) { /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

    - * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

    + * The reasons for the {@link ProductPackageError}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaErrorReason { + class ProductPackageRateCardAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageRateCardAssociationError.Reason"; /** * Gets the namesapce of this class @@ -2417,16 +2268,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("ProductPackageStatus", false)) { /** - * The reasons for the target error. + * Describes the different statuses for {@code ProductPackage}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredErrorReason { + class ProductPackageStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductPackageStatus"; /** * Gets the namesapce of this class @@ -2450,16 +2301,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** - * Describes reasons for server errors + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** * Gets the namesapce of this class @@ -2483,16 +2334,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** * Gets the namesapce of this class @@ -2516,16 +2367,26 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("QuotaErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

    + * Another way to mitigate this error is to limit requests to 2 per second for + * Small Business networks, or 8 per second for Premium networks. Once again + * this does not guarantee that every request will succeed, but may help + * reduce the number of times you receive this error. + *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthErrorReason { + class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError.Reason"; /** * Gets the namesapce of this class @@ -2549,31 +2410,16 @@ public function __construct() { } } -if (!class_exists("CreateLabel", false)) { +if (!class_exists("RangeErrorReason", false)) { /** - * Creates a new {@link Label}. - * - * The following fields are required: - *
      - *
    • {@link Label#name}
    • - *
    • {@link Label#type}
    • - *
    - * - * @param label the label to create - * @return the label with its ID filled in + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateLabel { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class RangeErrorReason { - /** - * @access public - * @var Label - */ - public $label; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError.Reason"; /** * Gets the namesapce of this class @@ -2591,29 +2437,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($label = null) { - $this->label = $label; + public function __construct() { } } } -if (!class_exists("CreateLabelResponse", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateLabelResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ServerErrorReason { - /** - * @access public - * @var Label - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -2631,32 +2470,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("CreateLabels", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * Creates new {@link Label} objects. - * - * @param labels the labels to create - * @return the created labels with their IDs filled in + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateLabels { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class StatementErrorReason { - /** - * @access public - * @var Label[] - */ - public $labels; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -2674,29 +2503,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labels = null) { - $this->labels = $labels; + public function __construct() { } } } -if (!class_exists("CreateLabelsResponse", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateLabelsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class StringLengthErrorReason { - /** - * @access public - * @var Label[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -2714,32 +2536,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("GetLabel", false)) { +if (!class_exists("CreateProductPackages", false)) { /** - * Returns the {@link Label} uniquely identified by the given ID. + * Creates new {@link ProductPackage} objects. * - * @param labelId the ID of the label, which must already exist - * @return the {@code Label} uniquely identified by the given ID + * @param productPackages the product packages to create + * @return the persisted product packages with their ID filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetLabel { + class CreateProductPackages { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var ProductPackage[] */ - public $labelId; + public $productPackages; /** * Gets the namesapce of this class @@ -2757,27 +2578,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labelId = null) { - $this->labelId = $labelId; + public function __construct($productPackages = null) { + $this->productPackages = $productPackages; } } } -if (!class_exists("GetLabelResponse", false)) { +if (!class_exists("CreateProductPackagesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetLabelResponse { + class CreateProductPackagesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var ProductPackage[] */ public $rval; @@ -2804,11 +2625,11 @@ public function __construct($rval = null) { } } -if (!class_exists("GetLabelsByStatement", false)) { +if (!class_exists("GetProductPackagesByStatement", false)) { /** - * Gets a {@link LabelPage} of {@link Label} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: + * Gets a {@link ProductPackagePage} of {@link ProductPackage} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: * * * @@ -2816,43 +2637,46 @@ public function __construct($rval = null) { * * * - * + * * * - * - * + * + * * * - * - * + * + * + * + * + * + * * * - * - * + * + * * * - * - * + * + * * *
    {@code id}{@link Label#id}{@link ProductPackage#id}
    {@code type}{@link Label#type}{@code name}{@link ProductPackage#name}
    {@code name}{@link Label#name}{@code notes}{@link ProductPackage#notes}
    {@code status}{@link ProductPackage#status}
    {@code description}{@link Label#description}{@code isArchived}{@link ProductPackage#isArchived}
    {@code isActive}{@link Label#isActive}{@code lastModifiedDateTime}{@link ProductPackage#lastModifiedDateTime}
    * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels. - * @return the labels that match the given filter + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product packages that match the given statement * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetLabelsByStatement { + class GetProductPackagesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public * @var Statement */ - public $filterStatement; + public $statement; /** * Gets the namesapce of this class @@ -2870,27 +2694,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; + public function __construct($statement = null) { + $this->statement = $statement; } } } -if (!class_exists("GetLabelsByStatementResponse", false)) { +if (!class_exists("GetProductPackagesByStatementResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetLabelsByStatementResponse { + class GetProductPackagesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LabelPage + * @var ProductPackagePage */ public $rval; @@ -2917,34 +2741,33 @@ public function __construct($rval = null) { } } -if (!class_exists("PerformLabelAction", false)) { +if (!class_exists("PerformProductPackageAction", false)) { /** - * Performs actions on {@link Label} objects that match the given + * Performs actions on {@link ProductPackage} objects that match the given * {@link Statement#query}. * - * @param labelAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels + * @param action the action to perform + * @param statement a Publisher Query Language statement used to filter a set of product packages * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PerformLabelAction { + class PerformProductPackageAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var LabelAction + * @var ProductPackageAction */ - public $labelAction; + public $action; /** * @access public * @var Statement */ - public $filterStatement; + public $statement; /** * Gets the namesapce of this class @@ -2962,23 +2785,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labelAction = null, $filterStatement = null) { - $this->labelAction = $labelAction; - $this->filterStatement = $filterStatement; + public function __construct($action = null, $statement = null) { + $this->action = $action; + $this->statement = $statement; } } } -if (!class_exists("PerformLabelActionResponse", false)) { +if (!class_exists("PerformProductPackageActionResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PerformLabelActionResponse { + class PerformProductPackageActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3010,25 +2833,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLabel", false)) { +if (!class_exists("UpdateProductPackages", false)) { /** - * Updates the specified {@link Label}. + * Updates the specified {@link ProductPackage} objects. * - * @param label the label to update - * @return the updated label + * @param productPackages the product packages to update + * @return the updated product packages * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateLabel { + class UpdateProductPackages { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var ProductPackage[] */ - public $label; + public $productPackages; /** * Gets the namesapce of this class @@ -3046,27 +2869,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($label = null) { - $this->label = $label; + public function __construct($productPackages = null) { + $this->productPackages = $productPackages; } } } -if (!class_exists("UpdateLabelResponse", false)) { +if (!class_exists("UpdateProductPackagesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateLabelResponse { + class UpdateProductPackagesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Label + * @var ProductPackage[] */ public $rval; @@ -3093,25 +2916,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateLabels", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link Label} objects. - * - * @param labels the labels to update - * @return the updated labels + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateLabels { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var Label[] - */ - public $labels; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3129,29 +2950,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($labels = null) { - $this->labels = $labels; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateLabelsResponse", false)) { +if (!class_exists("ActivateProductPackages", false)) { /** - * + * The action used to activate product packages. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateLabelsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ActivateProductPackages extends ProductPackageAction { - /** - * @access public - * @var Label[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ActivateProductPackages"; /** * Gets the namesapce of this class @@ -3169,23 +2984,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("ActivateLabels", false)) { +if (!class_exists("ApiException", false)) { /** - * The action used for activating {@link Label} objects. + * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ActivateLabels extends LabelAction { + class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ActivateLabels"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; /** * Gets the namesapce of this class @@ -3203,30 +3024,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); - $this->LabelActionType = $LabelActionType; + $this->errors = $errors; + $this->message = $message; } } } -if (!class_exists("ApiException", false)) { +if (!class_exists("ArchiveProductPackages", false)) { /** - * Exception class for holding a list of service errors. + * The action used to archive product packages. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiException extends ApplicationException { + class ArchiveProductPackages extends ProductPackageAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; - - /** - * @access public - * @var ApiError[] - */ - public $errors; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ArchiveProductPackages"; /** * Gets the namesapce of this class @@ -3244,11 +3060,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct() { parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3258,11 +3071,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3287,10 +3100,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3300,11 +3112,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3329,10 +3141,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3342,11 +3153,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3371,25 +3182,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("DeactivateLabels", false)) { +if (!class_exists("DeactivateProductPackages", false)) { /** - * The action used for deactivating {@link Label} objects. + * The action used to de-activate product packages. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeactivateLabels extends LabelAction { + class DeactivateProductPackages extends ProductPackageAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeactivateLabels"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeactivateProductPackages"; /** * Gets the namesapce of this class @@ -3407,9 +3217,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($LabelActionType = null) { + public function __construct() { parent::__construct(); - $this->LabelActionType = $LabelActionType; } } @@ -3419,11 +3228,11 @@ public function __construct($LabelActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3448,10 +3257,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3461,11 +3269,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -3490,10 +3298,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -3503,11 +3310,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3532,70 +3339,74 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("LabelService", false)) { +if (!class_exists("ProductPackageService", false)) { /** - * LabelService + * ProductPackageService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelService extends DfpSoapClient { + class ProductPackageService extends DfpSoapClient { - const SERVICE_NAME = "LabelService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/LabelService"; + const SERVICE_NAME = "ProductPackageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ProductPackageService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/LabelService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ProductPackageService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( - "ActivateLabels" => "ActivateLabels", + "ObjectValue" => "ObjectValue", + "ActivateProductPackages" => "ActivateProductPackages", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", + "ArchiveProductPackages" => "ArchiveProductPackages", "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", - "CreativeWrapperError" => "CreativeWrapperError", + "CustomFieldValue" => "CustomFieldValue", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", - "DeactivateLabels" => "DeactivateLabels", + "DeactivateProductPackages" => "DeactivateProductPackages", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", - "LabelAction" => "LabelAction", - "Label" => "Label", - "LabelError" => "LabelError", - "LabelPage" => "LabelPage", "NotNullError" => "NotNullError", - "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", "PermissionError" => "PermissionError", + "ProductPackageAction" => "ProductPackageAction", + "ProductPackageActionError" => "ProductPackageActionError", + "ProductPackage" => "ProductPackage", + "ProductPackageItemError" => "ProductPackageItemError", + "ProductPackagePage" => "ProductPackagePage", + "ProductPackageRateCardAssociationError" => "ProductPackageRateCardAssociationError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", + "RangeError" => "RangeError", "ServerError" => "ServerError", "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", @@ -3605,43 +3416,39 @@ class LabelService extends DfpSoapClient { "StringLengthError" => "StringLengthError", "String_ValueMapEntry" => "String_ValueMapEntry", "TextValue" => "TextValue", - "TypeError" => "TypeError", + "UnarchiveProductPackages" => "UnarchiveProductPackages", "UniqueError" => "UniqueError", "UpdateResult" => "UpdateResult", "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", - "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", - "LabelError.Reason" => "LabelErrorReason", - "LabelType" => "LabelType", "NotNullError.Reason" => "NotNullErrorReason", - "NullError.Reason" => "NullErrorReason", - "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", + "ProductPackageActionError.Reason" => "ProductPackageActionErrorReason", + "ProductPackageItemError.Reason" => "ProductPackageItemErrorReason", + "ProductPackageRateCardAssociationError.Reason" => "ProductPackageRateCardAssociationErrorReason", + "ProductPackageStatus" => "ProductPackageStatus", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", + "RangeError.Reason" => "RangeErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", - "createLabel" => "CreateLabel", - "createLabelResponse" => "CreateLabelResponse", - "createLabels" => "CreateLabels", - "createLabelsResponse" => "CreateLabelsResponse", - "getLabel" => "GetLabel", - "getLabelResponse" => "GetLabelResponse", - "getLabelsByStatement" => "GetLabelsByStatement", - "getLabelsByStatementResponse" => "GetLabelsByStatementResponse", - "performLabelAction" => "PerformLabelAction", - "performLabelActionResponse" => "PerformLabelActionResponse", - "updateLabel" => "UpdateLabel", - "updateLabelResponse" => "UpdateLabelResponse", - "updateLabels" => "UpdateLabels", - "updateLabelsResponse" => "UpdateLabelsResponse", + "createProductPackages" => "CreateProductPackages", + "createProductPackagesResponse" => "CreateProductPackagesResponse", + "getProductPackagesByStatement" => "GetProductPackagesByStatement", + "getProductPackagesByStatementResponse" => "GetProductPackagesByStatementResponse", + "performProductPackageAction" => "PerformProductPackageAction", + "performProductPackageActionResponse" => "PerformProductPackageActionResponse", + "updateProductPackages" => "UpdateProductPackages", + "updateProductPackagesResponse" => "UpdateProductPackagesResponse", ); @@ -3656,48 +3463,20 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Creates a new {@link Label}. - * - * The following fields are required: - *

      - *
    • {@link Label#name}
    • - *
    • {@link Label#type}
    • - *
    - * - * @param label the label to create - * @return the label with its ID filled in - */ - public function createLabel($label) { - $args = new CreateLabel($label); - $result = $this->__soapCall("createLabel", array($args)); - return $result->rval; - } - /** - * Creates new {@link Label} objects. - * - * @param labels the labels to create - * @return the created labels with their IDs filled in - */ - public function createLabels($labels) { - $args = new CreateLabels($labels); - $result = $this->__soapCall("createLabels", array($args)); - return $result->rval; - } - /** - * Returns the {@link Label} uniquely identified by the given ID. + * Creates new {@link ProductPackage} objects. * - * @param labelId the ID of the label, which must already exist - * @return the {@code Label} uniquely identified by the given ID + * @param productPackages the product packages to create + * @return the persisted product packages with their ID filled in */ - public function getLabel($labelId) { - $args = new GetLabel($labelId); - $result = $this->__soapCall("getLabel", array($args)); + public function createProductPackages($productPackages) { + $args = new CreateProductPackages($productPackages); + $result = $this->__soapCall("createProductPackages", array($args)); return $result->rval; } /** - * Gets a {@link LabelPage} of {@link Label} objects that satisfy the - * given {@link Statement#query}. The following fields are supported for - * filtering: + * Gets a {@link ProductPackagePage} of {@link ProductPackage} objects + * that satisfy the filtering criteria specified by given {@link Statement#query}. + * The following fields are supported for filtering: * * * @@ -3705,70 +3484,61 @@ public function getLabel($labelId) { * * * - * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * * * - * - * + * + * + * + * + * + * * *
    {@code id}{@link Label#id}{@link ProductPackage#id}
    {@code type}{@link Label#type}{@code name}{@link ProductPackage#name}
    {@code name}{@link Label#name}{@code notes}{@link ProductPackage#notes}
    {@code description}{@link Label#description}{@code status}{@link ProductPackage#status}
    {@code isActive}{@link Label#isActive}{@code isArchived}{@link ProductPackage#isArchived}
    {@code lastModifiedDateTime}{@link ProductPackage#lastModifiedDateTime}
    * - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels. - * @return the labels that match the given filter + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product packages that match the given statement */ - public function getLabelsByStatement($filterStatement) { - $args = new GetLabelsByStatement($filterStatement); - $result = $this->__soapCall("getLabelsByStatement", array($args)); + public function getProductPackagesByStatement($statement) { + $args = new GetProductPackagesByStatement($statement); + $result = $this->__soapCall("getProductPackagesByStatement", array($args)); return $result->rval; } /** - * Performs actions on {@link Label} objects that match the given + * Performs actions on {@link ProductPackage} objects that match the given * {@link Statement#query}. * - * @param labelAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of labels + * @param action the action to perform + * @param statement a Publisher Query Language statement used to filter a set of product packages * @return the result of the action performed */ - public function performLabelAction($labelAction, $filterStatement) { - $args = new PerformLabelAction($labelAction, $filterStatement); - $result = $this->__soapCall("performLabelAction", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link Label}. - * - * @param label the label to update - * @return the updated label - */ - public function updateLabel($label) { - $args = new UpdateLabel($label); - $result = $this->__soapCall("updateLabel", array($args)); + public function performProductPackageAction($action, $statement) { + $args = new PerformProductPackageAction($action, $statement); + $result = $this->__soapCall("performProductPackageAction", array($args)); return $result->rval; } /** - * Updates the specified {@link Label} objects. + * Updates the specified {@link ProductPackage} objects. * - * @param labels the labels to update - * @return the updated labels + * @param productPackages the product packages to update + * @return the updated product packages */ - public function updateLabels($labels) { - $args = new UpdateLabels($labels); - $result = $this->__soapCall("updateLabels", array($args)); + public function updateProductPackages($productPackages) { + $args = new UpdateProductPackages($productPackages); + $result = $this->__soapCall("updateProductPackages", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201308/ProductService.php b/src/Google/Api/Ads/Dfp/v201502/ProductService.php similarity index 78% rename from src/Google/Api/Ads/Dfp/v201308/ProductService.php rename to src/Google/Api/Ads/Dfp/v201502/ProductService.php index e4bdaf0e0..c333d321f 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProductService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTargeting"; /** @@ -83,11 +83,11 @@ public function __construct($adUnitId = null, $includeDescendants = null) { *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -108,44 +108,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -162,11 +124,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -176,11 +137,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -205,13 +166,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -221,11 +181,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -234,44 +194,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -288,9 +210,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -302,11 +223,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -345,87 +266,15 @@ public function __construct($labelId = null, $isNegated = null) { } } -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - if (!class_exists("AuthenticationError", false)) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -450,13 +299,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -467,11 +315,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents bandwidth groups that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BandwidthGroupTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroupTargeting"; /** @@ -514,11 +362,11 @@ public function __construct($isTargeted = null, $bandwidthGroups = null) { /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -527,44 +375,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -581,9 +391,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -593,11 +402,11 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n /** * An error having to do with {@link BaseRate}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateError"; /** @@ -622,13 +431,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -639,11 +447,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents browser languages that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BrowserLanguageTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguageTargeting"; /** @@ -687,11 +495,11 @@ public function __construct($isTargeted = null, $browserLanguages = null) { * Represents browsers that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BrowserTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserTargeting"; /** @@ -730,24 +538,22 @@ public function __construct($isTargeted = null, $browsers = null) { } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -765,10 +571,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -778,11 +586,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -807,13 +615,142 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchyTargeting", false)) { + /** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingValueIds = null) { + $this->customTargetingValueIds = $customTargetingValueIds; + } + + } +} + +if (!class_exists("ContentTargeting", false)) { + /** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentTargeting"; + + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoContentBundleIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoContentBundleIds; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $targetedContentMetadata; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $excludedContentMetadata; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null, $targetedVideoContentBundleIds = null, $excludedVideoContentBundleIds = null, $targetedContentMetadata = null, $excludedContentMetadata = null) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + $this->targetedVideoContentBundleIds = $targetedVideoContentBundleIds; + $this->excludedVideoContentBundleIds = $excludedVideoContentBundleIds; + $this->targetedContentMetadata = $targetedContentMetadata; + $this->excludedContentMetadata = $excludedContentMetadata; } } @@ -828,11 +765,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * contain companions. Companions are only valid if the line item's environment * type is {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativePlaceholder { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativePlaceholder"; /** @@ -911,11 +848,11 @@ public function __construct($size = null, $companions = null, $appliedLabels = n * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -940,11 +877,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -954,11 +890,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -983,13 +919,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1000,11 +935,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -1029,13 +964,48 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("CustomCriteriaNode", false)) { + /** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { } } @@ -1045,11 +1015,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1099,11 +1069,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1118,23 +1088,168 @@ class DfpDateTime { */ public $hour; - /** - * @access public - * @var integer - */ - public $minute; + /** + * @access public + * @var integer + */ + public $minute; + + /** + * @access public + * @var integer + */ + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; + } + + } +} + +if (!class_exists("DeviceCapabilityTargeting", false)) { + /** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCapabilityTargeting"; + + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + } + + } +} + +if (!class_exists("DeviceCategoryTargeting", false)) { + /** + * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCategoryTargeting"; + + /** + * @access public + * @var Technology[] + */ + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } + + } +} + +if (!class_exists("DeviceManufacturerTargeting", false)) { + /** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceManufacturerTargeting"; /** * @access public - * @var integer + * @var boolean */ - public $second; + public $isTargeted; /** * @access public - * @var string + * @var Technology[] */ - public $timeZoneID; + public $deviceManufacturers; /** * Gets the namesapce of this class @@ -1152,12 +1267,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; + public function __construct($isTargeted = null, $deviceManufacturers = null) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; } } @@ -1168,11 +1280,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -1197,11 +1309,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -1212,11 +1323,11 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1241,13 +1352,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1258,11 +1368,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents a limit on the number of times a single viewer can be exposed to * the same {@link LineItem} in a specified time period. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FrequencyCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCap"; /** @@ -1326,11 +1436,11 @@ public function __construct($maxImpressions = null, $numTimeUnits = null, $timeU * York as one of the targeted locations * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GeoTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargeting"; /** @@ -1375,11 +1485,11 @@ public function __construct($targetedLocations = null, $excludedLocations = null * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1404,13 +1514,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1420,11 +1529,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargeting"; /** @@ -1477,11 +1586,11 @@ public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $t * the location will be represented as just the base class, otherwise it will be * sub-classed correctly. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpLocation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Location"; /** @@ -1494,40 +1603,69 @@ class DfpLocation { * @access public * @var string */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); + public $type; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * @access public + * @var integer */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $canonicalParentId; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - protected function getParameterMap() { - return $this->_parameterMap; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; } + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileCarrierTargeting"; + + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1544,42 +1682,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; + public function __construct($isTargeted = null, $mobileCarriers = null) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; } } } -if (!class_exists("MetroLocation", false)) { +if (!class_exists("MobileDeviceSubmodelTargeting", false)) { /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class MetroLocation extends DfpLocation { + class MobileDeviceSubmodelTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "MetroLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceSubmodelTargeting"; /** * @access public - * @var string + * @var Technology[] */ - public $metroCode; + public $targetedMobileDeviceSubmodels; /** * @access public - * @var string + * @var Technology[] */ - public $countryCode; + public $excludedMobileDeviceSubmodels; /** * Gets the namesapce of this class @@ -1597,33 +1729,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; + public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("MobileDeviceTargeting", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class MobileDeviceTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceTargeting"; /** * @access public - * @var tnsNotNullErrorReason + * @var Technology[] */ - public $reason; + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; /** * Gets the namesapce of this class @@ -1641,36 +1776,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("NotNullError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var string + * @var tnsNotNullErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1688,10 +1817,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1702,11 +1833,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { * Represents operating systems that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class OperatingSystemTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemTargeting"; /** @@ -1749,11 +1880,11 @@ public function __construct($isTargeted = null, $operatingSystems = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1778,65 +1909,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; } } @@ -1846,51 +1924,13 @@ public function __construct($postalCode = null, $countryCode = null, $id = null, /** * Represents the actions that can be performed on products. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductAction"; - /** - * @access public - * @var string - */ - public $ProductActionType; - private $_parameterMap = array( - "ProductAction.Type" => "ProductActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1907,8 +1947,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductActionType = null) { - $this->ProductActionType = $ProductActionType; + public function __construct() { } } @@ -1918,11 +1957,11 @@ public function __construct($ProductActionType = null) { /** * An error lists all error reasons associated with performing action on {@link Product} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductActionError"; /** @@ -1947,13 +1986,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1964,11 +2002,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@link ProposalLineItem Proposal line items} are created from products, * from which their properties are copied. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Product { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Product"; /** @@ -2116,11 +2154,11 @@ public function __construct($name = null, $status = null, $productType = null, $ /** * A catch-all error that lists all generic errors associated with Product. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductError"; /** @@ -2145,13 +2183,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2161,11 +2198,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link ProductDto} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductPage"; /** @@ -2217,11 +2254,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * {@link ProposalLineItem Proposal line items} created from {@link Product products} * of this template will have this criteria added to {@link ProposalLineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductTemplateTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateTargeting"; /** @@ -2254,12 +2291,30 @@ class ProductTemplateTargeting { */ public $allowPlacementTargetingCustomization; + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + /** * @access public * @var integer[] */ public $customizableCustomTargetingKeyIds; + /** + * @access public + * @var boolean + */ + public $allowAudienceSegmentTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $isAllCustomTargetingKeysCustomizable; + /** * @access public * @var UserDomainTargeting @@ -2320,6 +2375,78 @@ class ProductTemplateTargeting { */ public $allowOperatingSystemTargetingCustomization; + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCapabilityTargetingCustomization; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCategoryTargetingCustomization; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileCarrierTargetingCustomization; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileDeviceAndManufacturerTargetingCustomization; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2336,13 +2463,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customizableCustomTargetingKeyIds = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null) { + public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customTargeting = null, $customizableCustomTargetingKeyIds = null, $allowAudienceSegmentTargetingCustomization = null, $isAllCustomTargetingKeysCustomizable = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null, $deviceCapabilityTargeting = null, $allowDeviceCapabilityTargetingCustomization = null, $deviceCategoryTargeting = null, $allowDeviceCategoryTargetingCustomization = null, $mobileCarrierTargeting = null, $allowMobileCarrierTargetingCustomization = null, $deviceManufacturerTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $allowMobileDeviceAndManufacturerTargetingCustomization = null, $contentTargeting = null, $videoPositionTargeting = null) { $this->geoTargeting = $geoTargeting; $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; $this->inventoryTargeting = $inventoryTargeting; $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customTargeting = $customTargeting; $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->allowAudienceSegmentTargetingCustomization = $allowAudienceSegmentTargetingCustomization; + $this->isAllCustomTargetingKeysCustomizable = $isAllCustomTargetingKeysCustomizable; $this->userDomainTargeting = $userDomainTargeting; $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; @@ -2353,6 +2483,18 @@ public function __construct($geoTargeting = null, $allowGeoTargetingCustomizatio $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; $this->operatingSystemTargeting = $operatingSystemTargeting; $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->allowDeviceCapabilityTargetingCustomization = $allowDeviceCapabilityTargetingCustomization; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->allowDeviceCategoryTargetingCustomization = $allowDeviceCategoryTargetingCustomization; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->allowMobileCarrierTargetingCustomization = $allowMobileCarrierTargetingCustomization; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->allowMobileDeviceAndManufacturerTargetingCustomization = $allowMobileDeviceAndManufacturerTargetingCustomization; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; } } @@ -2363,11 +2505,11 @@ public function __construct($geoTargeting = null, $allowGeoTargetingCustomizatio * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2392,13 +2534,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2409,11 +2550,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2438,13 +2579,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2455,11 +2595,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2484,13 +2624,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2500,11 +2639,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -2529,62 +2668,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; } } @@ -2594,11 +2683,11 @@ public function __construct($regionCode = null, $id = null, $LocationType = null /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -2623,13 +2712,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2639,11 +2727,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2668,13 +2756,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2685,11 +2772,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2714,13 +2801,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2730,11 +2816,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -2759,13 +2845,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2777,11 +2862,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, *

    * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Size"; /** @@ -2831,11 +2916,11 @@ public function __construct($width = null, $height = null, $isAspectRatio = null /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -2850,12 +2935,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2872,10 +2951,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -2885,11 +2963,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -2960,11 +3038,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -3007,11 +3085,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -3036,13 +3114,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3052,11 +3129,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -3081,13 +3158,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3098,11 +3174,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -3145,11 +3221,11 @@ public function __construct($key = null, $value = null) { /** * Represents a technology entity that can be targeted. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Technology"; /** @@ -3164,44 +3240,6 @@ class Technology { */ public $name; - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3218,10 +3256,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -3231,11 +3268,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -3254,12 +3291,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3269,11 +3305,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -3292,12 +3328,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3307,11 +3342,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -3348,11 +3383,11 @@ public function __construct($numChanges = null) { * Provides line items the ability to target or exclude users visiting their * websites from a list of domains or subdomains. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserDomainTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargeting"; /** @@ -3395,51 +3430,198 @@ public function __construct($domains = null, $targeted = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPosition", false)) { + /** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition"; + /** * @access public - * @var string + * @var tnsVideoPositionType */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($positionType = null, $midrollIndex = null) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } + + } +} + +if (!class_exists("VideoPositionTargeting", false)) { + /** + * Represents positions within and around a video where ads can be targeted to. + *

    + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedPositions = null) { + $this->targetedPositions = $targetedPositions; } + } +} + +if (!class_exists("VideoPositionWithinPod", false)) { + /** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - protected function getParameterMap() { - return $this->_parameterMap; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; } + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTarget"; + + /** + * @access public + * @var VideoPosition + */ + public $videoPosition; + + /** + * @access public + * @var tnsVideoBumperType + */ + public $videoBumperType; + + /** + * @access public + * @var VideoPositionWithinPod + */ + public $videoPositionWithinPod; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -3456,8 +3638,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; } } @@ -3468,11 +3652,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -3504,11 +3688,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -3537,11 +3721,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseRateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateError.Reason"; /** @@ -3566,15 +3750,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -3604,11 +3821,11 @@ public function __construct() { * Descriptions of the types of sizes a creative can be. Not all creatives can * be described by a height-width pair, this provides additional context. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreativeSizeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativeSizeType"; /** @@ -3633,16 +3850,115 @@ public function __construct() { } } +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CustomFieldValueErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 */ - class CustomFieldValueErrorReason { + class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomFieldValueError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingError.Reason"; /** * Gets the namesapce of this class @@ -3666,16 +3982,16 @@ public function __construct() { } } -if (!class_exists("CustomTargetingErrorReason", false)) { +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { /** - * The reasons for the target error. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class CustomTargetingErrorReason { + class AudienceSegmentCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -3703,11 +4019,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -3736,11 +4052,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -3770,11 +4086,11 @@ public function __construct() { * {@code LineItemType} indicates the priority of a {@link LineItem}, determined * by the way in which impressions are reserved to be served for it. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class LineItemType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemType"; /** @@ -3803,11 +4119,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -3836,11 +4152,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -3869,11 +4185,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductActionError.Reason"; /** @@ -3902,11 +4218,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductError.Reason"; /** @@ -3935,11 +4251,11 @@ public function __construct() { /** * Describes the different statuses for {@link Product}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductStatus"; /** @@ -3968,11 +4284,11 @@ public function __construct() { /** * Describes the type of {@link Product}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductType"; /** @@ -4001,11 +4317,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -4034,11 +4350,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -4077,11 +4393,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -4110,11 +4426,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -4144,11 +4460,11 @@ public function __construct() { * Describes the type of event the advertiser is paying for. The values here correspond to the * values for the {@link LineItem#costType} field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RateType"; /** @@ -4177,11 +4493,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -4210,11 +4526,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -4243,11 +4559,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -4276,11 +4592,11 @@ public function __construct() { /** * Describes the roadblocking types. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RoadblockingType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RoadblockingType"; /** @@ -4309,11 +4625,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -4342,11 +4658,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -4375,11 +4691,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -4408,11 +4724,11 @@ public function __construct() { /** * Represent the possible time units for frequency capping. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TimeUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TimeUnit"; /** @@ -4437,6 +4753,75 @@ public function __construct() { } } +if (!class_exists("VideoBumperType", false)) { + /** + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GetProductsByStatement", false)) { /** * Gets a {@link ProductPage} of {@link Product} objects that satisfy the criteria specified by @@ -4514,11 +4899,11 @@ public function __construct() { * criteria over products * @return the products that match the given statement * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetProductsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4554,11 +4939,11 @@ public function __construct($statement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetProductsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4598,11 +4983,11 @@ public function __construct($rval = null) { * @param filterStatement a Publisher Query Language statement used to filter a set of products. * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformProductAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4645,11 +5030,11 @@ public function __construct($productAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformProductActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4681,26 +5066,26 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateProduct", false)) { +if (!class_exists("UpdateProducts", false)) { /** - * Updates the specified {@link Product}. + * Updates the specified {@link Product} objects. * Note non-updatable fields will not be backfilled. * - * @param product the product to update - * @return the updated product + * @param products the products to update + * @return the updated products * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateProduct { + class UpdateProducts { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Product + * @var Product[] */ - public $product; + public $products; /** * Gets the namesapce of this class @@ -4718,27 +5103,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($product = null) { - $this->product = $product; + public function __construct($products = null) { + $this->products = $products; } } } -if (!class_exists("UpdateProductResponse", false)) { +if (!class_exists("UpdateProductsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateProductResponse { + class UpdateProductsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Product + * @var Product[] */ public $rval; @@ -4765,66 +5150,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateProducts", false)) { - /** - * Updates the specified {@link Product} objects. - * Note non-updatable fields will not be backfilled. - * - * @param products the products to update - * @return the updated products - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateProducts { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Product[] - */ - public $products; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($products = null) { - $this->products = $products; - } - - } -} - -if (!class_exists("UpdateProductsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateProductsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var Product[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -4842,8 +5184,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -4853,11 +5195,11 @@ public function __construct($rval = null) { /** * The action used to activate products. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivateProducts extends ProductAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateProducts"; /** @@ -4876,9 +5218,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductActionType = null) { + public function __construct() { parent::__construct(); - $this->ProductActionType = $ProductActionType; } } @@ -4888,11 +5229,11 @@ public function __construct($ProductActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -4917,11 +5258,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -4931,11 +5271,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * The action used to archive products. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ArchiveProducts extends ProductAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ArchiveProducts"; /** @@ -4954,9 +5294,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductActionType = null) { + public function __construct() { parent::__construct(); - $this->ProductActionType = $ProductActionType; } } @@ -4967,11 +5306,11 @@ public function __construct($ProductActionType = null) { * Represents a group of bandwidths that are logically organized by some well * known generic names such as 'Cable' or 'DSL'. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BandwidthGroup extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroup"; /** @@ -4990,11 +5329,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5004,11 +5342,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -5033,10 +5371,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5046,11 +5383,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an internet browser. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Browser extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Browser"; /** @@ -5081,13 +5418,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5097,11 +5433,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $id = nu /** * Represents a Browser's language. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BrowserLanguage extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguage"; /** @@ -5120,49 +5456,78 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } } -if (!class_exists("CityLocation", false)) { +if (!class_exists("CustomCriteriaSet", false)) { /** - * Represents a city for geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class CityLocation extends DfpLocation { + class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CityLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet"; /** * @access public - * @var string + * @var tnsCustomCriteriaSetLogicalOperator */ - public $cityName; + public $logicalOperator; /** * @access public - * @var string + * @var CustomCriteriaNode[] */ - public $regionCode; + public $children; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $countryCode; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaLeaf"; /** * Gets the namesapce of this class @@ -5180,39 +5545,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { + public function __construct() { parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; } } } -if (!class_exists("CountryLocation", false)) { +if (!class_exists("AudienceSegmentCriteria", false)) { /** - * Represents a country for geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class CountryLocation extends DfpLocation { + class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CountryLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria"; /** * @access public - * @var string + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] */ - public $countryCode; + public $audienceSegmentIds; /** * Gets the namesapce of this class @@ -5230,11 +5591,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($countryCode = null, $id = null, $LocationType = null) { + public function __construct($operator = null, $audienceSegmentIds = null) { parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; } } @@ -5244,11 +5604,11 @@ public function __construct($countryCode = null, $id = null, $LocationType = nul /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -5273,10 +5633,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5286,11 +5645,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -5315,10 +5674,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5328,11 +5686,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used to deactivate products. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivateProducts extends ProductAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateProducts"; /** @@ -5351,9 +5709,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductActionType = null) { + public function __construct() { parent::__construct(); - $this->ProductActionType = $ProductActionType; } } @@ -5363,11 +5720,11 @@ public function __construct($ProductActionType = null) { /** * Represents a capability of a physical device. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeviceCapability extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapability"; /** @@ -5386,11 +5743,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5400,11 +5756,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents the category of a device. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeviceCategory extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategory"; /** @@ -5423,11 +5779,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5437,11 +5792,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a mobile device's manufacturer. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeviceManufacturer extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturer"; /** @@ -5460,11 +5815,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5475,11 +5829,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * Represents a mobile carrier. * Carrier targeting is only available to DFP mobile publishers. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class MobileCarrier extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrier"; /** @@ -5498,11 +5852,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5512,11 +5865,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a Mobile Device. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class MobileDevice extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDevice"; /** @@ -5541,12 +5894,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->manufacturerCriterionId = $manufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5556,11 +5908,11 @@ public function __construct($manufacturerCriterionId = null, $id = null, $name = /** * Represents a mobile device submodel. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class MobileDeviceSubmodel extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodel"; /** @@ -5591,13 +5943,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5607,11 +5958,11 @@ public function __construct($mobileDeviceCriterionId = null, $deviceManufacturer /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -5636,10 +5987,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5649,11 +5999,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an Operating System, such as Linux, Mac OS or Windows. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class OperatingSystem extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystem"; /** @@ -5672,11 +6022,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5686,11 +6035,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific version of an operating system. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class OperatingSystemVersion extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersion"; /** @@ -5727,14 +6076,54 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->microVersion = $microVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -5744,11 +6133,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $microVe /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -5773,10 +6162,66 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("CustomCriteria", false)) { + /** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; } } @@ -5786,25 +6231,26 @@ public function __construct($value = null, $ValueType = null) { /** * ProductService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ProductService extends DfpSoapClient { const SERVICE_NAME = "ProductService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ProductService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ProductService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ProductService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ProductService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateProducts" => "ActivateProducts", "AdUnitTargeting" => "AdUnitTargeting", "ApiError" => "ApiError", @@ -5813,7 +6259,6 @@ class ProductService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AppliedLabel" => "AppliedLabel", "ArchiveProducts" => "ArchiveProducts", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BandwidthGroup" => "BandwidthGroup", "BandwidthGroupTargeting" => "BandwidthGroupTargeting", @@ -5824,22 +6269,30 @@ class ProductService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", - "CountryLocation" => "CountryLocation", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentTargeting" => "ContentTargeting", "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateProducts" => "DeactivateProducts", "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", @@ -5847,18 +6300,18 @@ class ProductService extends DfpSoapClient { "InternalApiError" => "InternalApiError", "InventoryTargeting" => "InventoryTargeting", "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", "MobileDevice" => "MobileDevice", "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OperatingSystem" => "OperatingSystem", "OperatingSystemTargeting" => "OperatingSystemTargeting", "OperatingSystemVersion" => "OperatingSystemVersion", "PermissionError" => "PermissionError", - "PostalCodeLocation" => "PostalCodeLocation", "ProductAction" => "ProductAction", "ProductActionError" => "ProductActionError", "Product" => "Product", @@ -5869,11 +6322,11 @@ class ProductService extends DfpSoapClient { "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -5888,13 +6341,21 @@ class ProductService extends DfpSoapClient { "UpdateResult" => "UpdateResult", "UserDomainTargeting" => "UserDomainTargeting", "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "LineItemType" => "LineItemType", @@ -5917,12 +6378,12 @@ class ProductService extends DfpSoapClient { "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "TimeUnit" => "TimeUnit", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", "getProductsByStatement" => "GetProductsByStatement", "getProductsByStatementResponse" => "GetProductsByStatementResponse", "performProductAction" => "PerformProductAction", "performProductActionResponse" => "PerformProductActionResponse", - "updateProduct" => "UpdateProduct", - "updateProductResponse" => "UpdateProductResponse", "updateProducts" => "UpdateProducts", "updateProductsResponse" => "UpdateProductsResponse", ); @@ -6031,18 +6492,6 @@ public function performProductAction($productAction, $filterStatement) { $result = $this->__soapCall("performProductAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link Product}. - * Note non-updatable fields will not be backfilled. - * - * @param product the product to update - * @return the updated product - */ - public function updateProduct($product) { - $args = new UpdateProduct($product); - $result = $this->__soapCall("updateProduct", array($args)); - return $result->rval; - } /** * Updates the specified {@link Product} objects. * Note non-updatable fields will not be backfilled. diff --git a/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201502/ProductTemplateService.php similarity index 77% rename from src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php rename to src/Google/Api/Ads/Dfp/v201502/ProductTemplateService.php index c158cbb48..95f920347 100755 --- a/src/Google/Api/Ads/Dfp/v201306/ProductTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProductTemplateService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTargeting"; /** @@ -83,11 +83,11 @@ public function __construct($adUnitId = null, $includeDescendants = null) { *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -108,44 +108,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -162,11 +124,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -176,11 +137,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -205,13 +166,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -221,11 +181,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -234,44 +194,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -288,9 +210,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -302,11 +223,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -345,87 +266,15 @@ public function __construct($labelId = null, $isNegated = null) { } } -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; - } - - } -} - if (!class_exists("AuthenticationError", false)) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -450,13 +299,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -467,11 +315,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents bandwidth groups that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BandwidthGroupTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroupTargeting"; /** @@ -514,11 +362,11 @@ public function __construct($isTargeted = null, $bandwidthGroups = null) { /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -527,44 +375,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -581,9 +391,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -593,11 +402,11 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n /** * An error having to do with {@link BaseRate}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BaseRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseRateError"; /** @@ -622,13 +431,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -639,11 +447,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents browser languages that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BrowserLanguageTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguageTargeting"; /** @@ -687,11 +495,11 @@ public function __construct($isTargeted = null, $browserLanguages = null) { * Represents browsers that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BrowserTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserTargeting"; /** @@ -730,24 +538,22 @@ public function __construct($isTargeted = null, $browsers = null) { } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -765,10 +571,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -778,11 +586,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -807,13 +615,142 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchyTargeting", false)) { + /** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingValueIds = null) { + $this->customTargetingValueIds = $customTargetingValueIds; + } + + } +} + +if (!class_exists("ContentTargeting", false)) { + /** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentTargeting"; + + /** + * @access public + * @var integer[] + */ + public $targetedContentIds; + + /** + * @access public + * @var integer[] + */ + public $excludedContentIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoCategoryIds; + + /** + * @access public + * @var integer[] + */ + public $targetedVideoContentBundleIds; + + /** + * @access public + * @var integer[] + */ + public $excludedVideoContentBundleIds; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $targetedContentMetadata; + + /** + * @access public + * @var ContentMetadataKeyHierarchyTargeting[] + */ + public $excludedContentMetadata; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null, $targetedVideoContentBundleIds = null, $excludedVideoContentBundleIds = null, $targetedContentMetadata = null, $excludedContentMetadata = null) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + $this->targetedVideoContentBundleIds = $targetedVideoContentBundleIds; + $this->excludedVideoContentBundleIds = $excludedVideoContentBundleIds; + $this->targetedContentMetadata = $targetedContentMetadata; + $this->excludedContentMetadata = $excludedContentMetadata; } } @@ -828,11 +765,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * contain companions. Companions are only valid if the line item's environment * type is {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CreativePlaceholder { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativePlaceholder"; /** @@ -911,11 +848,11 @@ public function __construct($size = null, $companions = null, $appliedLabels = n * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -940,11 +877,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -954,11 +890,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -983,13 +919,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1000,11 +935,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -1029,13 +964,48 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("CustomCriteriaNode", false)) { + /** + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { } } @@ -1045,11 +1015,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1099,11 +1069,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1163,23 +1133,28 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } -if (!class_exists("DropDownCustomFieldValue", false)) { +if (!class_exists("DeviceCapabilityTargeting", false)) { /** - * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} - * of {@link CustomFieldDataType#DROP_DOWN} + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DropDownCustomFieldValue extends BaseCustomFieldValue { + class DeviceCapabilityTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DropDownCustomFieldValue"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCapabilityTargeting"; /** * @access public - * @var integer + * @var Technology[] */ - public $customFieldOptionId; + public $targetedDeviceCapabilities; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCapabilities; /** * Gets the namesapce of this class @@ -1197,33 +1172,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { - parent::__construct(); - $this->customFieldOptionId = $customFieldOptionId; - $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; } } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("DeviceCategoryTargeting", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * Represents device categories that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class DeviceCategoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCategoryTargeting"; /** * @access public - * @var tnsFeatureErrorReason + * @var Technology[] */ - public $reason; + public $targetedDeviceCategories; + + /** + * @access public + * @var Technology[] + */ + public $excludedDeviceCategories; /** * Gets the namesapce of this class @@ -1241,13 +1219,227 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; + } + + } +} + +if (!class_exists("DeviceManufacturerTargeting", false)) { + /** + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceManufacturerTargeting"; + + /** + * @access public + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $deviceManufacturers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $deviceManufacturers = null) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } + + } +} + +if (!class_exists("DropDownCustomFieldValue", false)) { + /** + * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} + * of {@link CustomFieldDataType#DROP_DOWN} + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FeatureError", false)) { + /** + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1258,11 +1450,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents a limit on the number of times a single viewer can be exposed to * the same {@link LineItem} in a specified time period. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FrequencyCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCap"; /** @@ -1312,11 +1504,11 @@ public function __construct($maxImpressions = null, $numTimeUnits = null, $timeU /** * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError"; /** @@ -1341,13 +1533,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1357,11 +1548,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Targeting validation errors that can be used by different targeting types. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GenericTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError"; /** @@ -1386,13 +1577,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1416,11 +1606,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * York as one of the targeted locations * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GeoTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargeting"; /** @@ -1464,11 +1654,11 @@ public function __construct($targetedLocations = null, $excludedLocations = null * Lists all errors associated with geographical targeting for a * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GeoTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError"; /** @@ -1493,13 +1683,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1511,11 +1700,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1540,13 +1729,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1556,11 +1744,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargeting"; /** @@ -1611,11 +1799,11 @@ public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $t * Lists all inventory errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError"; /** @@ -1640,13 +1828,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1659,11 +1846,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * the location will be represented as just the base class, otherwise it will be * sub-classed correctly. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpLocation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Location"; /** @@ -1676,39 +1863,19 @@ class DfpLocation { * @access public * @var string */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $type; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var integer */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $canonicalParentId; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var string */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $displayName; /** * Gets the namesapce of this class @@ -1726,42 +1893,38 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $LocationType = null) { + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { $this->id = $id; - $this->LocationType = $LocationType; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; } } } -if (!class_exists("MetroLocation", false)) { +if (!class_exists("MobileCarrierTargeting", false)) { /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class MetroLocation extends DfpLocation { + class MobileCarrierTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MetroLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileCarrierTargeting"; /** * @access public - * @var string + * @var boolean */ - public $metroCode; + public $isTargeted; /** * @access public - * @var string + * @var Technology[] */ - public $countryCode; + public $mobileCarriers; /** * Gets the namesapce of this class @@ -1779,33 +1942,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; + public function __construct($isTargeted = null, $mobileCarriers = null) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("MobileDeviceSubmodelTargeting", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class MobileDeviceSubmodelTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceSubmodelTargeting"; /** * @access public - * @var tnsNotNullErrorReason + * @var Technology[] */ - public $reason; + public $targetedMobileDeviceSubmodels; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDeviceSubmodels; /** * Gets the namesapce of this class @@ -1823,34 +1989,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("MobileDeviceTargeting", false)) { /** - * Errors associated with violation of a NOT NULL check. + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NullError extends ApiError { + class MobileDeviceTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceTargeting"; /** * @access public - * @var tnsNullErrorReason + * @var Technology[] */ - public $reason; + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; /** * Gets the namesapce of this class @@ -1868,36 +2036,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("NotNullError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var string + * @var tnsNotNullErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1915,25 +2077,71 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("OperatingSystemTargeting", false)) { +if (!class_exists("NullError", false)) { /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. + * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class OperatingSystemTargeting { + class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemTargeting"; /** @@ -1976,11 +2184,11 @@ public function __construct($isTargeted = null, $operatingSystems = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -2005,13 +2213,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2021,11 +2228,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Specifies what {@link Placement placements} are targeted. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PlacementTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PlacementTargeting"; /** @@ -2057,107 +2264,17 @@ public function __construct($targetedPlacementIds = null) { } } -if (!class_exists("PostalCodeLocation", false)) { - /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class PostalCodeLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - if (!class_exists("ProductTemplateAction", false)) { /** * Represents the actions that can be performed on product templates. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateAction"; - /** - * @access public - * @var string - */ - public $ProductTemplateActionType; - private $_parameterMap = array( - "ProductTemplateAction.Type" => "ProductTemplateActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2174,8 +2291,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductTemplateActionType = null) { - $this->ProductTemplateActionType = $ProductTemplateActionType; + public function __construct() { } } @@ -2186,11 +2302,11 @@ public function __construct($ProductTemplateActionType = null) { * An error lists all error reasons associated with performing action on * {@link ProductTemplate} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateActionError"; /** @@ -2215,13 +2331,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2235,11 +2350,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * used to create {@link ProposalLineItem proposal line items} so that almost all attributes * in the product template are properties of the proposal line item. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplate { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplate"; /** @@ -2356,6 +2471,12 @@ class ProductTemplate { */ public $customFieldValues; + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2372,7 +2493,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $creationDateTime = null, $lastModifiedDateTime = null, $description = null, $nameMacro = null, $status = null, $productType = null, $creatorId = null, $rateType = null, $roadblockingType = null, $creativePlaceholders = null, $lineItemType = null, $priority = null, $frequencyCaps = null, $allowFrequencyCapsCustomization = null, $productSegmentation = null, $targeting = null, $customFieldValues = null) { + public function __construct($id = null, $name = null, $creationDateTime = null, $lastModifiedDateTime = null, $description = null, $nameMacro = null, $status = null, $productType = null, $creatorId = null, $rateType = null, $roadblockingType = null, $creativePlaceholders = null, $lineItemType = null, $priority = null, $frequencyCaps = null, $allowFrequencyCapsCustomization = null, $productSegmentation = null, $targeting = null, $customFieldValues = null, $environmentType = null) { $this->id = $id; $this->name = $name; $this->creationDateTime = $creationDateTime; @@ -2392,6 +2513,7 @@ public function __construct($id = null, $name = null, $creationDateTime = null, $this->productSegmentation = $productSegmentation; $this->targeting = $targeting; $this->customFieldValues = $customFieldValues; + $this->environmentType = $environmentType; } } @@ -2401,11 +2523,11 @@ public function __construct($id = null, $name = null, $creationDateTime = null, /** * A catch-all error that lists all generic errors associated with ProductTemplate. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateError"; /** @@ -2430,13 +2552,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2446,11 +2567,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link ProductTemplate} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplatePage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplatePage"; /** @@ -2506,11 +2627,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * A product with 3 segmentations with 2 segments for each will produce {@code 2 x 2 x 2 = 8} * products. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductSegmentation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductSegmentation"; /** @@ -2531,6 +2652,12 @@ class ProductSegmentation { */ public $placementSegment; + /** + * @access public + * @var CustomCriteria[] + */ + public $customTargetingSegment; + /** * @access public * @var UserDomainTargeting @@ -2561,6 +2688,48 @@ class ProductSegmentation { */ public $operatingSystemSegment; + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierSegment; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilitySegment; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategorySegment; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerSegment; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceSegment; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelSegment; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionSegment; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2577,15 +2746,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($geoSegment = null, $adUnitSegments = null, $placementSegment = null, $userDomainSegment = null, $bandwidthSegment = null, $browserSegment = null, $browserLanguageSegment = null, $operatingSystemSegment = null) { + public function __construct($geoSegment = null, $adUnitSegments = null, $placementSegment = null, $customTargetingSegment = null, $userDomainSegment = null, $bandwidthSegment = null, $browserSegment = null, $browserLanguageSegment = null, $operatingSystemSegment = null, $mobileCarrierSegment = null, $deviceCapabilitySegment = null, $deviceCategorySegment = null, $deviceManufacturerSegment = null, $mobileDeviceSegment = null, $mobileDeviceSubmodelSegment = null, $videoPositionSegment = null) { $this->geoSegment = $geoSegment; $this->adUnitSegments = $adUnitSegments; $this->placementSegment = $placementSegment; + $this->customTargetingSegment = $customTargetingSegment; $this->userDomainSegment = $userDomainSegment; $this->bandwidthSegment = $bandwidthSegment; $this->browserSegment = $browserSegment; $this->browserLanguageSegment = $browserLanguageSegment; $this->operatingSystemSegment = $operatingSystemSegment; + $this->mobileCarrierSegment = $mobileCarrierSegment; + $this->deviceCapabilitySegment = $deviceCapabilitySegment; + $this->deviceCategorySegment = $deviceCategorySegment; + $this->deviceManufacturerSegment = $deviceManufacturerSegment; + $this->mobileDeviceSegment = $mobileDeviceSegment; + $this->mobileDeviceSubmodelSegment = $mobileDeviceSubmodelSegment; + $this->videoPositionSegment = $videoPositionSegment; } } @@ -2597,11 +2774,11 @@ public function __construct($geoSegment = null, $adUnitSegments = null, $placeme * {@link ProposalLineItem Proposal line items} created from {@link Product products} * of this template will have this criteria added to {@link ProposalLineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateTargeting"; /** @@ -2634,12 +2811,30 @@ class ProductTemplateTargeting { */ public $allowPlacementTargetingCustomization; + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + /** * @access public * @var integer[] */ public $customizableCustomTargetingKeyIds; + /** + * @access public + * @var boolean + */ + public $allowAudienceSegmentTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $isAllCustomTargetingKeysCustomizable; + /** * @access public * @var UserDomainTargeting @@ -2700,6 +2895,78 @@ class ProductTemplateTargeting { */ public $allowOperatingSystemTargetingCustomization; + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCapabilityTargetingCustomization; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCategoryTargetingCustomization; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileCarrierTargetingCustomization; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileDeviceAndManufacturerTargetingCustomization; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2716,13 +2983,16 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customizableCustomTargetingKeyIds = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null) { + public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customTargeting = null, $customizableCustomTargetingKeyIds = null, $allowAudienceSegmentTargetingCustomization = null, $isAllCustomTargetingKeysCustomizable = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null, $deviceCapabilityTargeting = null, $allowDeviceCapabilityTargetingCustomization = null, $deviceCategoryTargeting = null, $allowDeviceCategoryTargetingCustomization = null, $mobileCarrierTargeting = null, $allowMobileCarrierTargetingCustomization = null, $deviceManufacturerTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $allowMobileDeviceAndManufacturerTargetingCustomization = null, $contentTargeting = null, $videoPositionTargeting = null) { $this->geoTargeting = $geoTargeting; $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; $this->inventoryTargeting = $inventoryTargeting; $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customTargeting = $customTargeting; $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->allowAudienceSegmentTargetingCustomization = $allowAudienceSegmentTargetingCustomization; + $this->isAllCustomTargetingKeysCustomizable = $isAllCustomTargetingKeysCustomizable; $this->userDomainTargeting = $userDomainTargeting; $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; @@ -2733,6 +3003,18 @@ public function __construct($geoTargeting = null, $allowGeoTargetingCustomizatio $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; $this->operatingSystemTargeting = $operatingSystemTargeting; $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->allowDeviceCapabilityTargetingCustomization = $allowDeviceCapabilityTargetingCustomization; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->allowDeviceCategoryTargetingCustomization = $allowDeviceCategoryTargetingCustomization; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->allowMobileCarrierTargetingCustomization = $allowMobileCarrierTargetingCustomization; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->allowMobileDeviceAndManufacturerTargetingCustomization = $allowMobileDeviceAndManufacturerTargetingCustomization; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; } } @@ -2743,11 +3025,11 @@ public function __construct($geoTargeting = null, $allowGeoTargetingCustomizatio * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2772,13 +3054,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2789,11 +3070,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2818,13 +3099,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2835,11 +3115,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2864,13 +3144,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2880,11 +3159,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -2909,62 +3188,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RegionLocation", false)) { - /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class RegionLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegionLocation"; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($regionCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; } } @@ -2974,11 +3203,11 @@ public function __construct($regionCode = null, $id = null, $LocationType = null /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -3003,13 +3232,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3019,11 +3247,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -3048,13 +3276,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3065,11 +3292,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -3094,13 +3321,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3110,11 +3336,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -3139,13 +3365,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3157,11 +3382,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, *

    * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Size"; /** @@ -3211,11 +3436,11 @@ public function __construct($width = null, $height = null, $isAspectRatio = null /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -3230,12 +3455,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3252,10 +3471,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -3265,11 +3483,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -3340,11 +3558,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -3387,11 +3605,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -3416,13 +3634,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3432,11 +3649,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -3461,13 +3678,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3478,11 +3694,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -3493,9 +3709,464 @@ class String_ValueMapEntry { /** * @access public - * @var Value + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("Technology", false)) { + /** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UnarchiveProductTemplates", false)) { + /** + * The action used for unarchiving {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UnarchiveProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnarchiveProductTemplates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("UserDomainTargeting", false)) { + /** + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargeting"; + + /** + * @access public + * @var string[] + */ + public $domains; + + /** + * @access public + * @var boolean + */ + public $targeted; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($domains = null, $targeted = null) { + $this->domains = $domains; + $this->targeted = $targeted; + } + + } +} + +if (!class_exists("UserDomainTargetingError", false)) { + /** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPosition", false)) { + /** + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition"; + + /** + * @access public + * @var tnsVideoPositionType + */ + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($positionType = null, $midrollIndex = null) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; + } + + } +} + +if (!class_exists("VideoPositionTargeting", false)) { + /** + * Represents positions within and around a video where ads can be targeted to. + *

    + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedPositions = null) { + $this->targetedPositions = $targetedPositions; + } + + } +} + +if (!class_exists("VideoPositionWithinPod", false)) { + /** + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer */ - public $value; + public $index; /** * Gets the namesapce of this class @@ -3513,74 +4184,41 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; + public function __construct($index = null) { + $this->index = $index; } } } -if (!class_exists("Technology", false)) { +if (!class_exists("VideoPositionTarget", false)) { /** - * Represents a technology entity that can be targeted. + * Represents the options for targetable positions within a video. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Technology { + class VideoPositionTarget { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Technology"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTarget"; /** * @access public - * @var integer + * @var VideoPosition */ - public $id; + public $videoPosition; /** * @access public - * @var string + * @var tnsVideoBumperType */ - public $name; + public $videoBumperType; /** * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var VideoPositionWithinPod */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $videoPositionWithinPod; /** * Gets the namesapce of this class @@ -3598,25 +4236,26 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; + public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; } } } -if (!class_exists("TypeError", false)) { +if (!class_exists("ApiVersionErrorReason", false)) { /** - * An error for a field which is an invalid type. + * Indicates that the operation is not allowed in the version the request + * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class TypeError extends ApiError { + class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TypeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; /** * Gets the namesapce of this class @@ -3634,27 +4273,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("UniqueError", false)) { +if (!class_exists("AuthenticationErrorReason", false)) { /** - * An error for a field which must satisfy a uniqueness constraint + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UniqueError extends ApiError { + class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; /** * Gets the namesapce of this class @@ -3672,33 +4309,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("UpdateResult", false)) { +if (!class_exists("BaseRateErrorReason", false)) { /** - * Represents the result of performing an action on objects. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; + class BaseRateErrorReason { - /** - * @access public - * @var integer - */ - public $numChanges; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BaseRateError.Reason"; /** * Gets the namesapce of this class @@ -3716,36 +4342,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; + public function __construct() { } } } -if (!class_exists("UserDomainTargeting", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargeting"; + class CollectionSizeErrorReason { - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -3763,30 +4375,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; + public function __construct() { } } } -if (!class_exists("UserDomainTargetingError", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * Lists all errors related to user domain targeting for a line item. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError"; + class CommonErrorReason { - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -3804,66 +4408,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Value", false)) { +if (!class_exists("CreativeSizeType", false)) { /** - * {@code Value} represents a value. + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; - - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + class CreativeSizeType { - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeSizeType"; /** * Gets the namesapce of this class @@ -3881,24 +4442,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("CustomCriteriaComparisonOperator", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class CustomCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -3922,19 +4481,16 @@ public function __construct() { } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * Specifies the available logical operators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class CustomCriteriaSetLogicalOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; /** * Gets the namesapce of this class @@ -3958,16 +4514,16 @@ public function __construct() { } } -if (!class_exists("BaseRateErrorReason", false)) { +if (!class_exists("CustomFieldValueErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class BaseRateErrorReason { + class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseRateError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError.Reason"; /** * Gets the namesapce of this class @@ -3991,16 +4547,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("CustomTargetingErrorReason", false)) { /** - * Describes reasons for common errors + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CommonErrorReason { + class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingError.Reason"; /** * Gets the namesapce of this class @@ -4024,17 +4580,16 @@ public function __construct() { } } -if (!class_exists("CreativeSizeType", false)) { +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreativeSizeType { + class AudienceSegmentCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CreativeSizeType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -4058,16 +4613,16 @@ public function __construct() { } } -if (!class_exists("CustomFieldValueErrorReason", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CustomFieldValueErrorReason { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomFieldValueError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -4091,16 +4646,16 @@ public function __construct() { } } -if (!class_exists("CustomTargetingErrorReason", false)) { +if (!class_exists("EnvironmentType", false)) { /** - * The reasons for the target error. + * Enum for the valid environments in which ads can be shown. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CustomTargetingErrorReason { + class EnvironmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EnvironmentType"; /** * Gets the namesapce of this class @@ -4128,11 +4683,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -4161,11 +4716,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError.Reason"; /** @@ -4194,11 +4749,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GenericTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError.Reason"; /** @@ -4227,11 +4782,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GeoTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError.Reason"; /** @@ -4260,11 +4815,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -4293,11 +4848,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError.Reason"; /** @@ -4327,11 +4882,11 @@ public function __construct() { * {@code LineItemType} indicates the priority of a {@link LineItem}, determined * by the way in which impressions are reserved to be served for it. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LineItemType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemType"; /** @@ -4360,11 +4915,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -4393,11 +4948,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -4426,11 +4981,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -4459,11 +5014,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateActionError.Reason"; /** @@ -4492,11 +5047,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateError.Reason"; /** @@ -4525,11 +5080,11 @@ public function __construct() { /** * Describes the different statuses for ProductTemplate. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductTemplateStatus"; /** @@ -4558,11 +5113,11 @@ public function __construct() { /** * Describes the type of {@link Product}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductType"; /** @@ -4591,11 +5146,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -4624,11 +5179,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -4667,11 +5222,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -4700,11 +5255,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -4734,11 +5289,11 @@ public function __construct() { * Describes the type of event the advertiser is paying for. The values here correspond to the * values for the {@link LineItem#costType} field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RateType"; /** @@ -4767,11 +5322,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -4800,11 +5355,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -4833,11 +5388,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -4866,11 +5421,11 @@ public function __construct() { /** * Describes the roadblocking types. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RoadblockingType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RoadblockingType"; /** @@ -4899,11 +5454,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -4932,11 +5487,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -4965,11 +5520,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -4998,11 +5553,11 @@ public function __construct() { /** * Represent the possible time units for frequency capping. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TimeUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TimeUnit"; /** @@ -5029,111 +5584,14 @@ public function __construct() { if (!class_exists("UserDomainTargetingErrorReason", false)) { /** - * {@link ApiErrorReason} enum for user domain targeting error. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UserDomainTargetingErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CreateProductTemplate", false)) { - /** - * Creates a new {@link ProductTemplate}. - * - * The following fields are required: - *
      - *
    • {@link ProductTemplate#name}
    • - *
    • {@link ProductTemplate#nameMacro}
    • - *
    • {@link ProductTemplate#productType}
    • - *
    • {@link ProductTemplate#rateType}
    • - *
    • {@link ProductTemplate#creativePlaceholders} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
    • - *
    • {@link ProductTemplate#lineItemType} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
    • - *
    • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is - * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} - * is not specified)
    • - *
    - * - * @param productTemplate the product template to create - * @return the persisted product template with tis ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CreateProductTemplate { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate - */ - public $productTemplate; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplate = null) { - $this->productTemplate = $productTemplate; - } - - } -} - -if (!class_exists("CreateProductTemplateResponse", false)) { - /** - * + * {@link ApiErrorReason} enum for user domain targeting error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateProductTemplateResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class UserDomainTargetingErrorReason { - /** - * @access public - * @var ProductTemplate - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5151,32 +5609,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("CreateProductTemplates", false)) { +if (!class_exists("VideoBumperType", false)) { /** - * Creates new {@link ProductTemplate} objects. - * - * @param productTemplates the productTemplates to create - * @return the persisted product templates with their Ids filled in + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateProductTemplates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class VideoBumperType { - /** - * @access public - * @var ProductTemplate[] - */ - public $productTemplates; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoBumperType"; /** * Gets the namesapce of this class @@ -5194,29 +5645,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($productTemplates = null) { - $this->productTemplates = $productTemplates; + public function __construct() { } } } -if (!class_exists("CreateProductTemplatesResponse", false)) { +if (!class_exists("VideoPositionType", false)) { /** - * + * Represents a targetable position within a video. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateProductTemplatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class VideoPositionType { - /** - * @access public - * @var ProductTemplate[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition.Type"; /** * Gets the namesapce of this class @@ -5234,33 +5678,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("GetProductTemplate", false)) { +if (!class_exists("CreateProductTemplates", false)) { /** - * Returns the {@link ProductTemplate} uniquely identified by the given ID. + * Creates new {@link ProductTemplate} objects. * - * @param productTemplateId the ID of the product template, which must already - * exist - * @return the {@code ProductTemplate} uniquely identified by the given ID + * @param productTemplates the productTemplates to create + * @return the persisted product templates with their Ids filled in * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetProductTemplate { + class CreateProductTemplates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var integer + * @var ProductTemplate[] */ - public $productTemplateId; + public $productTemplates; /** * Gets the namesapce of this class @@ -5278,27 +5720,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($productTemplateId = null) { - $this->productTemplateId = $productTemplateId; + public function __construct($productTemplates = null) { + $this->productTemplates = $productTemplates; } } } -if (!class_exists("GetProductTemplateResponse", false)) { +if (!class_exists("CreateProductTemplatesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetProductTemplateResponse { + class CreateProductTemplatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ProductTemplate + * @var ProductTemplate[] */ public $rval; @@ -5377,11 +5819,11 @@ public function __construct($rval = null) { * filtering criteria over productTemplates * @return the productTemplates that match the given statement * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetProductTemplatesByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5417,11 +5859,11 @@ public function __construct($statement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetProductTemplatesByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5463,11 +5905,11 @@ public function __construct($rval = null) { * a set of product templates * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformProductTemplateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5510,11 +5952,11 @@ public function __construct($action = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformProductTemplateActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -5546,25 +5988,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateProductTemplate", false)) { +if (!class_exists("UpdateProductTemplates", false)) { /** - * Updates the specified {@link ProductTemplate}. + * Updates the specified {@link ProductTemplate} objects. * - * @param productTemplate the product template to update - * @return the updated product template + * @param productTemplates the product templates to update + * @return the updated product templates * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateProductTemplate { + class UpdateProductTemplates { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ProductTemplate + * @var ProductTemplate[] */ - public $productTemplate; + public $productTemplates; /** * Gets the namesapce of this class @@ -5582,27 +6024,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($productTemplate = null) { - $this->productTemplate = $productTemplate; + public function __construct($productTemplates = null) { + $this->productTemplates = $productTemplates; } } } -if (!class_exists("UpdateProductTemplateResponse", false)) { +if (!class_exists("UpdateProductTemplatesResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateProductTemplateResponse { + class UpdateProductTemplatesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ProductTemplate + * @var ProductTemplate[] */ public $rval; @@ -5629,65 +6071,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateProductTemplates", false)) { - /** - * Updates the specified {@link ProductTemplate} objects. - * - * @param productTemplates the product templates to update - * @return the updated product templates - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UpdateProductTemplates { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ProductTemplate[] - */ - public $productTemplates; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($productTemplates = null) { - $this->productTemplates = $productTemplates; - } - - } -} - -if (!class_exists("UpdateProductTemplatesResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateProductTemplatesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var ProductTemplate[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -5705,8 +6105,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -5716,11 +6116,11 @@ public function __construct($rval = null) { /** * The action used for activating product templates. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ActivateProductTemplates extends ProductTemplateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateProductTemplates"; /** @@ -5739,9 +6139,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductTemplateActionType = null) { + public function __construct() { parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; } } @@ -5751,11 +6150,11 @@ public function __construct($ProductTemplateActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -5780,26 +6179,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("ArchiveProducTemplates", false)) { +if (!class_exists("ArchiveProductTemplates", false)) { /** * The action used for archiving product template. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ArchiveProducTemplates extends ProductTemplateAction { + class ArchiveProductTemplates extends ProductTemplateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ArchiveProducTemplates"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ArchiveProductTemplates"; /** * Gets the namesapce of this class @@ -5817,9 +6215,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductTemplateActionType = null) { + public function __construct() { parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; } } @@ -5830,11 +6227,11 @@ public function __construct($ProductTemplateActionType = null) { * Represents a group of bandwidths that are logically organized by some well * known generic names such as 'Cable' or 'DSL'. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BandwidthGroup extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroup"; /** @@ -5853,11 +6250,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5867,11 +6263,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -5896,10 +6292,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5909,11 +6304,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an internet browser. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Browser extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Browser"; /** @@ -5944,13 +6339,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -5960,11 +6354,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $id = nu /** * Represents a Browser's language. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BrowserLanguage extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguage"; /** @@ -5983,49 +6377,78 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } } -if (!class_exists("CityLocation", false)) { +if (!class_exists("CustomCriteriaSet", false)) { /** - * Represents a city for geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CityLocation extends DfpLocation { + class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CityLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet"; /** * @access public - * @var string + * @var tnsCustomCriteriaSetLogicalOperator */ - public $cityName; + public $logicalOperator; /** * @access public - * @var string + * @var CustomCriteriaNode[] */ - public $regionCode; + public $children; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $countryCode; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaLeaf"; /** * Gets the namesapce of this class @@ -6043,39 +6466,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { + public function __construct() { parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; } } } -if (!class_exists("CountryLocation", false)) { +if (!class_exists("AudienceSegmentCriteria", false)) { /** - * Represents a country for geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CountryLocation extends DfpLocation { + class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CountryLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria"; /** * @access public - * @var string + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] */ - public $countryCode; + public $audienceSegmentIds; /** * Gets the namesapce of this class @@ -6093,11 +6512,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($countryCode = null, $id = null, $LocationType = null) { + public function __construct($operator = null, $audienceSegmentIds = null) { parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; } } @@ -6107,11 +6525,11 @@ public function __construct($countryCode = null, $id = null, $LocationType = nul /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -6136,10 +6554,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6149,11 +6566,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -6178,10 +6595,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6191,11 +6607,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used for deactivating product templates. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeactivateProductTemplates extends ProductTemplateAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateProductTemplates"; /** @@ -6214,9 +6630,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProductTemplateActionType = null) { + public function __construct() { parent::__construct(); - $this->ProductTemplateActionType = $ProductTemplateActionType; } } @@ -6226,11 +6641,11 @@ public function __construct($ProductTemplateActionType = null) { /** * Represents a capability of a physical device. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeviceCapability extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapability"; /** @@ -6249,11 +6664,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6263,11 +6677,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents the category of a device. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeviceCategory extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategory"; /** @@ -6286,11 +6700,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6300,11 +6713,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a mobile device's manufacturer. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeviceManufacturer extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturer"; /** @@ -6323,11 +6736,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6338,11 +6750,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * Represents a mobile carrier. * Carrier targeting is only available to DFP mobile publishers. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MobileCarrier extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrier"; /** @@ -6361,11 +6773,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6375,11 +6786,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a Mobile Device. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MobileDevice extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDevice"; /** @@ -6404,12 +6815,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->manufacturerCriterionId = $manufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6419,11 +6829,11 @@ public function __construct($manufacturerCriterionId = null, $id = null, $name = /** * Represents a mobile device submodel. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MobileDeviceSubmodel extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodel"; /** @@ -6454,13 +6864,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6470,11 +6879,11 @@ public function __construct($mobileDeviceCriterionId = null, $deviceManufacturer /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -6499,10 +6908,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6512,11 +6920,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an Operating System, such as Linux, Mac OS or Windows. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class OperatingSystem extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystem"; /** @@ -6535,11 +6943,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6549,11 +6956,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific version of an operating system. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class OperatingSystemVersion extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersion"; /** @@ -6590,14 +6997,54 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->microVersion = $microVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -6607,11 +7054,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $microVe /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -6636,10 +7083,66 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("CustomCriteria", false)) { + /** + * A {@link CustomCriteria} object is used to perform custom criteria targeting + * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} + * or {@link CustomTargetingKey.Type#FREEFORM}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @access public + * @var integer + */ + public $keyId; + + /** + * @access public + * @var integer[] + */ + public $valueIds; + + /** + * @access public + * @var tnsCustomCriteriaComparisonOperator + */ + public $operator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; } } @@ -6649,25 +7152,26 @@ public function __construct($value = null, $ValueType = null) { /** * ProductTemplateService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ProductTemplateService extends DfpSoapClient { const SERVICE_NAME = "ProductTemplateService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ProductTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ProductTemplateService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ProductTemplateService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ProductTemplateService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateProductTemplates" => "ActivateProductTemplates", "AdUnitTargeting" => "AdUnitTargeting", "ApiError" => "ApiError", @@ -6675,8 +7179,7 @@ class ProductTemplateService extends DfpSoapClient { "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AppliedLabel" => "AppliedLabel", - "ArchiveProducTemplates" => "ArchiveProducTemplates", - "Authentication" => "Authentication", + "ArchiveProductTemplates" => "ArchiveProductTemplates", "AuthenticationError" => "AuthenticationError", "BandwidthGroup" => "BandwidthGroup", "BandwidthGroupTargeting" => "BandwidthGroupTargeting", @@ -6687,23 +7190,33 @@ class ProductTemplateService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", - "CountryLocation" => "CountryLocation", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentTargeting" => "ContentTargeting", "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateProductTemplates" => "DeactivateProductTemplates", "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", @@ -6714,20 +7227,20 @@ class ProductTemplateService extends DfpSoapClient { "InventoryTargeting" => "InventoryTargeting", "InventoryTargetingError" => "InventoryTargetingError", "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", "MobileDevice" => "MobileDevice", "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OperatingSystem" => "OperatingSystem", "OperatingSystemTargeting" => "OperatingSystemTargeting", "OperatingSystemVersion" => "OperatingSystemVersion", "PermissionError" => "PermissionError", "PlacementTargeting" => "PlacementTargeting", - "PostalCodeLocation" => "PostalCodeLocation", "ProductTemplateAction" => "ProductTemplateAction", "ProductTemplateActionError" => "ProductTemplateActionError", "ProductTemplate" => "ProductTemplate", @@ -6739,11 +7252,11 @@ class ProductTemplateService extends DfpSoapClient { "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", "RangeError" => "RangeError", - "RegionLocation" => "RegionLocation", "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -6754,18 +7267,29 @@ class ProductTemplateService extends DfpSoapClient { "Technology" => "Technology", "TextValue" => "TextValue", "TypeError" => "TypeError", + "UnarchiveProductTemplates" => "UnarchiveProductTemplates", "UniqueError" => "UniqueError", "UpdateResult" => "UpdateResult", "UserDomainTargeting" => "UserDomainTargeting", "UserDomainTargetingError" => "UserDomainTargetingError", "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", @@ -6794,18 +7318,14 @@ class ProductTemplateService extends DfpSoapClient { "StringLengthError.Reason" => "StringLengthErrorReason", "TimeUnit" => "TimeUnit", "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", - "createProductTemplate" => "CreateProductTemplate", - "createProductTemplateResponse" => "CreateProductTemplateResponse", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", "createProductTemplates" => "CreateProductTemplates", "createProductTemplatesResponse" => "CreateProductTemplatesResponse", - "getProductTemplate" => "GetProductTemplate", - "getProductTemplateResponse" => "GetProductTemplateResponse", "getProductTemplatesByStatement" => "GetProductTemplatesByStatement", "getProductTemplatesByStatementResponse" => "GetProductTemplatesByStatementResponse", "performProductTemplateAction" => "PerformProductTemplateAction", "performProductTemplateActionResponse" => "PerformProductTemplateActionResponse", - "updateProductTemplate" => "UpdateProductTemplate", - "updateProductTemplateResponse" => "UpdateProductTemplateResponse", "updateProductTemplates" => "UpdateProductTemplates", "updateProductTemplatesResponse" => "UpdateProductTemplatesResponse", ); @@ -6821,32 +7341,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link ProductTemplate}. - * - * The following fields are required: - *
      - *
    • {@link ProductTemplate#name}
    • - *
    • {@link ProductTemplate#nameMacro}
    • - *
    • {@link ProductTemplate#productType}
    • - *
    • {@link ProductTemplate#rateType}
    • - *
    • {@link ProductTemplate#creativePlaceholders} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
    • - *
    • {@link ProductTemplate#lineItemType} - * (only when {@link ProductTemplate#productType} is {@link ProductType#DFP})
    • - *
    • {@link ProductTemplate#targeting} (only if {@link ProductTemplate#productType} is - * {@link ProductType#DFP} and {@link ProductTemplate#productSegmentation} - * is not specified)
    • - *
    - * - * @param productTemplate the product template to create - * @return the persisted product template with tis ID filled in - */ - public function createProductTemplate($productTemplate) { - $args = new CreateProductTemplate($productTemplate); - $result = $this->__soapCall("createProductTemplate", array($args)); - return $result->rval; - } /** * Creates new {@link ProductTemplate} objects. * @@ -6858,18 +7352,6 @@ public function createProductTemplates($productTemplates) { $result = $this->__soapCall("createProductTemplates", array($args)); return $result->rval; } - /** - * Returns the {@link ProductTemplate} uniquely identified by the given ID. - * - * @param productTemplateId the ID of the product template, which must already - * exist - * @return the {@code ProductTemplate} uniquely identified by the given ID - */ - public function getProductTemplate($productTemplateId) { - $args = new GetProductTemplate($productTemplateId); - $result = $this->__soapCall("getProductTemplate", array($args)); - return $result->rval; - } /** * Gets a {@link ProductTemplatePage} of {@link ProductTemplate} objects * that satisfy the filtering criteria specified by given {@link Statement#query}. @@ -6940,17 +7422,6 @@ public function performProductTemplateAction($action, $filterStatement) { $result = $this->__soapCall("performProductTemplateAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link ProductTemplate}. - * - * @param productTemplate the product template to update - * @return the updated product template - */ - public function updateProductTemplate($productTemplate) { - $args = new UpdateProductTemplate($productTemplate); - $result = $this->__soapCall("updateProductTemplate", array($args)); - return $result->rval; - } /** * Updates the specified {@link ProductTemplate} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201502/ProposalLineItemService.php similarity index 79% rename from src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php rename to src/Google/Api/Ads/Dfp/v201502/ProposalLineItemService.php index e07a10cb8..c0dd6f548 100755 --- a/src/Google/Api/Ads/Dfp/v201311/ProposalLineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProposalLineItemService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * Represents targeted or excluded ad units. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AdUnitTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitTargeting"; /** @@ -83,11 +83,11 @@ public function __construct($adUnitId = null, $includeDescendants = null) { *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -108,44 +108,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -162,11 +124,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -177,11 +138,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n * Provides {@link LineItem} objects the ability to target or exclude * technologies. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TechnologyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TechnologyTargeting"; /** @@ -287,11 +248,11 @@ public function __construct($bandwidthGroupTargeting = null, $browserTargeting = /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -316,13 +277,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -332,11 +292,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -345,44 +305,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -399,9 +321,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -413,11 +334,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -456,54 +377,22 @@ public function __construct($labelId = null, $isNegated = null) { } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -521,27 +410,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("AvailableBillingError", false)) { /** - * An error for an exception that occurred when authenticating. + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class AvailableBillingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsAvailableBillingErrorReason */ public $reason; @@ -561,13 +455,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -578,11 +471,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents bandwidth groups that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BandwidthGroupTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroupTargeting"; /** @@ -625,11 +518,11 @@ public function __construct($isTargeted = null, $bandwidthGroups = null) { /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -638,44 +531,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -692,9 +547,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -704,11 +558,11 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n /** * Lists all errors associated with the billing settings of a proposal or proposal line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BillingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BillingError"; /** @@ -733,13 +587,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -750,11 +603,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents browser languages that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserLanguageTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguageTargeting"; /** @@ -798,11 +651,11 @@ public function __construct($isTargeted = null, $browserLanguages = null) { * Represents browsers that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BrowserTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserTargeting"; /** @@ -841,24 +694,22 @@ public function __construct($isTargeted = null, $browsers = null) { } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -876,10 +727,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -889,11 +742,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -918,13 +771,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -935,11 +787,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents one or more {@link CustomTargetingValue custom targeting values} from different * {@link CustomTargetingKey custom targeting keys} ANDed together. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentMetadataKeyHierarchyTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; /** @@ -975,11 +827,11 @@ public function __construct($customTargetingValueIds = null) { /** * Used to target {@link LineItem}s to specific videos on a publisher's site. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ContentTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ContentTargeting"; /** @@ -1069,11 +921,11 @@ public function __construct($targetedContentIds = null, $excludedContentIds = nu * contain companions. Companions are only valid if the line item's environment * type is {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreativePlaceholder { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CreativePlaceholder"; /** @@ -1152,11 +1004,11 @@ public function __construct($size = null, $companions = null, $appliedLabels = n * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -1181,11 +1033,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -1195,11 +1046,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -1224,13 +1075,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1241,11 +1091,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Lists all errors related to {@link CustomTargetingKey} and * {@link CustomTargetingValue} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomTargetingError"; /** @@ -1270,13 +1120,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1289,51 +1138,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is * subject to the rules defined on {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaNode"; - /** - * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1350,8 +1161,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + public function __construct() { } } @@ -1361,11 +1171,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -1415,11 +1225,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -1484,11 +1294,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * {@code DayPart} represents a time-period within a day of the week which is * targeted by a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPart { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPart"; /** @@ -1539,11 +1349,11 @@ public function __construct($dayOfWeek = null, $startTime = null, $endTime = nul * Modify the delivery times of line items for particular days of the week. By * default, line items are served at all days and times. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargeting"; /** @@ -1586,11 +1396,11 @@ public function __construct($dayParts = null, $timeZone = null) { /** * Lists all errors associated with day-part targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DayPartTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DayPartTargetingError"; /** @@ -1615,13 +1425,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1633,11 +1442,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * {@link LineItem#costType}, delivered for a single line item for the * last 7 days * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeliveryData { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeliveryData"; /** @@ -1673,11 +1482,11 @@ public function __construct($units = null) { /** * Indicates the delivery performance of the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeliveryIndicator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeliveryIndicator"; /** @@ -1720,11 +1529,11 @@ public function __construct($expectedDeliveryPercentage = null, $actualDeliveryP /** * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCapabilityTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapabilityTargeting"; /** @@ -1767,11 +1576,11 @@ public function __construct($targetedDeviceCapabilities = null, $excludedDeviceC /** * Represents device categories that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceCategoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategoryTargeting"; /** @@ -1815,11 +1624,11 @@ public function __construct($targetedDeviceCategories = null, $excludedDeviceCat * Represents device manufacturer that are being targeted or excluded by the * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DeviceManufacturerTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturerTargeting"; /** @@ -1863,11 +1672,11 @@ public function __construct($isTargeted = null, $deviceManufacturers = null) { * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -1892,11 +1701,92 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1907,11 +1797,11 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -1936,13 +1826,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1953,11 +1842,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents a limit on the number of times a single viewer can be exposed to * the same {@link LineItem} in a specified time period. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCap"; /** @@ -2007,11 +1896,11 @@ public function __construct($maxImpressions = null, $numTimeUnits = null, $timeU /** * Lists all errors associated with frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FrequencyCapError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FrequencyCapError"; /** @@ -2036,13 +1925,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2052,11 +1940,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Targeting validation errors that can be used by different targeting types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GenericTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GenericTargetingError"; /** @@ -2081,13 +1969,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2111,11 +1998,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * York as one of the targeted locations * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargeting"; /** @@ -2159,11 +2046,11 @@ public function __construct($targetedLocations = null, $excludedLocations = null * Lists all errors associated with geographical targeting for a * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GeoTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "GeoTargetingError"; /** @@ -2188,13 +2075,66 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Goal", false)) { + /** + * Defines the criteria a {@link LineItem} needs to satisfy to meet its delivery goal. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Goal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Goal"; + + /** + * @access public + * @var tnsGoalType + */ + public $goalType; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($goalType = null, $unitType = null, $units = null) { + $this->goalType = $goalType; + $this->unitType = $unitType; + $this->units = $units; } } @@ -2206,11 +2146,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -2235,13 +2175,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2251,11 +2190,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargeting"; /** @@ -2306,11 +2245,11 @@ public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $t * Lists all inventory errors caused by associating a line item with a targeting * expression. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InventoryTargetingError"; /** @@ -2335,13 +2274,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2351,11 +2289,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -2380,13 +2318,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2399,11 +2336,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * the location will be represented as just the base class, otherwise it will be * sub-classed correctly. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpLocation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Location"; /** @@ -2430,44 +2367,6 @@ class DfpLocation { */ public $displayName; - /** - * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2484,12 +2383,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null, $LocationType = null) { + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { $this->id = $id; $this->type = $type; $this->canonicalParentId = $canonicalParentId; $this->displayName = $displayName; - $this->LocationType = $LocationType; } } @@ -2499,11 +2397,11 @@ public function __construct($id = null, $type = null, $canonicalParentId = null, /** * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileCarrierTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrierTargeting"; /** @@ -2546,11 +2444,11 @@ public function __construct($isTargeted = null, $mobileCarriers = null) { /** * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceSubmodelTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodelTargeting"; /** @@ -2593,11 +2491,11 @@ public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobi /** * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceTargeting"; /** @@ -2640,11 +2538,11 @@ public function __construct($targetedMobileDevices = null, $excludedMobileDevice /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -2687,11 +2585,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -2716,36 +2614,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("OperatingSystemTargeting", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class OperatingSystemTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OperatingSystemTargeting"; /** * @access public - * @var string + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] */ - public $parameters; + public $operatingSystems; /** * Gets the namesapce of this class @@ -2763,72 +2665,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + public function __construct($isTargeted = null, $operatingSystems = null) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; } } } -if (!class_exists("OperatingSystemTargeting", false)) { - /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OperatingSystemTargeting"; - - /** - * @access public - * @var boolean - */ - public $isTargeted; - - /** - * @access public - * @var Technology[] - */ - public $operatingSystems; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; - } - - } -} - -if (!class_exists("OperatingSystemVersionTargeting", false)) { +if (!class_exists("OperatingSystemVersionTargeting", false)) { /** * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemVersionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersionTargeting"; /** @@ -2871,11 +2724,11 @@ public function __construct($targetedOperatingSystemVersions = null, $excludedOp /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -2900,13 +2753,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2916,11 +2768,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * List all errors associated with number precisions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PrecisionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PrecisionError"; /** @@ -2945,34 +2797,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ProductError", false)) { +if (!class_exists("PremiumFeature", false)) { /** - * A catch-all error that lists all generic errors associated with Product. + * A {@code PremiumFeature} represents the feature type to be applied as a premium on a + * {@link RateCard}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProductError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductError"; + class PremiumFeature { - /** - * @access public - * @var tnsProductErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumFeature"; /** * Gets the namesapce of this class @@ -2990,111 +2836,53 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("ProposalError", false)) { +if (!class_exists("PremiumRateValue", false)) { /** - * Lists all errors associated with proposals. + * A premium of a {@link RateCard} which could be applied to the line item + * and charges extra. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalError extends ApiError { + class PremiumRateValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumRateValue"; /** * @access public - * @var tnsProposalErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @var integer */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ProposalLineItemAction", false)) { - /** - * Represents the actions that can be performed on {@link ProposalLineItem} objects. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class ProposalLineItemAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemAction"; + public $premiumRateId; /** * @access public - * @var string + * @var PremiumFeature */ - public $ProposalLineItemActionType; - private $_parameterMap = array( - "ProposalLineItemAction.Type" => "ProposalLineItemActionType", - ); + public $premiumFeature; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * @access public + * @var tnsRateType */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $rateType; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var tnsPremiumAdjustmentType */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $adjustmentType; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var integer */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $adjustmentSize; /** * Gets the namesapce of this class @@ -3112,27 +2900,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalLineItemActionType = null) { - $this->ProposalLineItemActionType = $ProposalLineItemActionType; + public function __construct($premiumRateId = null, $premiumFeature = null, $rateType = null, $adjustmentType = null, $adjustmentSize = null) { + $this->premiumRateId = $premiumRateId; + $this->premiumFeature = $premiumFeature; + $this->rateType = $rateType; + $this->adjustmentType = $adjustmentType; + $this->adjustmentSize = $adjustmentSize; } } } -if (!class_exists("ProposalLineItemActionError", false)) { +if (!class_exists("ProductError", false)) { /** - * Lists all errors for executing operations on proposal line items. + * A catch-all error that lists all generic errors associated with Product. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItemActionError extends ApiError { + class ProductError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemActionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductError"; /** * @access public - * @var tnsProposalLineItemActionErrorReason + * @var tnsProductErrorReason */ public $reason; @@ -3152,253 +2944,1343 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ProposalLineItem", false)) { +if (!class_exists("ProductTemplateTargeting", false)) { /** - * A {@code ProposalLineItem} is an instance of sales {@link Product}. It belongs to - * a {@link Proposal} and is created according to a {@link Product} and - * {@link RateCard}. When the proposal is turned into an {@link Order}, this object is - * turned into a {@link LineItem}. + * Contains targeting criteria for {@link ProductTemplate} objects. + * {@link ProposalLineItem Proposal line items} created from {@link Product products} + * of this template will have this criteria added to {@link ProposalLineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItem { + class ProductTemplateTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItem"; - - /** - * @access public - * @var integer - */ - public $id; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductTemplateTargeting"; /** * @access public - * @var integer + * @var GeoTargeting */ - public $proposalId; + public $geoTargeting; /** * @access public - * @var integer + * @var boolean */ - public $rateCardId; + public $allowGeoTargetingCustomization; /** * @access public - * @var integer + * @var InventoryTargeting */ - public $productId; + public $inventoryTargeting; /** * @access public - * @var string + * @var boolean */ - public $name; + public $allowAdUnitTargetingCustomization; /** * @access public - * @var DateTime + * @var boolean */ - public $startDateTime; + public $allowPlacementTargetingCustomization; /** * @access public - * @var DateTime + * @var CustomCriteriaSet */ - public $endDateTime; + public $customTargeting; /** * @access public - * @var string + * @var integer[] */ - public $notes; + public $customizableCustomTargetingKeyIds; /** * @access public - * @var tnsCostAdjustment + * @var boolean */ - public $costAdjustment; + public $allowAudienceSegmentTargetingCustomization; /** * @access public * @var boolean */ - public $isArchived; + public $isAllCustomTargetingKeysCustomizable; /** * @access public - * @var integer + * @var UserDomainTargeting */ - public $unitsBought; + public $userDomainTargeting; /** * @access public - * @var integer + * @var boolean */ - public $unitsBoughtBuffer; + public $allowUserDomainTargetingCustomization; /** * @access public - * @var tnsDeliveryRateType + * @var BandwidthGroupTargeting */ - public $deliveryRateType; + public $bandwidthGroupTargeting; /** * @access public - * @var tnsRoadblockingType + * @var boolean */ - public $roadblockingType; + public $allowBandwidthGroupTargetingCustomization; /** * @access public - * @var tnsCompanionDeliveryOption + * @var BrowserTargeting */ - public $companionDeliveryOption; + public $browserTargeting; /** * @access public - * @var tnsCreativeRotationType + * @var boolean */ - public $creativeRotationType; + public $allowBrowserTargetingCustomization; /** * @access public - * @var FrequencyCap[] + * @var BrowserLanguageTargeting */ - public $frequencyCaps; + public $browserLanguageTargeting; /** * @access public - * @var integer + * @var boolean */ - public $dfpLineItemId; + public $allowBrowserLanguageTargetingCustomization; /** * @access public - * @var tnsLineItemType + * @var OperatingSystemTargeting */ - public $lineItemType; + public $operatingSystemTargeting; /** * @access public - * @var integer + * @var boolean */ - public $lineItemPriority; + public $allowOperatingSystemTargetingCustomization; /** * @access public - * @var tnsRateType + * @var DeviceCapabilityTargeting */ - public $rateType; + public $deviceCapabilityTargeting; /** * @access public - * @var CreativePlaceholder[] + * @var boolean */ - public $creativePlaceholders; + public $allowDeviceCapabilityTargetingCustomization; /** * @access public - * @var Targeting + * @var DeviceCategoryTargeting */ - public $targeting; + public $deviceCategoryTargeting; /** * @access public - * @var BaseCustomFieldValue[] + * @var boolean */ - public $customFieldValues; + public $allowDeviceCategoryTargetingCustomization; /** * @access public - * @var AppliedLabel[] + * @var MobileCarrierTargeting */ - public $appliedLabels; + public $mobileCarrierTargeting; /** * @access public - * @var AppliedLabel[] + * @var boolean */ - public $effectiveAppliedLabels; + public $allowMobileCarrierTargetingCustomization; /** * @access public - * @var ProposalLineItemPremium[] + * @var DeviceManufacturerTargeting */ - public $premiums; + public $deviceManufacturerTargeting; /** * @access public - * @var Money + * @var MobileDeviceTargeting */ - public $baseRate; + public $mobileDeviceTargeting; /** * @access public - * @var Money + * @var MobileDeviceSubmodelTargeting */ - public $costPerUnit; + public $mobileDeviceSubmodelTargeting; /** * @access public - * @var Money + * @var boolean */ - public $cost; + public $allowMobileDeviceAndManufacturerTargetingCustomization; /** * @access public - * @var DeliveryIndicator + * @var ContentTargeting */ - public $deliveryIndicator; + public $contentTargeting; /** * @access public - * @var DeliveryData + * @var VideoPositionTargeting */ - public $deliveryData; + public $videoPositionTargeting; /** - * @access public - * @var tnsComputedStatus + * Gets the namesapce of this class + * @return the namespace of this class */ - public $computedStatus; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var tnsBillingCap + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customTargeting = null, $customizableCustomTargetingKeyIds = null, $allowAudienceSegmentTargetingCustomization = null, $isAllCustomTargetingKeysCustomizable = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null, $deviceCapabilityTargeting = null, $allowDeviceCapabilityTargetingCustomization = null, $deviceCategoryTargeting = null, $allowDeviceCategoryTargetingCustomization = null, $mobileCarrierTargeting = null, $allowMobileCarrierTargetingCustomization = null, $deviceManufacturerTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $allowMobileDeviceAndManufacturerTargetingCustomization = null, $contentTargeting = null, $videoPositionTargeting = null) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customTargeting = $customTargeting; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->allowAudienceSegmentTargetingCustomization = $allowAudienceSegmentTargetingCustomization; + $this->isAllCustomTargetingKeysCustomizable = $isAllCustomTargetingKeysCustomizable; + $this->userDomainTargeting = $userDomainTargeting; + $this->allowUserDomainTargetingCustomization = $allowUserDomainTargetingCustomization; + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->allowBandwidthGroupTargetingCustomization = $allowBandwidthGroupTargetingCustomization; + $this->browserTargeting = $browserTargeting; + $this->allowBrowserTargetingCustomization = $allowBrowserTargetingCustomization; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->allowBrowserLanguageTargetingCustomization = $allowBrowserLanguageTargetingCustomization; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->allowOperatingSystemTargetingCustomization = $allowOperatingSystemTargetingCustomization; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->allowDeviceCapabilityTargetingCustomization = $allowDeviceCapabilityTargetingCustomization; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->allowDeviceCategoryTargetingCustomization = $allowDeviceCategoryTargetingCustomization; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->allowMobileCarrierTargetingCustomization = $allowMobileCarrierTargetingCustomization; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->allowMobileDeviceAndManufacturerTargetingCustomization = $allowMobileDeviceAndManufacturerTargetingCustomization; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } + + } +} + +if (!class_exists("ProposalError", false)) { + /** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalError"; + + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemAction", false)) { + /** + * Represents the actions that can be performed on {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalLineItemActionError", false)) { + /** + * Lists all errors for executing operations on proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalLineItemActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemActionError"; + + /** + * @access public + * @var tnsProposalLineItemActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemConstraints", false)) { + /** + * A {@code PropoalLineItemConstraints} represents all the constraints set for a + * {@link ProposalLineItem} and is always readonly. It comes from the {@link Product}, + * based on which the proposal line item is created. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalLineItemConstraints { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemConstraints"; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var FrequencyCap[] + */ + public $builtInFrequencyCaps; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $builtInTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($allowFrequencyCapsCustomization = null, $builtInFrequencyCaps = null, $builtInTargeting = null) { + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->builtInFrequencyCaps = $builtInFrequencyCaps; + $this->builtInTargeting = $builtInTargeting; + } + + } +} + +if (!class_exists("ProposalLineItem", false)) { + /** + * A {@code ProposalLineItem} is an instance of sales {@link Product}. It belongs to + * a {@link Proposal} and is created according to a {@link Product} and + * {@link RateCard}. When the proposal is turned into an {@link Order}, this object is + * turned into a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItem"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $productId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var string + */ + public $timeZoneId; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsCostAdjustment + */ + public $costAdjustment; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var Goal + */ + public $goal; + + /** + * @access public + * @var integer + */ + public $contractedQuantityBuffer; + + /** + * @access public + * @var integer + */ + public $scheduledQuantity; + + /** + * @access public + * @var tnsDeliveryRateType + */ + public $deliveryRateType; + + /** + * @access public + * @var tnsRoadblockingType + */ + public $roadblockingType; + + /** + * @access public + * @var tnsCompanionDeliveryOption + */ + public $companionDeliveryOption; + + /** + * @access public + * @var tnsCreativeRotationType + */ + public $creativeRotationType; + + /** + * @access public + * @var FrequencyCap[] + */ + public $frequencyCaps; + + /** + * @access public + * @var integer + */ + public $dfpLineItemId; + + /** + * @access public + * @var tnsLineItemType + */ + public $lineItemType; + + /** + * @access public + * @var integer + */ + public $lineItemPriority; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var CreativePlaceholder[] + */ + public $creativePlaceholders; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $derivedProductCustomCriteria; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var ProposalLineItemConstraints + */ + public $productConstraints; + + /** + * @access public + * @var ProposalLineItemPremium[] + */ + public $premiums; + + /** + * @access public + * @var boolean + */ + public $isSold; + + /** + * @access public + * @var Money + */ + public $baseRate; + + /** + * @access public + * @var Money + */ + public $costPerUnit; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var DeliveryIndicator + */ + public $deliveryIndicator; + + /** + * @access public + * @var DeliveryData + */ + public $deliveryData; + + /** + * @access public + * @var tnsComputedStatus + */ + public $computedStatus; + + /** + * @access public + * @var tnsBillingCap */ public $billingCap; /** * @access public - * @var tnsBillingSchedule + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * @access public + * @var tnsBillingBase + */ + public $billingBase; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var boolean + */ + public $useThirdPartyAdServerFromProposal; + + /** + * @access public + * @var integer + */ + public $thirdPartyAdServerId; + + /** + * @access public + * @var string + */ + public $customThirdPartyAdServerName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $proposalId = null, $rateCardId = null, $productId = null, $name = null, $startDateTime = null, $endDateTime = null, $timeZoneId = null, $notes = null, $costAdjustment = null, $isArchived = null, $goal = null, $contractedQuantityBuffer = null, $scheduledQuantity = null, $deliveryRateType = null, $roadblockingType = null, $companionDeliveryOption = null, $creativeRotationType = null, $frequencyCaps = null, $dfpLineItemId = null, $lineItemType = null, $lineItemPriority = null, $rateType = null, $creativePlaceholders = null, $targeting = null, $derivedProductCustomCriteria = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $productConstraints = null, $premiums = null, $isSold = null, $baseRate = null, $costPerUnit = null, $cost = null, $deliveryIndicator = null, $deliveryData = null, $computedStatus = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $billingBase = null, $lastModifiedDateTime = null, $useThirdPartyAdServerFromProposal = null, $thirdPartyAdServerId = null, $customThirdPartyAdServerName = null) { + $this->id = $id; + $this->proposalId = $proposalId; + $this->rateCardId = $rateCardId; + $this->productId = $productId; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->timeZoneId = $timeZoneId; + $this->notes = $notes; + $this->costAdjustment = $costAdjustment; + $this->isArchived = $isArchived; + $this->goal = $goal; + $this->contractedQuantityBuffer = $contractedQuantityBuffer; + $this->scheduledQuantity = $scheduledQuantity; + $this->deliveryRateType = $deliveryRateType; + $this->roadblockingType = $roadblockingType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativeRotationType = $creativeRotationType; + $this->frequencyCaps = $frequencyCaps; + $this->dfpLineItemId = $dfpLineItemId; + $this->lineItemType = $lineItemType; + $this->lineItemPriority = $lineItemPriority; + $this->rateType = $rateType; + $this->creativePlaceholders = $creativePlaceholders; + $this->targeting = $targeting; + $this->derivedProductCustomCriteria = $derivedProductCustomCriteria; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->productConstraints = $productConstraints; + $this->premiums = $premiums; + $this->isSold = $isSold; + $this->baseRate = $baseRate; + $this->costPerUnit = $costPerUnit; + $this->cost = $cost; + $this->deliveryIndicator = $deliveryIndicator; + $this->deliveryData = $deliveryData; + $this->computedStatus = $computedStatus; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + $this->billingBase = $billingBase; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->useThirdPartyAdServerFromProposal = $useThirdPartyAdServerFromProposal; + $this->thirdPartyAdServerId = $thirdPartyAdServerId; + $this->customThirdPartyAdServerName = $customThirdPartyAdServerName; + } + + } +} + +if (!class_exists("ProposalLineItemError", false)) { + /** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemError"; + + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemPage", false)) { + /** + * Captures a page of {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalLineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemPage"; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $results; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } + + } +} + +if (!class_exists("ProposalLineItemPremium", false)) { + /** + * Represents the status of a triggered {@link PremiumRateValue} (formerly + * referred to as a {@code RateCardCustomization}). + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalLineItemPremium { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemPremium"; + + /** + * @access public + * @var PremiumRateValue + */ + public $premiumRateValue; + + /** + * @access public + * @var tnsProposalLineItemPremiumStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($premiumRateValue = null, $status = null) { + $this->premiumRateValue = $premiumRateValue; + $this->status = $status; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("QuotaError", false)) { + /** + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Size"; + + /** + * @access public + * @var integer */ - public $billingSchedule; + public $width; /** * @access public - * @var tnsBillingSource + * @var integer */ - public $billingSource; + public $height; /** * @access public - * @var DateTime + * @var boolean */ - public $lastModifiedDateTime; + public $isAspectRatio; /** * Gets the namesapce of this class @@ -3416,63 +4298,242 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $proposalId = null, $rateCardId = null, $productId = null, $name = null, $startDateTime = null, $endDateTime = null, $notes = null, $costAdjustment = null, $isArchived = null, $unitsBought = null, $unitsBoughtBuffer = null, $deliveryRateType = null, $roadblockingType = null, $companionDeliveryOption = null, $creativeRotationType = null, $frequencyCaps = null, $dfpLineItemId = null, $lineItemType = null, $lineItemPriority = null, $rateType = null, $creativePlaceholders = null, $targeting = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $premiums = null, $baseRate = null, $costPerUnit = null, $cost = null, $deliveryIndicator = null, $deliveryData = null, $computedStatus = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $lastModifiedDateTime = null) { - $this->id = $id; - $this->proposalId = $proposalId; - $this->rateCardId = $rateCardId; - $this->productId = $productId; - $this->name = $name; - $this->startDateTime = $startDateTime; - $this->endDateTime = $endDateTime; - $this->notes = $notes; - $this->costAdjustment = $costAdjustment; - $this->isArchived = $isArchived; - $this->unitsBought = $unitsBought; - $this->unitsBoughtBuffer = $unitsBoughtBuffer; - $this->deliveryRateType = $deliveryRateType; - $this->roadblockingType = $roadblockingType; - $this->companionDeliveryOption = $companionDeliveryOption; - $this->creativeRotationType = $creativeRotationType; - $this->frequencyCaps = $frequencyCaps; - $this->dfpLineItemId = $dfpLineItemId; - $this->lineItemType = $lineItemType; - $this->lineItemPriority = $lineItemPriority; - $this->rateType = $rateType; - $this->creativePlaceholders = $creativePlaceholders; - $this->targeting = $targeting; - $this->customFieldValues = $customFieldValues; - $this->appliedLabels = $appliedLabels; - $this->effectiveAppliedLabels = $effectiveAppliedLabels; - $this->premiums = $premiums; - $this->baseRate = $baseRate; - $this->costPerUnit = $costPerUnit; - $this->cost = $cost; - $this->deliveryIndicator = $deliveryIndicator; - $this->deliveryData = $deliveryData; - $this->computedStatus = $computedStatus; - $this->billingCap = $billingCap; - $this->billingSchedule = $billingSchedule; - $this->billingSource = $billingSource; - $this->lastModifiedDateTime = $lastModifiedDateTime; + public function __construct($width = null, $height = null, $isAspectRatio = null) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SoapResponseHeader"; + + /** + * @access public + * @var string + */ + public $requestId; + + /** + * @access public + * @var integer + */ + public $responseTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $responseTime = null) { + $this->requestId = $requestId; + $this->responseTime = $responseTime; + } + + } +} + +if (!class_exists("Statement", false)) { + /** + * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a + * PQL query. Statements are typically used to retrieve objects of a predefined + * domain type, which makes SELECT clause unnecessary. + *

    + * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id + * LIMIT 30"}. + *

    + *

    + * Statements support bind variables. These are substitutes for literals + * and can be thought of as input parameters to a PQL query. + *

    + *

    + * An example of such a query might be {@code "WHERE id = :idValue"}. + *

    + *

    + * Statements also support use of the LIKE keyword. This provides partial and + * wildcard string matching. + *

    + *

    + * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. + *

    + * If using an API version newer than V201010, the value for the variable + * idValue must then be set with an object of type {@link Value} and is one of + * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. + *

    + * If using an API version older than or equal to V201010, the value for the + * variable idValue must then be set with an object of type {@link Param} and is + * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. + *

    + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Statement"; + + /** + * @access public + * @var string + */ + public $query; + + /** + * @access public + * @var String_ValueMapEntry[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($query = null, $values = null) { + $this->query = $query; + $this->values = $values; + } + + } +} + +if (!class_exists("StatementError", false)) { + /** + * An error that occurs while parsing {@link Statement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ProposalLineItemError", false)) { +if (!class_exists("StringLengthError", false)) { /** - * Lists all errors associated with proposal line items. + * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItemError extends ApiError { + class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError"; /** * @access public - * @var tnsProposalLineItemErrorReason + * @var tnsStringLengthErrorReason */ public $reason; @@ -3492,46 +4553,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ProposalLineItemPage", false)) { +if (!class_exists("String_ValueMapEntry", false)) { /** - * Captures a page of {@link ProposalLineItem} objects. + * This represents an entry in a map with a key of type String + * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItemPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemPage"; + class String_ValueMapEntry { - /** - * @access public - * @var ProposalLineItem[] - */ - public $results; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "String_ValueMapEntry"; /** * @access public - * @var integer + * @var string */ - public $startIndex; + public $key; /** * @access public - * @var integer + * @var Value */ - public $totalResultSetSize; + public $value; /** * Gets the namesapce of this class @@ -3549,38 +4604,73 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { - $this->results = $results; - $this->startIndex = $startIndex; - $this->totalResultSetSize = $totalResultSetSize; + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; } } } -if (!class_exists("ProposalLineItemPremium", false)) { +if (!class_exists("Targeting", false)) { /** - * Represents the status of a triggered {@link PremiumRateValue} (formerly - * referred to as a {@code RateCardCustomization}). + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItemPremium { + class Targeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemPremium"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Targeting"; /** * @access public - * @var integer + * @var GeoTargeting */ - public $rateCardCustomizationId; + public $geoTargeting; /** * @access public - * @var tnsProposalLineItemPremiumStatus + * @var InventoryTargeting */ - public $status; + public $inventoryTargeting; + + /** + * @access public + * @var DayPartTargeting + */ + public $dayPartTargeting; + + /** + * @access public + * @var TechnologyTargeting + */ + public $technologyTargeting; + + /** + * @access public + * @var CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var UserDomainTargeting + */ + public $userDomainTargeting; + + /** + * @access public + * @var ContentTargeting + */ + public $contentTargeting; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionTargeting; /** * Gets the namesapce of this class @@ -3598,29 +4688,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rateCardCustomizationId = null, $status = null) { - $this->rateCardCustomizationId = $rateCardCustomizationId; - $this->status = $status; + public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { + $this->geoTargeting = $geoTargeting; + $this->inventoryTargeting = $inventoryTargeting; + $this->dayPartTargeting = $dayPartTargeting; + $this->technologyTargeting = $technologyTargeting; + $this->customTargeting = $customTargeting; + $this->userDomainTargeting = $userDomainTargeting; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; } } } -if (!class_exists("PublisherQueryLanguageContextError", false)) { +if (!class_exists("TeamError", false)) { /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. + * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextError extends ApiError { + class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TeamError"; /** * @access public - * @var tnsPublisherQueryLanguageContextErrorReason + * @var tnsTeamErrorReason */ public $reason; @@ -3640,35 +4735,39 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { +if (!class_exists("Technology", false)) { /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. + * Represents a technology entity that can be targeted. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxError extends ApiError { + class Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Technology"; /** * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason + * @var integer */ - public $reason; + public $id; + + /** + * @access public + * @var string + */ + public $name; /** * Gets the namesapce of this class @@ -3686,33 +4785,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; } } } -if (!class_exists("QuotaError", false)) { +if (!class_exists("TechnologyTargetingError", false)) { /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. + * Technology targeting validation errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaError extends ApiError { + class TechnologyTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargetingError"; /** * @access public - * @var tnsQuotaErrorReason + * @var tnsTechnologyTargetingErrorReason */ public $reason; @@ -3732,34 +4826,39 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RangeError", false)) { +if (!class_exists("TimeOfDay", false)) { /** - * A list of all errors associated with the Range constraint. + * Represents a specific time in a day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RangeError extends ApiError { + class TimeOfDay { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeOfDay"; /** * @access public - * @var tnsRangeErrorReason + * @var integer */ - public $reason; + public $hour; + + /** + * @access public + * @var tnsMinuteOfHour + */ + public $minute; /** * Gets the namesapce of this class @@ -3777,32 +4876,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($hour = null, $minute = null) { + $this->hour = $hour; + $this->minute = $minute; } } } -if (!class_exists("RequiredError", false)) { +if (!class_exists("TimeZoneError", false)) { /** - * Errors due to missing required field. + * Errors related to timezones. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredError extends ApiError { + class TimeZoneError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; /** * @access public - * @var tnsRequiredErrorReason + * @var tnsTimeZoneErrorReason */ public $reason; @@ -3822,35 +4917,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredNumberError", false)) { +if (!class_exists("UnarchiveProposalLineItems", false)) { /** - * A list of all errors to be used in conjunction with required number - * validators. + * The action used for unarchiving {@link ProposalLineItem} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredNumberError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError"; + class UnarchiveProposalLineItems extends ProposalLineItemAction { - /** - * @access public - * @var tnsRequiredNumberErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnarchiveProposalLineItems"; /** * Gets the namesapce of this class @@ -3868,34 +4955,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct() { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ReservationDetailsError", false)) { +if (!class_exists("UniqueError", false)) { /** - * Lists all errors associated with LineItem's reservation details. + * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ReservationDetailsError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReservationDetailsError"; + class UniqueError extends ApiError { - /** - * @access public - * @var tnsReservationDetailsErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UniqueError"; /** * Gets the namesapce of this class @@ -3913,34 +4989,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ServerError", false)) { +if (!class_exists("UnknownPremiumFeature", false)) { /** - * Errors related to the server. + * The {@link PremiumFeature} returned if the actual feature is not exposed by + * the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError"; + class UnknownPremiumFeature extends PremiumFeature { - /** - * @access public - * @var tnsServerErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnknownPremiumFeature"; /** * Gets the namesapce of this class @@ -3958,48 +5027,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct() { parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("Size", false)) { +if (!class_exists("UpdateResult", false)) { /** - * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. - *

    - * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Size { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Size"; - - /** - * @access public - * @var integer - */ - public $width; - - /** - * @access public - * @var integer - */ - public $height; + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; /** * @access public - * @var boolean + * @var integer */ - public $isAspectRatio; + public $numChanges; /** * Gets the namesapce of this class @@ -4017,43 +5067,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($width = null, $height = null, $isAspectRatio = null) { - $this->width = $width; - $this->height = $height; - $this->isAspectRatio = $isAspectRatio; + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; } } } -if (!class_exists("SoapRequestHeader", false)) { +if (!class_exists("UserDomainPremiumFeature", false)) { /** - * Represents the SOAP request header used by API requests. + * A premium feature applied to user domain targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class SoapRequestHeader { + class UserDomainPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapRequestHeader"; - - /** - * @access public - * @var string - */ - public $networkCode; - - /** - * @access public - * @var string - */ - public $applicationName; - - /** - * @access public - * @var Authentication - */ - public $authentication; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainPremiumFeature"; /** * Gets the namesapce of this class @@ -4071,37 +5101,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { - $this->networkCode = $networkCode; - $this->applicationName = $applicationName; - $this->authentication = $authentication; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("SoapResponseHeader", false)) { +if (!class_exists("UserDomainTargeting", false)) { /** - * Represents the SOAP request header used by API responses. + * Provides line items the ability to target or exclude users visiting their + * websites from a list of domains or subdomains. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class SoapResponseHeader { + class UserDomainTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "SoapResponseHeader"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargeting"; /** * @access public - * @var string + * @var string[] */ - public $requestId; + public $domains; /** * @access public - * @var integer + * @var boolean */ - public $responseTime; + public $targeted; /** * Gets the namesapce of this class @@ -4119,64 +5148,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($requestId = null, $responseTime = null) { - $this->requestId = $requestId; - $this->responseTime = $responseTime; + public function __construct($domains = null, $targeted = null) { + $this->domains = $domains; + $this->targeted = $targeted; } } } -if (!class_exists("Statement", false)) { +if (!class_exists("UserDomainTargetingError", false)) { /** - * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} clauses of a - * PQL query. Statements are typically used to retrieve objects of a predefined - * domain type, which makes SELECT clause unnecessary. - *

    - * An example query text might be {@code "WHERE status = 'ACTIVE' ORDER BY id - * LIMIT 30"}. - *

    - *

    - * Statements support bind variables. These are substitutes for literals - * and can be thought of as input parameters to a PQL query. - *

    - *

    - * An example of such a query might be {@code "WHERE id = :idValue"}. - *

    - *

    - * Statements also support use of the LIKE keyword. This provides partial and - * wildcard string matching. - *

    - *

    - * An example of such a query might be {@code "WHERE name LIKE 'startswith%'"}. - *

    - * If using an API version newer than V201010, the value for the variable - * idValue must then be set with an object of type {@link Value} and is one of - * {@link NumberValue}, {@link TextValue} or {@link BooleanValue}. - *

    - * If using an API version older than or equal to V201010, the value for the - * variable idValue must then be set with an object of type {@link Param} and is - * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. - *

    + * Lists all errors related to user domain targeting for a line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Statement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Statement"; + class UserDomainTargetingError extends ApiError { - /** - * @access public - * @var string - */ - public $query; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError"; /** * @access public - * @var String_ValueMapEntry[] + * @var tnsUserDomainTargetingErrorReason */ - public $values; + public $reason; /** * Gets the namesapce of this class @@ -4194,30 +5189,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($query = null, $values = null) { - $this->query = $query; - $this->values = $values; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("StatementError", false)) { +if (!class_exists("Value", false)) { /** - * An error that occurs while parsing {@link Statement} objects. + * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError"; + class Value { - /** - * @access public - * @var tnsStatementErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; /** * Gets the namesapce of this class @@ -4235,34 +5227,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("StringLengthError", false)) { +if (!class_exists("VideoPosition", false)) { /** - * Errors for Strings which do not meet given length constraints. + * Represents a targetable position within a video. A video ad can be targeted + * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthError extends ApiError { + class VideoPosition { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition"; /** * @access public - * @var tnsStringLengthErrorReason + * @var tnsVideoPositionType */ - public $reason; + public $positionType; + + /** + * @access public + * @var integer + */ + public $midrollIndex; /** * Gets the namesapce of this class @@ -4280,41 +5273,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($positionType = null, $midrollIndex = null) { + $this->positionType = $positionType; + $this->midrollIndex = $midrollIndex; } } } -if (!class_exists("String_ValueMapEntry", false)) { +if (!class_exists("VideoPositionTargeting", false)) { /** - * This represents an entry in a map with a key of type String - * and value of type Value. + * Represents positions within and around a video where ads can be targeted to. + *

    + * Example positions could be {@code pre-roll} (before the video plays), + * {@code post-roll} (after a video has completed playback) and + * {@code mid-roll} (during video playback). * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class String_ValueMapEntry { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "String_ValueMapEntry"; + class VideoPositionTargeting { - /** - * @access public - * @var string - */ - public $key; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTargeting"; /** * @access public - * @var Value + * @var VideoPositionTarget[] */ - public $value; + public $targetedPositions; /** * Gets the namesapce of this class @@ -4332,73 +5318,83 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($key = null, $value = null) { - $this->key = $key; - $this->value = $value; + public function __construct($targetedPositions = null) { + $this->targetedPositions = $targetedPositions; } } } -if (!class_exists("Targeting", false)) { +if (!class_exists("VideoPositionWithinPod", false)) { /** - * Contains targeting criteria for {@link LineItem} objects. See - * {@link LineItem#targeting}. + * Represents a targetable position within a pod within a video stream. A video ad can be targeted + * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, + * either first or last will target that position. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Targeting { + class VideoPositionWithinPod { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Targeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionWithinPod"; /** * @access public - * @var GeoTargeting + * @var integer */ - public $geoTargeting; + public $index; /** - * @access public - * @var InventoryTargeting + * Gets the namesapce of this class + * @return the namespace of this class */ - public $inventoryTargeting; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var DayPartTargeting + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $dayPartTargeting; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var TechnologyTargeting - */ - public $technologyTargeting; + public function __construct($index = null) { + $this->index = $index; + } - /** - * @access public - * @var CustomCriteriaSet - */ - public $customTargeting; + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPositionTarget"; /** * @access public - * @var UserDomainTargeting + * @var VideoPosition */ - public $userDomainTargeting; + public $videoPosition; /** * @access public - * @var ContentTargeting + * @var tnsVideoBumperType */ - public $contentTargeting; + public $videoBumperType; /** * @access public - * @var VideoPositionTargeting + * @var VideoPositionWithinPod */ - public $videoPositionTargeting; + public $videoPositionWithinPod; /** * Gets the namesapce of this class @@ -4416,36 +5412,26 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($geoTargeting = null, $inventoryTargeting = null, $dayPartTargeting = null, $technologyTargeting = null, $customTargeting = null, $userDomainTargeting = null, $contentTargeting = null, $videoPositionTargeting = null) { - $this->geoTargeting = $geoTargeting; - $this->inventoryTargeting = $inventoryTargeting; - $this->dayPartTargeting = $dayPartTargeting; - $this->technologyTargeting = $technologyTargeting; - $this->customTargeting = $customTargeting; - $this->userDomainTargeting = $userDomainTargeting; - $this->contentTargeting = $contentTargeting; - $this->videoPositionTargeting = $videoPositionTargeting; + public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { + $this->videoPosition = $videoPosition; + $this->videoBumperType = $videoBumperType; + $this->videoPositionWithinPod = $videoPositionWithinPod; } } } -if (!class_exists("TeamError", false)) { +if (!class_exists("ApiVersionErrorReason", false)) { /** - * Errors related to a Team. + * Indicates that the operation is not allowed in the version the request + * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError"; + class ApiVersionErrorReason { - /** - * @access public - * @var tnsTeamErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError.Reason"; /** * Gets the namesapce of this class @@ -4463,79 +5449,59 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Technology", false)) { +if (!class_exists("AuthenticationErrorReason", false)) { /** - * Represents a technology entity that can be targeted. + * The SOAP message contains a request header with an ambiguous definition + * of the authentication header fields. This means either the {@code + * authToken} and {@code oAuthToken} fields were both null or both were + * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Technology"; - - /** - * @access public - * @var integer - */ - public $id; - - /** - * @access public - * @var string - */ - public $name; + class AuthenticationErrorReason { - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError.Reason"; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; + public function __construct() { } + } +} + +if (!class_exists("AvailableBillingErrorReason", false)) { + /** + * The error reason represented by an enum. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AvailableBillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError.Reason"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4552,31 +5518,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; + public function __construct() { } } } -if (!class_exists("TechnologyTargetingError", false)) { +if (!class_exists("BillingBase", false)) { /** - * Technology targeting validation errors. + * Determines the base of billing calculation. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TechnologyTargetingError extends ApiError { + class BillingBase { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TechnologyTargetingError"; - - /** - * @access public - * @var tnsTechnologyTargetingErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingBase"; /** * Gets the namesapce of this class @@ -4594,40 +5551,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("TimeOfDay", false)) { +if (!class_exists("BillingCap", false)) { /** - * Represents a specific time in a day. + * Determines how the revenue amount will be capped for each billing month. This cannot be used when + * {@link BillingSource} is {@link BillingSource#CONTRACTED}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TimeOfDay { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TimeOfDay"; - - /** - * @access public - * @var integer - */ - public $hour; + class BillingCap { - /** - * @access public - * @var tnsMinuteOfHour - */ - public $minute; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingCap"; /** * Gets the namesapce of this class @@ -4645,24 +5585,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($hour = null, $minute = null) { - $this->hour = $hour; - $this->minute = $minute; + public function __construct() { } } } -if (!class_exists("UnarchiveProposalLineItems", false)) { +if (!class_exists("BillingErrorReason", false)) { /** - * The action used for unarchiving {@link ProposalLineItem} objects. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UnarchiveProposalLineItems extends ProposalLineItemAction { + class BillingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UnarchiveProposalLineItems"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingError.Reason"; /** * Gets the namesapce of this class @@ -4680,24 +5618,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalLineItemActionType = null) { - parent::__construct(); - $this->ProposalLineItemActionType = $ProposalLineItemActionType; + public function __construct() { } } } -if (!class_exists("UniqueError", false)) { +if (!class_exists("BillingSchedule", false)) { /** - * An error for a field which must satisfy a uniqueness constraint + * Determines how much to bill in each billing cycle when a proposal is charged based on the + * contracted value. This can only be used when {@link BillingSource} is + * {@link BillingSource#CONTRACTED}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UniqueError extends ApiError { + class BillingSchedule { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UniqueError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingSchedule"; /** * Gets the namesapce of this class @@ -4715,33 +5653,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("UpdateResult", false)) { +if (!class_exists("BillingSource", false)) { /** - * Represents the result of performing an action on objects. + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UpdateResult"; + class BillingSource { - /** - * @access public - * @var integer - */ - public $numChanges; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingSource"; /** * Gets the namesapce of this class @@ -4759,36 +5687,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; + public function __construct() { } } } -if (!class_exists("UserDomainTargeting", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Provides line items the ability to target or exclude users visiting their - * websites from a list of domains or subdomains. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UserDomainTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargeting"; + class CollectionSizeErrorReason { - /** - * @access public - * @var string[] - */ - public $domains; - - /** - * @access public - * @var boolean - */ - public $targeted; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -4806,30 +5720,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($domains = null, $targeted = null) { - $this->domains = $domains; - $this->targeted = $targeted; + public function __construct() { } } } -if (!class_exists("UserDomainTargetingError", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * Lists all errors related to user domain targeting for a line item. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UserDomainTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargetingError"; + class CommonErrorReason { - /** - * @access public - * @var tnsUserDomainTargetingErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -4847,67 +5753,58 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("Value", false)) { +if (!class_exists("CompanionDeliveryOption", false)) { /** - * {@code Value} represents a value. + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Value"; + class CompanionDeliveryOption { - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CompanionDeliveryOption"; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; + public function __construct() { } + } +} + +if (!class_exists("ComputedStatus", false)) { + /** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ComputedStatus"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4924,36 +5821,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } } -if (!class_exists("VideoPosition", false)) { +if (!class_exists("CostAdjustment", false)) { /** - * Represents a targetable position within a video. A video ad can be targeted - * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. + * Describes the cost adjustment of {@link ProposalLineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPosition { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPosition"; - - /** - * @access public - * @var tnsVideoPositionType - */ - public $positionType; + class CostAdjustment { - /** - * @access public - * @var integer - */ - public $midrollIndex; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CostAdjustment"; /** * Gets the namesapce of this class @@ -4971,34 +5854,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($positionType = null, $midrollIndex = null) { - $this->positionType = $positionType; - $this->midrollIndex = $midrollIndex; + public function __construct() { } } } -if (!class_exists("VideoPositionTargeting", false)) { +if (!class_exists("CreativeRotationType", false)) { /** - * Represents positions within and around a video where ads can be targeted to. - *

    - * Example positions could be {@code pre-roll} (before the video plays), - * {@code post-roll} (after a video has completed playback) and - * {@code mid-roll} (during video playback). + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPositionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPositionTargeting"; + class CreativeRotationType { - /** - * @access public - * @var VideoPositionTarget[] - */ - public $targetedPositions; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeRotationType"; /** * Gets the namesapce of this class @@ -5016,31 +5888,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedPositions = null) { - $this->targetedPositions = $targetedPositions; + public function __construct() { } } } -if (!class_exists("VideoPositionWithinPod", false)) { +if (!class_exists("CreativeSizeType", false)) { /** - * Represents a targetable position within a pod within a video stream. A video ad can be targeted - * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, - * either first or last will target that position. + * Descriptions of the types of sizes a creative can be. Not all creatives can + * be described by a height-width pair, this provides additional context. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPositionWithinPod { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPositionWithinPod"; + class CreativeSizeType { - /** - * @access public - * @var integer - */ - public $index; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeSizeType"; /** * Gets the namesapce of this class @@ -5058,41 +5922,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($index = null) { - $this->index = $index; + public function __construct() { } } } -if (!class_exists("VideoPositionTarget", false)) { +if (!class_exists("CustomCriteriaComparisonOperator", false)) { /** - * Represents the options for targetable positions within a video. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPositionTarget { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPositionTarget"; - - /** - * @access public - * @var VideoPosition - */ - public $videoPosition; - - /** - * @access public - * @var tnsVideoBumperType - */ - public $videoBumperType; + class CustomCriteriaComparisonOperator { - /** - * @access public - * @var VideoPositionWithinPod - */ - public $videoPositionWithinPod; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -5110,26 +5955,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($videoPosition = null, $videoBumperType = null, $videoPositionWithinPod = null) { - $this->videoPosition = $videoPosition; - $this->videoBumperType = $videoBumperType; - $this->videoPositionWithinPod = $videoPositionWithinPod; + public function __construct() { } } } -if (!class_exists("ApiVersionErrorReason", false)) { +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { /** - * Indicates that the operation is not allowed in the version the request - * was made in. + * Specifies the available logical operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiVersionErrorReason { + class CustomCriteriaSetLogicalOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiVersionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; /** * Gets the namesapce of this class @@ -5153,19 +5994,16 @@ public function __construct() { } } -if (!class_exists("AuthenticationErrorReason", false)) { +if (!class_exists("CustomFieldValueErrorReason", false)) { /** - * The SOAP message contains a request header with an ambiguous definition - * of the authentication header fields. This means either the {@code - * authToken} and {@code oAuthToken} fields were both null or both were - * specified. Exactly one value should be specified with each request. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationErrorReason { + class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError.Reason"; /** * Gets the namesapce of this class @@ -5189,17 +6027,16 @@ public function __construct() { } } -if (!class_exists("BillingCap", false)) { +if (!class_exists("CustomTargetingErrorReason", false)) { /** - * Determines how the revenue amount will be capped for each billing month. This cannot be used when - * {@link BillingSource} is {@link BillingSource#CONTRACTED}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BillingCap { + class CustomTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BillingCap"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5223,16 +6060,16 @@ public function __construct() { } } -if (!class_exists("BillingErrorReason", false)) { +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { /** - * The reasons for the target error. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BillingErrorReason { + class AudienceSegmentCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BillingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -5256,18 +6093,16 @@ public function __construct() { } } -if (!class_exists("BillingSchedule", false)) { +if (!class_exists("DayOfWeek", false)) { /** - * Determines how much to bill in each billing cycle when a proposal is charged based on the - * contracted value. This can only be used when {@link BillingSource} is - * {@link BillingSource#CONTRACTED}. + * Days of the week. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BillingSchedule { + class DayOfWeek { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BillingSchedule"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayOfWeek"; /** * Gets the namesapce of this class @@ -5291,17 +6126,16 @@ public function __construct() { } } -if (!class_exists("BillingSource", false)) { +if (!class_exists("DayPartTargetingErrorReason", false)) { /** - * Determines which billable numbers or delivery data (impressions, clicks, and so on) - * will be used for billing purposes. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BillingSource { + class DayPartTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BillingSource"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayPartTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5325,16 +6159,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("DeliveryTimeZone", false)) { /** - * Describes reasons for common errors + * Represents the time zone to be used for {@link DayPartTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class DeliveryTimeZone { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryTimeZone"; /** * Gets the namesapce of this class @@ -5358,17 +6192,17 @@ public function __construct() { } } -if (!class_exists("CompanionDeliveryOption", false)) { +if (!class_exists("DeliveryRateType", false)) { /** - * The delivery option for companions. Used for line items whose environmentType is - * {@link EnvironmentType#VIDEO_PLAYER}. + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CompanionDeliveryOption { + class DeliveryRateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CompanionDeliveryOption"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryRateType"; /** * Gets the namesapce of this class @@ -5392,17 +6226,16 @@ public function __construct() { } } -if (!class_exists("ComputedStatus", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * Describes the computed {@link LineItem} status that is derived from the - * current state of the line item. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ComputedStatus { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ComputedStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -5426,16 +6259,16 @@ public function __construct() { } } -if (!class_exists("CostAdjustment", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * Describes the cost adjustment of {@link ProposalLineItem}. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CostAdjustment { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CostAdjustment"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -5459,17 +6292,16 @@ public function __construct() { } } -if (!class_exists("CreativeRotationType", false)) { +if (!class_exists("FrequencyCapErrorReason", false)) { /** - * The strategy to use for displaying multiple {@link Creative} objects that are - * associated with a {@link LineItem}. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeRotationType { + class FrequencyCapErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeRotationType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FrequencyCapError.Reason"; /** * Gets the namesapce of this class @@ -5493,17 +6325,16 @@ public function __construct() { } } -if (!class_exists("CreativeSizeType", false)) { +if (!class_exists("GenericTargetingErrorReason", false)) { /** - * Descriptions of the types of sizes a creative can be. Not all creatives can - * be described by a height-width pair, this provides additional context. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreativeSizeType { + class GenericTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CreativeSizeType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GenericTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5527,16 +6358,16 @@ public function __construct() { } } -if (!class_exists("CustomCriteriaComparisonOperator", false)) { +if (!class_exists("GeoTargetingErrorReason", false)) { /** - * Specifies the available comparison operators. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCriteriaComparisonOperator { + class GeoTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeoTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5560,16 +6391,16 @@ public function __construct() { } } -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { +if (!class_exists("GoalType", false)) { /** - * Specifies the available logical operators. + * Specifies the type of the goal for a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCriteriaSetLogicalOperator { + class GoalType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GoalType"; /** * Gets the namesapce of this class @@ -5593,16 +6424,16 @@ public function __construct() { } } -if (!class_exists("CustomFieldValueErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the target error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomFieldValueErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -5626,16 +6457,16 @@ public function __construct() { } } -if (!class_exists("CustomTargetingErrorReason", false)) { +if (!class_exists("InventoryTargetingErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomTargetingErrorReason { + class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError.Reason"; /** * Gets the namesapce of this class @@ -5659,16 +6490,16 @@ public function __construct() { } } -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { +if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** - * Specifies the available comparison operators. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AudienceSegmentCriteriaComparisonOperator { + class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** * Gets the namesapce of this class @@ -5692,16 +6523,17 @@ public function __construct() { } } -if (!class_exists("DayOfWeek", false)) { +if (!class_exists("LineItemType", false)) { /** - * Days of the week. + * {@code LineItemType} indicates the priority of a {@link LineItem}, determined + * by the way in which impressions are reserved to be served for it. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DayOfWeek { + class LineItemType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DayOfWeek"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemType"; /** * Gets the namesapce of this class @@ -5725,16 +6557,17 @@ public function __construct() { } } -if (!class_exists("DayPartTargetingErrorReason", false)) { +if (!class_exists("MinuteOfHour", false)) { /** - * The reasons for the target error. + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DayPartTargetingErrorReason { + class MinuteOfHour { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DayPartTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MinuteOfHour"; /** * Gets the namesapce of this class @@ -5758,16 +6591,16 @@ public function __construct() { } } -if (!class_exists("DeliveryTimeZone", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** - * Represents the time zone to be used for {@link DayPartTargeting}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeliveryTimeZone { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeliveryTimeZone"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -5791,17 +6624,16 @@ public function __construct() { } } -if (!class_exists("DeliveryRateType", false)) { +if (!class_exists("PermissionErrorReason", false)) { /** - * Possible delivery rates for a {@link LineItem}, which dictate the manner in - * which they are served. + * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeliveryRateType { + class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeliveryRateType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError.Reason"; /** * Gets the namesapce of this class @@ -5825,16 +6657,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("PrecisionErrorReason", false)) { /** - * A feature is being used that is not enabled on the current network. + * Describes reasons for precision errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FeatureErrorReason { + class PrecisionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PrecisionError.Reason"; /** * Gets the namesapce of this class @@ -5858,16 +6690,16 @@ public function __construct() { } } -if (!class_exists("FrequencyCapErrorReason", false)) { +if (!class_exists("PremiumAdjustmentType", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * Describes how to apply the adjustment to the base rate. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class FrequencyCapErrorReason { + class PremiumAdjustmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "FrequencyCapError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PremiumAdjustmentType"; /** * Gets the namesapce of this class @@ -5891,16 +6723,16 @@ public function __construct() { } } -if (!class_exists("GenericTargetingErrorReason", false)) { +if (!class_exists("ProductErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GenericTargetingErrorReason { + class ProductErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GenericTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProductError.Reason"; /** * Gets the namesapce of this class @@ -5924,16 +6756,16 @@ public function __construct() { } } -if (!class_exists("GeoTargetingErrorReason", false)) { +if (!class_exists("ProposalErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GeoTargetingErrorReason { + class ProposalErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "GeoTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalError.Reason"; /** * Gets the namesapce of this class @@ -5957,16 +6789,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("ProposalLineItemActionErrorReason", false)) { /** - * The single reason for the internal API error. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InternalApiErrorReason { + class ProposalLineItemActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemActionError.Reason"; /** * Gets the namesapce of this class @@ -5990,16 +6822,16 @@ public function __construct() { } } -if (!class_exists("InventoryTargetingErrorReason", false)) { +if (!class_exists("ProposalLineItemErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class InventoryTargetingErrorReason { + class ProposalLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "InventoryTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemError.Reason"; /** * Gets the namesapce of this class @@ -6023,16 +6855,16 @@ public function __construct() { } } -if (!class_exists("LabelEntityAssociationErrorReason", false)) { +if (!class_exists("ProposalLineItemPremiumStatus", false)) { /** - * The reasons for the target error. + * Status of the premium triggered by a proposal line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LabelEntityAssociationErrorReason { + class ProposalLineItemPremiumStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LabelEntityAssociationError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLineItemPremiumStatus"; /** * Gets the namesapce of this class @@ -6056,17 +6888,16 @@ public function __construct() { } } -if (!class_exists("LineItemType", false)) { +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** - * {@code LineItemType} indicates the priority of a {@link LineItem}, determined - * by the way in which impressions are reserved to be served for it. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class LineItemType { + class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "LineItemType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** * Gets the namesapce of this class @@ -6090,17 +6921,16 @@ public function __construct() { } } -if (!class_exists("MinuteOfHour", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class MinuteOfHour { + class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MinuteOfHour"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** * Gets the namesapce of this class @@ -6124,16 +6954,26 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("QuotaErrorReason", false)) { /** - * The reasons for the target error. + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

    + * Another way to mitigate this error is to limit requests to 2 per second for + * Small Business networks, or 8 per second for Premium networks. Once again + * this does not guarantee that every request will succeed, but may help + * reduce the number of times you receive this error. + *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class NotNullErrorReason { + class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError.Reason"; /** * Gets the namesapce of this class @@ -6157,16 +6997,16 @@ public function __construct() { } } -if (!class_exists("PermissionErrorReason", false)) { +if (!class_exists("RangeErrorReason", false)) { /** - * Describes reasons for permission errors. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PermissionErrorReason { + class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PermissionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError.Reason"; /** * Gets the namesapce of this class @@ -6190,16 +7030,17 @@ public function __construct() { } } -if (!class_exists("PrecisionErrorReason", false)) { +if (!class_exists("RateType", false)) { /** - * Describes reasons for precision errors. + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PrecisionErrorReason { + class RateType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PrecisionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RateType"; /** * Gets the namesapce of this class @@ -6223,16 +7064,16 @@ public function __construct() { } } -if (!class_exists("ProductErrorReason", false)) { +if (!class_exists("RequiredErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProductErrorReason { + class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProductError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError.Reason"; /** * Gets the namesapce of this class @@ -6256,16 +7097,16 @@ public function __construct() { } } -if (!class_exists("ProposalErrorReason", false)) { +if (!class_exists("RequiredNumberErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalErrorReason { + class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError.Reason"; /** * Gets the namesapce of this class @@ -6289,16 +7130,16 @@ public function __construct() { } } -if (!class_exists("ProposalLineItemActionErrorReason", false)) { +if (!class_exists("ReservationDetailsErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItemActionErrorReason { + class ReservationDetailsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemActionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError.Reason"; /** * Gets the namesapce of this class @@ -6322,16 +7163,16 @@ public function __construct() { } } -if (!class_exists("ProposalLineItemErrorReason", false)) { +if (!class_exists("RoadblockingType", false)) { /** - * The reasons for the target error. + * Describes the roadblocking types. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItemErrorReason { + class RoadblockingType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RoadblockingType"; /** * Gets the namesapce of this class @@ -6355,16 +7196,16 @@ public function __construct() { } } -if (!class_exists("ProposalLineItemPremiumStatus", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * Status of the premium triggered by a proposal line item. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalLineItemPremiumStatus { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalLineItemPremiumStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -6388,16 +7229,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * The reasons for the target error. + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageContextErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -6421,16 +7262,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { +if (!class_exists("StringLengthErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxErrorReason { + class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StringLengthError.Reason"; /** * Gets the namesapce of this class @@ -6454,26 +7295,16 @@ public function __construct() { } } -if (!class_exists("QuotaErrorReason", false)) { +if (!class_exists("TeamErrorReason", false)) { /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

    - * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

    + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class QuotaErrorReason { + class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "QuotaError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TeamError.Reason"; /** * Gets the namesapce of this class @@ -6497,16 +7328,16 @@ public function __construct() { } } -if (!class_exists("RangeErrorReason", false)) { +if (!class_exists("TechnologyTargetingErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RangeErrorReason { + class TechnologyTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RangeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6530,17 +7361,16 @@ public function __construct() { } } -if (!class_exists("RateType", false)) { +if (!class_exists("TimeUnit", false)) { /** - * Describes the type of event the advertiser is paying for. The values here correspond to the - * values for the {@link LineItem#costType} field. + * Represent the possible time units for frequency capping. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RateType { + class TimeUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RateType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeUnit"; /** * Gets the namesapce of this class @@ -6564,16 +7394,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("TimeZoneErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for invalid timezone. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredErrorReason { + class TimeZoneErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; /** * Gets the namesapce of this class @@ -6597,16 +7427,20 @@ public function __construct() { } } -if (!class_exists("RequiredNumberErrorReason", false)) { +if (!class_exists("UnitType", false)) { /** - * Describes reasons for a number to be invalid. + * Indicates the type of unit used for defining a reservation. The + * {@link CostType} can differ from the {@link UnitType} - an + * ad can have an impression goal, but be billed by its click. Usually + * {@link CostType} and {@link UnitType} will refer to the + * same unit. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RequiredNumberErrorReason { + class UnitType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RequiredNumberError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UnitType"; /** * Gets the namesapce of this class @@ -6630,16 +7464,16 @@ public function __construct() { } } -if (!class_exists("ReservationDetailsErrorReason", false)) { +if (!class_exists("UserDomainTargetingErrorReason", false)) { /** - * The reasons for the target error. + * {@link ApiErrorReason} enum for user domain targeting error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ReservationDetailsErrorReason { + class UserDomainTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ReservationDetailsError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; /** * Gets the namesapce of this class @@ -6663,16 +7497,19 @@ public function __construct() { } } -if (!class_exists("RoadblockingType", false)) { +if (!class_exists("VideoBumperType", false)) { /** - * Describes the roadblocking types. + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class RoadblockingType { + class VideoBumperType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "RoadblockingType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoBumperType"; /** * Gets the namesapce of this class @@ -6696,16 +7533,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("VideoPositionType", false)) { /** - * Describes reasons for server errors + * Represents a targetable position within a video. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ServerErrorReason { + class VideoPositionType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition.Type"; /** * Gets the namesapce of this class @@ -6729,16 +7566,35 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("CreateProposalLineItems", false)) { /** - * A bind variable has not been bound to a value. + * Creates new {@link ProposalLineItem} objects. + * + * For each proposal line item, the following fields are required: + *
      + *
    • {@link ProposalLineItem#proposalId}
    • + *
    • {@link ProposalLineItem#rateCardId}
    • + *
    • {@link ProposalLineItem#productId}
    • + *
    • {@link ProposalLineItem#name}
    • + *
    • {@link ProposalLineItem#startDateTime}
    • + *
    • {@link ProposalLineItem#endDateTime}
    • + *
    + * + * @param proposalLineItems the proposal line items to create + * @return the created proposal line items with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StatementErrorReason { + class CreateProposalLineItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; /** * Gets the namesapce of this class @@ -6756,22 +7612,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($proposalLineItems = null) { + $this->proposalLineItems = $proposalLineItems; } } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("CreateProposalLineItemsResponse", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class StringLengthErrorReason { + class CreateProposalLineItemsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; /** * Gets the namesapce of this class @@ -6789,22 +7652,73 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("TeamErrorReason", false)) { +if (!class_exists("GetProposalLineItemsByStatement", false)) { /** - * The reasons for the target error. + * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link ProposalLineItem#id}
    {@code name}{@link ProposalLineItem#name}
    {@code proposalId}{@link ProposalLineItem#proposalId}
    {@code isArchived}{@link ProposalLineItem#isArchived}
    {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
    {@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
    {@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
    {@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
    + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of proposal line items + * @return the proposal line items that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TeamErrorReason { + class GetProposalLineItemsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TeamError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; /** * Gets the namesapce of this class @@ -6822,22 +7736,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; } } } -if (!class_exists("TechnologyTargetingErrorReason", false)) { +if (!class_exists("GetProposalLineItemsByStatementResponse", false)) { /** - * The reasons for the target error. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TechnologyTargetingErrorReason { + class GetProposalLineItemsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TechnologyTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItemPage + */ + public $rval; /** * Gets the namesapce of this class @@ -6855,22 +7776,41 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("TimeUnit", false)) { +if (!class_exists("PerformProposalLineItemAction", false)) { /** - * Represent the possible time units for frequency capping. + * Performs actions on {@link ProposalLineItem} objects that match + * the given {@link Statement#query}. + * + * @param proposalLineItemAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of + * proposal line items + * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class TimeUnit { + class PerformProposalLineItemAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "TimeUnit"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItemAction + */ + public $proposalLineItemAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; /** * Gets the namesapce of this class @@ -6888,22 +7828,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($proposalLineItemAction = null, $filterStatement = null) { + $this->proposalLineItemAction = $proposalLineItemAction; + $this->filterStatement = $filterStatement; } } } -if (!class_exists("UserDomainTargetingErrorReason", false)) { +if (!class_exists("PerformProposalLineItemActionResponse", false)) { /** - * {@link ApiErrorReason} enum for user domain targeting error. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UserDomainTargetingErrorReason { + class PerformProposalLineItemActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "UserDomainTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; /** * Gets the namesapce of this class @@ -6921,25 +7869,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("VideoBumperType", false)) { +if (!class_exists("UpdateProposalLineItems", false)) { /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * Updates the specified {@link ProposalLineItem} objects. + * + * @param proposalLineItems the proposal line items to update + * @return the updated proposal line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoBumperType { + class UpdateProposalLineItems { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoBumperType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; /** * Gets the namesapce of this class @@ -6957,22 +7912,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($proposalLineItems = null) { + $this->proposalLineItems = $proposalLineItems; } } } -if (!class_exists("VideoPositionType", false)) { +if (!class_exists("UpdateProposalLineItemsResponse", false)) { /** - * Represents a targetable position within a video. + * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class VideoPositionType { + class UpdateProposalLineItemsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "VideoPosition.Type"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; /** * Gets the namesapce of this class @@ -6990,41 +7952,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct() { + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("CreateProposalLineItem", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Creates a new {@link ProposalLineItem}. - * - * The following fields are required: - *
      - *
    • {@link ProposalLineItem#proposalId}
    • - *
    • {@link ProposalLineItem#rateCardId}
    • - *
    • {@link ProposalLineItem#productId}
    • - *
    • {@link ProposalLineItem#name}
    • - *
    • {@link ProposalLineItem#startDateTime}
    • - *
    • {@link ProposalLineItem#endDateTime}
    • - *
    - * - * @param proposalLineItem the proposal line item to create - * @return the created proposal line item with its ID filled in + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var ProposalLineItem - */ - public $proposalLineItem; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -7042,29 +7993,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposalLineItem = null) { - $this->proposalLineItem = $proposalLineItem; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("CreateProposalLineItemResponse", false)) { +if (!class_exists("AdUnitPremiumFeature", false)) { /** - * + * A premium feature applied to ad unit targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class AdUnitPremiumFeature extends PremiumFeature { - /** - * @access public - * @var ProposalLineItem - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitPremiumFeature"; /** * Gets the namesapce of this class @@ -7082,42 +8027,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("CreateProposalLineItems", false)) { +if (!class_exists("ApiException", false)) { /** - * Creates new {@link ProposalLineItem} objects. - * - * For each proposal line item, the following fields are required: - *

      - *
    • {@link ProposalLineItem#proposalId}
    • - *
    • {@link ProposalLineItem#rateCardId}
    • - *
    • {@link ProposalLineItem#productId}
    • - *
    • {@link ProposalLineItem#name}
    • - *
    • {@link ProposalLineItem#startDateTime}
    • - *
    • {@link ProposalLineItem#endDateTime}
    • - *
    - * - * @param proposalLineItems the proposal line items to create - * @return the created proposal line items with their IDs filled in + * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateProposalLineItems { + class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiException"; /** * @access public - * @var ProposalLineItem[] + * @var ApiError[] */ - public $proposalLineItems; + public $errors; /** * Gets the namesapce of this class @@ -7135,29 +8067,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposalLineItems = null) { - $this->proposalLineItems = $proposalLineItems; + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; } } } -if (!class_exists("CreateProposalLineItemsResponse", false)) { +if (!class_exists("ArchiveProposalLineItems", false)) { /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class CreateProposalLineItemsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + * The action used for archiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ArchiveProposalLineItems extends ProposalLineItemAction { - /** - * @access public - * @var ProposalLineItem[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ArchiveProposalLineItems"; /** * Gets the namesapce of this class @@ -7175,32 +8103,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("GetProposalLineItem", false)) { +if (!class_exists("AudienceSegmentPremiumFeature", false)) { /** - * Returns the {@link ProposalLineItem} uniquely identified by the given ID. - * - * @param proposalLineItemId the ID of the proposal line item, which must already exist - * @return the proposal line item uniquely identified by the given ID + * A premium feature applied to audience segment targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetProposalLineItem { + class AudienceSegmentPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentPremiumFeature"; /** * @access public * @var integer */ - public $proposalLineItemId; + public $audienceSegmentId; /** * Gets the namesapce of this class @@ -7218,29 +8143,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposalLineItemId = null) { - $this->proposalLineItemId = $proposalLineItemId; + public function __construct($audienceSegmentId = null) { + parent::__construct(); + $this->audienceSegmentId = $audienceSegmentId; } } } -if (!class_exists("GetProposalLineItemResponse", false)) { +if (!class_exists("BandwidthPremiumFeature", false)) { /** - * + * A premium feature applied to bandwidth targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class BandwidthPremiumFeature extends PremiumFeature { - /** - * @access public - * @var ProposalLineItem - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BandwidthPremiumFeature"; /** * Gets the namesapce of this class @@ -7258,73 +8178,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("GetProposalLineItemsByStatement", false)) { +if (!class_exists("BandwidthGroup", false)) { /** - * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects - * that satisfy the given {@link Statement#query}. The following fields are supported for - * filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    PQL Property Object Property
    {@code id}{@link ProposalLineItem#id}
    {@code name}{@link ProposalLineItem#name}
    {@code proposalId}{@link ProposalLineItem#proposalId}
    {@code isArchived}{@link ProposalLineItem#isArchived}
    {@code lastModifiedDateTime}{@link ProposalLineItem#lastModifiedDateTime}
    {@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
    {@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
    {@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
    - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of proposal line items - * @return the proposal line items that match the given filter + * Represents a group of bandwidths that are logically organized by some well + * known generic names such as 'Cable' or 'DSL'. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetProposalLineItemsByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class BandwidthGroup extends Technology { - /** - * @access public - * @var Statement - */ - public $filterStatement; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BandwidthGroup"; /** * Gets the namesapce of this class @@ -7342,29 +8213,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($filterStatement = null) { - $this->filterStatement = $filterStatement; + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; } } } -if (!class_exists("GetProposalLineItemsByStatementResponse", false)) { +if (!class_exists("BooleanValue", false)) { /** - * + * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class GetProposalLineItemsByStatementResponse { + class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BooleanValue"; /** * @access public - * @var ProposalLineItemPage + * @var boolean */ - public $rval; + public $value; /** * Gets the namesapce of this class @@ -7382,41 +8255,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; } } } -if (!class_exists("PerformProposalLineItemAction", false)) { +if (!class_exists("Browser", false)) { /** - * Performs actions on {@link ProposalLineItem} objects that match - * the given {@link Statement#query}. - * - * @param proposalLineItemAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter a set of - * proposal line items - * @return the result of the action performed + * Represents an internet browser. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PerformProposalLineItemAction { + class Browser extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Browser"; /** * @access public - * @var ProposalLineItemAction + * @var string */ - public $proposalLineItemAction; + public $majorVersion; /** * @access public - * @var Statement + * @var string */ - public $filterStatement; + public $minorVersion; /** * Gets the namesapce of this class @@ -7434,30 +8302,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposalLineItemAction = null, $filterStatement = null) { - $this->proposalLineItemAction = $proposalLineItemAction; - $this->filterStatement = $filterStatement; + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; } } } -if (!class_exists("PerformProposalLineItemActionResponse", false)) { +if (!class_exists("BrowserPremiumFeature", false)) { /** - * + * A premium feature applied to browser targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class PerformProposalLineItemActionResponse { + class BrowserPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UpdateResult - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BrowserPremiumFeature"; /** * Gets the namesapce of this class @@ -7475,32 +8340,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateProposalLineItem", false)) { +if (!class_exists("BrowserLanguage", false)) { /** - * Updates the specified {@link ProposalLineItem}. - * - * @param proposalLineItem the proposal line item to update - * @return the updated proposal line item + * Represents a Browser's language. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateProposalLineItem { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class BrowserLanguage extends Technology { - /** - * @access public - * @var ProposalLineItem - */ - public $proposalLineItem; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BrowserLanguage"; /** * Gets the namesapce of this class @@ -7518,29 +8374,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposalLineItem = null) { - $this->proposalLineItem = $proposalLineItem; + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; } } } -if (!class_exists("UpdateProposalLineItemResponse", false)) { +if (!class_exists("BrowserLanguagePremiumFeature", false)) { /** - * + * A premium feature applied to browser language targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateProposalLineItemResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class BrowserLanguagePremiumFeature extends PremiumFeature { - /** - * @access public - * @var ProposalLineItem - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BrowserLanguagePremiumFeature"; /** * Gets the namesapce of this class @@ -7558,32 +8410,39 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } } -if (!class_exists("UpdateProposalLineItems", false)) { +if (!class_exists("CustomCriteriaSet", false)) { /** - * Updates the specified {@link ProposalLineItem} objects. - * - * @param proposalLineItems the proposal line items to update - * @return the updated proposal line items + * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} + * objects combined by the + * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom + * criteria targeting tree is subject to the rules defined on + * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateProposalLineItems { + class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet"; /** * @access public - * @var ProposalLineItem[] + * @var tnsCustomCriteriaSetLogicalOperator */ - public $proposalLineItems; + public $logicalOperator; + + /** + * @access public + * @var CustomCriteriaNode[] + */ + public $children; /** * Gets the namesapce of this class @@ -7601,29 +8460,37 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposalLineItems = null) { - $this->proposalLineItems = $proposalLineItems; + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; } } } -if (!class_exists("UpdateProposalLineItemsResponse", false)) { +if (!class_exists("CustomTargetingPremiumFeature", false)) { /** - * + * A premium feature applied to custom criteria targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateProposalLineItemsResponse { + class CustomTargetingPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomTargetingPremiumFeature"; /** * @access public - * @var ProposalLineItem[] + * @var integer */ - public $rval; + public $customTargetingKeyId; + + /** + * @access public + * @var integer + */ + public $customTargetingValueId; /** * Gets the namesapce of this class @@ -7641,29 +8508,26 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct($customTargetingKeyId = null, $customTargetingValueId = null) { + parent::__construct(); + $this->customTargetingKeyId = $customTargetingKeyId; + $this->customTargetingValueId = $customTargetingValueId; } } } -if (!class_exists("ApiException", false)) { +if (!class_exists("CustomCriteriaLeaf", false)) { /** - * Exception class for holding a list of service errors. + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ApiException extends ApplicationException { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ApiException"; + class CustomCriteriaLeaf extends CustomCriteriaNode { - /** - * @access public - * @var ApiError[] - */ - public $errors; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaLeaf"; /** * Gets the namesapce of this class @@ -7681,26 +8545,35 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct() { parent::__construct(); - $this->errors = $errors; - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } } -if (!class_exists("ArchiveProposalLineItems", false)) { +if (!class_exists("AudienceSegmentCriteria", false)) { /** - * The action used for archiving {@link ProposalLineItem} objects. + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ArchiveProposalLineItems extends ProposalLineItemAction { + class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ArchiveProposalLineItems"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @access public + * @var tnsAudienceSegmentCriteriaComparisonOperator + */ + public $operator; + + /** + * @access public + * @var integer[] + */ + public $audienceSegmentIds; /** * Gets the namesapce of this class @@ -7718,25 +8591,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalLineItemActionType = null) { + public function __construct($operator = null, $audienceSegmentIds = null) { parent::__construct(); - $this->ProposalLineItemActionType = $ProposalLineItemActionType; + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; } } } -if (!class_exists("BandwidthGroup", false)) { +if (!class_exists("DateTimeValue", false)) { /** - * Represents a group of bandwidths that are logically organized by some well - * known generic names such as 'Cable' or 'DSL'. + * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BandwidthGroup extends Technology { + class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BandwidthGroup"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; /** * Gets the namesapce of this class @@ -7754,30 +8633,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($value = null) { parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; + $this->value = $value; } } } -if (!class_exists("BooleanValue", false)) { +if (!class_exists("DateValue", false)) { /** - * Contains a boolean value. + * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BooleanValue extends Value { + class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BooleanValue"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateValue"; /** * @access public - * @var boolean + * @var Date */ public $value; @@ -7797,37 +8674,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("Browser", false)) { +if (!class_exists("DaypartPremiumFeature", false)) { /** - * Represents an internet browser. + * A premium feature applied to daypart targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Browser extends Technology { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Browser"; - - /** - * @access public - * @var string - */ - public $majorVersion; + class DaypartPremiumFeature extends PremiumFeature { - /** - * @access public - * @var string - */ - public $minorVersion; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DaypartPremiumFeature"; /** * Gets the namesapce of this class @@ -7845,28 +8709,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct() { parent::__construct(); - $this->majorVersion = $majorVersion; - $this->minorVersion = $minorVersion; - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; } } } -if (!class_exists("BrowserLanguage", false)) { +if (!class_exists("DeviceCapability", false)) { /** - * Represents a Browser's language. + * Represents a capability of a physical device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class BrowserLanguage extends Technology { + class DeviceCapability extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "BrowserLanguage"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCapability"; /** * Gets the namesapce of this class @@ -7884,42 +8743,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } } -if (!class_exists("CustomCriteriaSet", false)) { +if (!class_exists("DeviceCapabilityPremiumFeature", false)) { /** - * A {@link CustomCriteriaSet} comprises of a set of {@link CustomCriteriaNode} - * objects combined by the - * {@link CustomCriteriaSet.LogicalOperator#logicalOperator}. The custom - * criteria targeting tree is subject to the rules defined on - * {@link Targeting#customTargeting}. + * A premium feature applied to device capability targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCriteriaSet extends CustomCriteriaNode { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaSet"; - - /** - * @access public - * @var tnsCustomCriteriaSetLogicalOperator - */ - public $logicalOperator; + class DeviceCapabilityPremiumFeature extends PremiumFeature { - /** - * @access public - * @var CustomCriteriaNode[] - */ - public $children; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCapabilityPremiumFeature"; /** * Gets the namesapce of this class @@ -7937,27 +8779,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { + public function __construct() { parent::__construct(); - $this->logicalOperator = $logicalOperator; - $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } } -if (!class_exists("CustomCriteriaLeaf", false)) { +if (!class_exists("DeviceCategory", false)) { /** - * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree - * structure. + * Represents the category of a device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomCriteriaLeaf extends CustomCriteriaNode { + class DeviceCategory extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomCriteriaLeaf"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCategory"; /** * Gets the namesapce of this class @@ -7975,36 +8813,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + $this->id = $id; + $this->name = $name; } } } -if (!class_exists("AudienceSegmentCriteria", false)) { +if (!class_exists("DeviceCategoryPremiumFeature", false)) { /** - * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * A premium feature applied to device category targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AudienceSegmentCriteria extends CustomCriteriaLeaf { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AudienceSegmentCriteria"; - - /** - * @access public - * @var tnsAudienceSegmentCriteriaComparisonOperator - */ - public $operator; + class DeviceCategoryPremiumFeature extends PremiumFeature { - /** - * @access public - * @var integer[] - */ - public $audienceSegmentIds; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCategoryPremiumFeature"; /** * Gets the namesapce of this class @@ -8022,31 +8849,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($operator = null, $audienceSegmentIds = null) { + public function __construct() { parent::__construct(); - $this->operator = $operator; - $this->audienceSegmentIds = $audienceSegmentIds; } } } -if (!class_exists("DateTimeValue", false)) { +if (!class_exists("DeviceManufacturer", false)) { /** - * Contains a date-time value. + * Represents a mobile device's manufacturer. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DateTimeValue extends Value { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateTimeValue"; + class DeviceManufacturer extends Technology { - /** - * @access public - * @var DateTime - */ - public $value; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceManufacturer"; /** * Gets the namesapce of this class @@ -8064,31 +8883,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; + $this->id = $id; + $this->name = $name; } } } -if (!class_exists("DateValue", false)) { +if (!class_exists("DeviceManufacturerPremiumFeature", false)) { /** - * Contains a date value. + * A premium feature applied to device manufacturer targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DateValue extends Value { + class DeviceManufacturerPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DateValue"; - - /** - * @access public - * @var Date - */ - public $value; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceManufacturerPremiumFeature"; /** * Gets the namesapce of this class @@ -8106,25 +8919,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct() { parent::__construct(); - $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("DeviceCapability", false)) { +if (!class_exists("FrequencyCapPremiumFeature", false)) { /** - * Represents a capability of a physical device. + * A premium feature applied to frequency caps. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeviceCapability extends Technology { + class FrequencyCapPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCapability"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FrequencyCapPremiumFeature"; /** * Gets the namesapce of this class @@ -8142,26 +8953,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct() { parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; } } } -if (!class_exists("DeviceCategory", false)) { +if (!class_exists("GeographyPremiumFeature", false)) { /** - * Represents the category of a device. + * A premium feature applied to geography targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeviceCategory extends Technology { + class GeographyPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceCategory"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeographyPremiumFeature"; /** * Gets the namesapce of this class @@ -8179,26 +8987,24 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct() { parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; } } } -if (!class_exists("DeviceManufacturer", false)) { +if (!class_exists("MobileCarrier", false)) { /** - * Represents a mobile device's manufacturer. + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DeviceManufacturer extends Technology { + class MobileCarrier extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "DeviceManufacturer"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileCarrier"; /** * Gets the namesapce of this class @@ -8216,27 +9022,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } } -if (!class_exists("MobileCarrier", false)) { +if (!class_exists("MobileCarrierPremiumFeature", false)) { /** - * Represents a mobile carrier. - * Carrier targeting is only available to DFP mobile publishers. + * A premium feature applied to mobile carrier targeting. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class MobileCarrier extends Technology { + class MobileCarrierPremiumFeature extends PremiumFeature { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "MobileCarrier"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileCarrierPremiumFeature"; /** * Gets the namesapce of this class @@ -8254,11 +9058,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct() { parent::__construct(); - $this->id = $id; - $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -8268,11 +9069,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a Mobile Device. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDevice extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDevice"; /** @@ -8297,12 +9098,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->manufacturerCriterionId = $manufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -8312,11 +9112,11 @@ public function __construct($manufacturerCriterionId = null, $id = null, $name = /** * Represents a mobile device submodel. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class MobileDeviceSubmodel extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodel"; /** @@ -8347,13 +9147,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -8363,11 +9162,11 @@ public function __construct($mobileDeviceCriterionId = null, $deviceManufacturer /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -8392,10 +9191,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -8405,11 +9203,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an Operating System, such as Linux, Mac OS or Windows. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystem extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystem"; /** @@ -8428,11 +9226,44 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; + } + + } +} + +if (!class_exists("OperatingSystemPremiumFeature", false)) { + /** + * A premium feature applied to operating system targeting. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class OperatingSystemPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OperatingSystemPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); } } @@ -8442,11 +9273,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific version of an operating system. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class OperatingSystemVersion extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersion"; /** @@ -8483,14 +9314,47 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->microVersion = $microVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; + } + + } +} + +if (!class_exists("PlacementPremiumFeature", false)) { + /** + * A premium feature applied to placement targeting. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PlacementPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PlacementPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); } } @@ -8500,11 +9364,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $microVe /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -8529,10 +9393,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -8542,11 +9405,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -8571,10 +9434,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -8586,11 +9448,11 @@ public function __construct($value = null, $ValueType = null) { * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} * or {@link CustomTargetingKey.Type#FREEFORM}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria"; /** @@ -8641,25 +9503,27 @@ public function __construct($keyId = null, $valueIds = null, $operator = null) { /** * ProposalLineItemService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalLineItemService extends DfpSoapClient { const SERVICE_NAME = "ProposalLineItemService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ProposalLineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ProposalLineItemService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ProposalLineItemService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ProposalLineItemService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", + "AdUnitPremiumFeature" => "AdUnitPremiumFeature", "AdUnitTargeting" => "AdUnitTargeting", "ApiError" => "ApiError", "ApiException" => "ApiException", @@ -8668,18 +9532,22 @@ class ProposalLineItemService extends DfpSoapClient { "ApplicationException" => "ApplicationException", "AppliedLabel" => "AppliedLabel", "ArchiveProposalLineItems" => "ArchiveProposalLineItems", - "Authentication" => "Authentication", + "AudienceSegmentPremiumFeature" => "AudienceSegmentPremiumFeature", "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", + "BandwidthPremiumFeature" => "BandwidthPremiumFeature", "BandwidthGroup" => "BandwidthGroup", "BandwidthGroupTargeting" => "BandwidthGroupTargeting", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BillingError" => "BillingError", "BooleanValue" => "BooleanValue", "Browser" => "Browser", + "BrowserPremiumFeature" => "BrowserPremiumFeature", "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", @@ -8689,6 +9557,7 @@ class ProposalLineItemService extends DfpSoapClient { "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingPremiumFeature" => "CustomTargetingPremiumFeature", "CustomCriteriaLeaf" => "CustomCriteriaLeaf", "CustomCriteriaNode" => "CustomCriteriaNode", "AudienceSegmentCriteria" => "AudienceSegmentCriteria", @@ -8697,29 +9566,39 @@ class ProposalLineItemService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DayPart" => "DayPart", + "DaypartPremiumFeature" => "DaypartPremiumFeature", "DayPartTargeting" => "DayPartTargeting", "DayPartTargetingError" => "DayPartTargetingError", "DeliveryData" => "DeliveryData", "DeliveryIndicator" => "DeliveryIndicator", "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityPremiumFeature" => "DeviceCapabilityPremiumFeature", "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", "DeviceCategory" => "DeviceCategory", + "DeviceCategoryPremiumFeature" => "DeviceCategoryPremiumFeature", "DeviceCategoryTargeting" => "DeviceCategoryTargeting", "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "FrequencyCap" => "FrequencyCap", "FrequencyCapError" => "FrequencyCapError", + "FrequencyCapPremiumFeature" => "FrequencyCapPremiumFeature", "GenericTargetingError" => "GenericTargetingError", "GeoTargeting" => "GeoTargeting", "GeoTargetingError" => "GeoTargetingError", + "GeographyPremiumFeature" => "GeographyPremiumFeature", + "Goal" => "Goal", "InternalApiError" => "InternalApiError", "InventoryTargeting" => "InventoryTargeting", "InventoryTargetingError" => "InventoryTargetingError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "Location" => "DfpLocation", "MobileCarrier" => "MobileCarrier", + "MobileCarrierPremiumFeature" => "MobileCarrierPremiumFeature", "MobileCarrierTargeting" => "MobileCarrierTargeting", "MobileDevice" => "MobileDevice", "MobileDeviceSubmodel" => "MobileDeviceSubmodel", @@ -8728,17 +9607,22 @@ class ProposalLineItemService extends DfpSoapClient { "Money" => "Money", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OperatingSystem" => "OperatingSystem", + "OperatingSystemPremiumFeature" => "OperatingSystemPremiumFeature", "OperatingSystemTargeting" => "OperatingSystemTargeting", "OperatingSystemVersion" => "OperatingSystemVersion", "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", "PermissionError" => "PermissionError", + "PlacementPremiumFeature" => "PlacementPremiumFeature", "PrecisionError" => "PrecisionError", + "PremiumFeature" => "PremiumFeature", + "PremiumRateValue" => "PremiumRateValue", "ProductError" => "ProductError", + "ProductTemplateTargeting" => "ProductTemplateTargeting", "ProposalError" => "ProposalError", "ProposalLineItemAction" => "ProposalLineItemAction", "ProposalLineItemActionError" => "ProposalLineItemActionError", + "ProposalLineItemConstraints" => "ProposalLineItemConstraints", "ProposalLineItem" => "ProposalLineItem", "ProposalLineItemError" => "ProposalLineItemError", "ProposalLineItemPage" => "ProposalLineItemPage", @@ -8765,9 +9649,12 @@ class ProposalLineItemService extends DfpSoapClient { "TechnologyTargetingError" => "TechnologyTargetingError", "TextValue" => "TextValue", "TimeOfDay" => "TimeOfDay", + "TimeZoneError" => "TimeZoneError", "UnarchiveProposalLineItems" => "UnarchiveProposalLineItems", "UniqueError" => "UniqueError", + "UnknownPremiumFeature" => "UnknownPremiumFeature", "UpdateResult" => "UpdateResult", + "UserDomainPremiumFeature" => "UserDomainPremiumFeature", "UserDomainTargeting" => "UserDomainTargeting", "UserDomainTargetingError" => "UserDomainTargetingError", "Value" => "Value", @@ -8777,10 +9664,13 @@ class ProposalLineItemService extends DfpSoapClient { "VideoPositionTarget" => "VideoPositionTarget", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "BillingBase" => "BillingBase", "BillingCap" => "BillingCap", "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CompanionDeliveryOption" => "CompanionDeliveryOption", "ComputedStatus" => "ComputedStatus", @@ -8796,10 +9686,12 @@ class ProposalLineItemService extends DfpSoapClient { "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", "DeliveryTimeZone" => "DeliveryTimeZone", "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "FrequencyCapError.Reason" => "FrequencyCapErrorReason", "GenericTargetingError.Reason" => "GenericTargetingErrorReason", "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GoalType" => "GoalType", "InternalApiError.Reason" => "InternalApiErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", @@ -8808,6 +9700,7 @@ class ProposalLineItemService extends DfpSoapClient { "NotNullError.Reason" => "NotNullErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PrecisionError.Reason" => "PrecisionErrorReason", + "PremiumAdjustmentType" => "PremiumAdjustmentType", "ProductError.Reason" => "ProductErrorReason", "ProposalError.Reason" => "ProposalErrorReason", "ProposalLineItemActionError.Reason" => "ProposalLineItemActionErrorReason", @@ -8828,21 +9721,17 @@ class ProposalLineItemService extends DfpSoapClient { "TeamError.Reason" => "TeamErrorReason", "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", "TimeUnit" => "TimeUnit", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UnitType" => "UnitType", "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", "VideoBumperType" => "VideoBumperType", "VideoPosition.Type" => "VideoPositionType", - "createProposalLineItem" => "CreateProposalLineItem", - "createProposalLineItemResponse" => "CreateProposalLineItemResponse", "createProposalLineItems" => "CreateProposalLineItems", "createProposalLineItemsResponse" => "CreateProposalLineItemsResponse", - "getProposalLineItem" => "GetProposalLineItem", - "getProposalLineItemResponse" => "GetProposalLineItemResponse", "getProposalLineItemsByStatement" => "GetProposalLineItemsByStatement", "getProposalLineItemsByStatementResponse" => "GetProposalLineItemsByStatementResponse", "performProposalLineItemAction" => "PerformProposalLineItemAction", "performProposalLineItemActionResponse" => "PerformProposalLineItemActionResponse", - "updateProposalLineItem" => "UpdateProposalLineItem", - "updateProposalLineItemResponse" => "UpdateProposalLineItemResponse", "updateProposalLineItems" => "UpdateProposalLineItems", "updateProposalLineItemsResponse" => "UpdateProposalLineItemsResponse", ); @@ -8858,27 +9747,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link ProposalLineItem}. - * - * The following fields are required: - *
      - *
    • {@link ProposalLineItem#proposalId}
    • - *
    • {@link ProposalLineItem#rateCardId}
    • - *
    • {@link ProposalLineItem#productId}
    • - *
    • {@link ProposalLineItem#name}
    • - *
    • {@link ProposalLineItem#startDateTime}
    • - *
    • {@link ProposalLineItem#endDateTime}
    • - *
    - * - * @param proposalLineItem the proposal line item to create - * @return the created proposal line item with its ID filled in - */ - public function createProposalLineItem($proposalLineItem) { - $args = new CreateProposalLineItem($proposalLineItem); - $result = $this->__soapCall("createProposalLineItem", array($args)); - return $result->rval; - } /** * Creates new {@link ProposalLineItem} objects. * @@ -8900,17 +9768,6 @@ public function createProposalLineItems($proposalLineItems) { $result = $this->__soapCall("createProposalLineItems", array($args)); return $result->rval; } - /** - * Returns the {@link ProposalLineItem} uniquely identified by the given ID. - * - * @param proposalLineItemId the ID of the proposal line item, which must already exist - * @return the proposal line item uniquely identified by the given ID - */ - public function getProposalLineItem($proposalLineItemId) { - $args = new GetProposalLineItem($proposalLineItemId); - $result = $this->__soapCall("getProposalLineItem", array($args)); - return $result->rval; - } /** * Gets a {@link ProposalLineItemPage} of {@link ProposalLineItem} objects * that satisfy the given {@link Statement#query}. The following fields are supported for @@ -8977,17 +9834,6 @@ public function performProposalLineItemAction($proposalLineItemAction, $filterSt $result = $this->__soapCall("performProposalLineItemAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link ProposalLineItem}. - * - * @param proposalLineItem the proposal line item to update - * @return the updated proposal line item - */ - public function updateProposalLineItem($proposalLineItem) { - $args = new UpdateProposalLineItem($proposalLineItem); - $result = $this->__soapCall("updateProposalLineItem", array($args)); - return $result->rval; - } /** * Updates the specified {@link ProposalLineItem} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201311/ProposalService.php b/src/Google/Api/Ads/Dfp/v201502/ProposalService.php similarity index 83% rename from src/Google/Api/Ads/Dfp/v201311/ProposalService.php rename to src/Google/Api/Ads/Dfp/v201502/ProposalService.php index de2c1086e..9f0f61e91 100755 --- a/src/Google/Api/Ads/Dfp/v201311/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProposalService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,9 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -255,11 +176,11 @@ public function __construct($message = null, $ApplicationExceptionType = null) { * inherited label, create an {@code AppliedLabel} with {@code labelId} as the * inherited label's ID and {@code isNegated} set to true. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AppliedLabel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AppliedLabel"; /** @@ -298,54 +219,22 @@ public function __construct($labelId = null, $isNegated = null) { } } -if (!class_exists("Authentication", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * A representation of the authentication protocols that can be used. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class Authentication { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsAuthenticationErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -363,27 +252,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("AvailableBillingError", false)) { /** - * An error for an exception that occurred when authenticating. + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class AvailableBillingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsAvailableBillingErrorReason */ public $reason; @@ -403,13 +297,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -419,11 +312,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -432,44 +325,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -486,9 +341,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -498,11 +352,11 @@ public function __construct($customFieldId = null, $BaseCustomFieldValueType = n /** * Lists all errors associated with the billing settings of a proposal or proposal line item. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BillingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BillingError"; /** @@ -527,36 +381,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -574,10 +425,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -587,11 +440,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -616,13 +469,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -633,11 +485,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -662,11 +514,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -676,11 +527,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -705,13 +556,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -721,11 +571,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -775,11 +625,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -844,11 +694,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -873,11 +723,92 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("EntityLimitReachedError", false)) { + /** + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -888,11 +819,11 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -917,13 +848,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -933,11 +863,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors that can result from a forecast request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError"; /** @@ -962,13 +892,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -980,11 +909,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -1009,13 +938,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1025,11 +953,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError"; /** @@ -1054,13 +982,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1070,11 +997,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError"; /** @@ -1099,13 +1026,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1115,11 +1041,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors for executing operations on line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError"; /** @@ -1144,13 +1070,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1160,11 +1085,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -1207,11 +1132,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -1236,36 +1161,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("PackageActionError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Lists all errors for executing actions on {@link Package} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class PackageActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageActionError"; /** * @access public - * @var string + * @var tnsPackageActionErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -1283,10 +1205,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PackageError", false)) { + /** + * Lists all errors associated with {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PackageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageError"; + + /** + * @access public + * @var tnsPackageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1296,11 +1264,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1325,13 +1293,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1341,11 +1308,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * List all errors associated with number precisions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PrecisionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PrecisionError"; /** @@ -1370,13 +1337,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1386,11 +1352,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A catch-all error that lists all generic errors associated with Product. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProductError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductError"; /** @@ -1415,13 +1381,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1431,50 +1396,51 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the actions that can be performed on {@link Proposal} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalAction"; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $ProposalActionType; - private $_parameterMap = array( - "ProposalAction.Type" => "ProposalActionType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function __construct() { } + } +} + +if (!class_exists("ProposalActionError", false)) { + /** + * Lists all errors associated with performing actions on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ProposalActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalActionError"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var tnsProposalActionErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -1492,29 +1458,63 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalActionType = null) { - $this->ProposalActionType = $ProposalActionType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ProposalActionError", false)) { +if (!class_exists("ProposalLink", false)) { /** - * Lists all errors associated with performing actions on {@link Proposal} objects. + * A link that can be added as a resource to a {@link Proposal}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ProposalActionError extends ApiError { + class ProposalLink { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ProposalActionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ProposalLink"; /** * @access public - * @var tnsProposalActionErrorReason + * @var integer */ - public $reason; + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; /** * Gets the namesapce of this class @@ -1532,13 +1532,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($id = null, $name = null, $creatorId = null, $url = null, $description = null, $creationDateTime = null) { + $this->id = $id; + $this->name = $name; + $this->creatorId = $creatorId; + $this->url = $url; + $this->description = $description; + $this->creationDateTime = $creationDateTime; } } @@ -1549,11 +1549,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A {@code ProposalCompanyAssociation} represents a {@link Company} associated with the * {@link Proposal} and a set of {@link Contact} objects belonging to the company. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalCompanyAssociation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalCompanyAssociation"; /** @@ -1605,11 +1605,11 @@ public function __construct($companyId = null, $type = null, $contactIds = null) * advertising seller and a buyer that specifies the details of an * advertising campaign. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Proposal { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Proposal"; /** @@ -1648,6 +1648,12 @@ class Proposal { */ public $endDateTime; + /** + * @access public + * @var string + */ + public $timeZoneId; + /** * @access public * @var tnsProposalStatus @@ -1676,7 +1682,7 @@ class Proposal { * @access public * @var integer */ - public $probabilityToClose; + public $probabilityOfClose; /** * @access public @@ -1696,6 +1702,12 @@ class Proposal { */ public $billingSource; + /** + * @access public + * @var tnsBillingBase + */ + public $billingBase; + /** * @access public * @var string @@ -1782,51 +1794,75 @@ class Proposal { /** * @access public - * @var Money + * @var string */ - public $additionalAdjustment; + public $currencyCode; /** * @access public - * @var string + * @var integer */ - public $currencyCode; + public $exchangeRate; + + /** + * @access public + * @var boolean + */ + public $refreshExchangeRate; + + /** + * @access public + * @var integer + */ + public $agencyCommission; + + /** + * @access public + * @var integer + */ + public $valueAddedTax; + + /** + * @access public + * @var boolean + */ + public $isSold; /** * @access public - * @var integer + * @var tnsProposalApprovalStatus */ - public $exchangeRate; + public $approvalStatus; /** * @access public - * @var boolean + * @var DateTime */ - public $refreshExchangeRate; + public $lastModifiedDateTime; /** * @access public - * @var integer + * @var ProposalLink[] */ - public $agencyCommission; + public $resources; /** * @access public * @var integer */ - public $valueAddedTax; + public $thirdPartyAdServerId; /** * @access public - * @var tnsProposalApprovalStatus + * @var string */ - public $approvalStatus; + public $customThirdPartyAdServerName; /** * @access public - * @var DateTime + * @var RetractionDetails */ - public $lastModifiedDateTime; + public $lastRetractionDetails; /** * Gets the namesapce of this class @@ -1844,21 +1880,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $dfpOrderId = null, $name = null, $pricingModel = null, $startDateTime = null, $endDateTime = null, $status = null, $isArchived = null, $advertiser = null, $agencies = null, $probabilityToClose = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $poNumber = null, $notes = null, $budget = null, $primarySalesperson = null, $secondarySalespeople = null, $salesPlannerIds = null, $primaryTraffickerId = null, $secondaryTraffickerIds = null, $appliedTeamIds = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $advertiserDiscount = null, $proposalDiscount = null, $additionalAdjustment = null, $currencyCode = null, $exchangeRate = null, $refreshExchangeRate = null, $agencyCommission = null, $valueAddedTax = null, $approvalStatus = null, $lastModifiedDateTime = null) { + public function __construct($id = null, $dfpOrderId = null, $name = null, $pricingModel = null, $startDateTime = null, $endDateTime = null, $timeZoneId = null, $status = null, $isArchived = null, $advertiser = null, $agencies = null, $probabilityOfClose = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $billingBase = null, $poNumber = null, $notes = null, $budget = null, $primarySalesperson = null, $secondarySalespeople = null, $salesPlannerIds = null, $primaryTraffickerId = null, $secondaryTraffickerIds = null, $appliedTeamIds = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $advertiserDiscount = null, $proposalDiscount = null, $currencyCode = null, $exchangeRate = null, $refreshExchangeRate = null, $agencyCommission = null, $valueAddedTax = null, $isSold = null, $approvalStatus = null, $lastModifiedDateTime = null, $resources = null, $thirdPartyAdServerId = null, $customThirdPartyAdServerName = null, $lastRetractionDetails = null) { $this->id = $id; $this->dfpOrderId = $dfpOrderId; $this->name = $name; $this->pricingModel = $pricingModel; $this->startDateTime = $startDateTime; $this->endDateTime = $endDateTime; + $this->timeZoneId = $timeZoneId; $this->status = $status; $this->isArchived = $isArchived; $this->advertiser = $advertiser; $this->agencies = $agencies; - $this->probabilityToClose = $probabilityToClose; + $this->probabilityOfClose = $probabilityOfClose; $this->billingCap = $billingCap; $this->billingSchedule = $billingSchedule; $this->billingSource = $billingSource; + $this->billingBase = $billingBase; $this->poNumber = $poNumber; $this->notes = $notes; $this->budget = $budget; @@ -1873,14 +1911,18 @@ public function __construct($id = null, $dfpOrderId = null, $name = null, $prici $this->effectiveAppliedLabels = $effectiveAppliedLabels; $this->advertiserDiscount = $advertiserDiscount; $this->proposalDiscount = $proposalDiscount; - $this->additionalAdjustment = $additionalAdjustment; $this->currencyCode = $currencyCode; $this->exchangeRate = $exchangeRate; $this->refreshExchangeRate = $refreshExchangeRate; $this->agencyCommission = $agencyCommission; $this->valueAddedTax = $valueAddedTax; + $this->isSold = $isSold; $this->approvalStatus = $approvalStatus; $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->resources = $resources; + $this->thirdPartyAdServerId = $thirdPartyAdServerId; + $this->customThirdPartyAdServerName = $customThirdPartyAdServerName; + $this->lastRetractionDetails = $lastRetractionDetails; } } @@ -1890,11 +1932,11 @@ public function __construct($id = null, $dfpOrderId = null, $name = null, $prici /** * Lists all errors associated with proposals. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalError"; /** @@ -1919,13 +1961,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1935,11 +1976,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with proposal line items. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalLineItemError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalLineItemError"; /** @@ -1964,13 +2005,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1980,11 +2020,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Proposal} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalPage"; /** @@ -2035,11 +2075,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -2064,13 +2104,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2081,11 +2120,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -2110,13 +2149,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2127,11 +2165,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -2156,13 +2194,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2172,11 +2209,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -2201,13 +2238,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2217,11 +2253,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -2246,13 +2282,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2262,11 +2297,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -2291,13 +2326,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2308,11 +2342,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -2337,13 +2371,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2353,13 +2386,19 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The action used for retracting {@link Proposal} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RetractProposals extends ProposalAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RetractProposals"; + /** + * @access public + * @var RetractionDetails + */ + public $retractionDetails; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -2376,9 +2415,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalActionType = null) { + public function __construct($retractionDetails = null) { parent::__construct(); - $this->ProposalActionType = $ProposalActionType; + $this->retractionDetails = $retractionDetails; + } + + } +} + +if (!class_exists("RetractionDetails", false)) { + /** + * Details describing why a {@link Proposal} was retracted. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RetractionDetails { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RetractionDetails"; + + /** + * @access public + * @var integer + */ + public $retractionReasonId; + + /** + * @access public + * @var string + */ + public $comments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($retractionReasonId = null, $comments = null) { + $this->retractionReasonId = $retractionReasonId; + $this->comments = $comments; } } @@ -2388,11 +2474,11 @@ public function __construct($ProposalActionType = null) { /** * A {@code SalespersonSplit} represents a salesperson and his/her split. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SalespersonSplit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SalespersonSplit"; /** @@ -2435,11 +2521,11 @@ public function __construct($userId = null, $split = null) { /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -2464,13 +2550,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2480,11 +2565,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -2499,12 +2584,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2521,10 +2600,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -2534,11 +2612,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -2609,11 +2687,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -2656,11 +2734,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -2685,13 +2763,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2701,11 +2778,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -2730,13 +2807,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2747,11 +2823,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -2794,11 +2870,11 @@ public function __construct($key = null, $value = null) { /** * The action used for submitting {@link Proposal} objects for approval. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SubmitProposalsForApproval extends ProposalAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SubmitProposalsForApproval"; /** @@ -2817,9 +2893,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalActionType = null) { + public function __construct() { parent::__construct(); - $this->ProposalActionType = $ProposalActionType; } } @@ -2829,11 +2904,11 @@ public function __construct($ProposalActionType = null) { /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -2858,13 +2933,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2874,11 +2992,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -2897,12 +3015,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2912,11 +3029,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * The action used for unarchiving {@link Proposal} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UnarchiveProposals extends ProposalAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UnarchiveProposals"; /** @@ -2935,9 +3052,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalActionType = null) { + public function __construct() { parent::__construct(); - $this->ProposalActionType = $ProposalActionType; } } @@ -2947,11 +3063,11 @@ public function __construct($ProposalActionType = null) { /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -2970,12 +3086,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2985,11 +3100,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -3025,50 +3140,51 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function __construct() { } + } +} + +if (!class_exists("WorkflowActionError", false)) { + /** + * Lists all errors associated with performing actions within {@link WorkflowAction}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class WorkflowActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowActionError"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var tnsWorkflowActionErrorReason */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $reason; /** * Gets the namesapce of this class @@ -3086,30 +3202,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("WorkflowActionError", false)) { +if (!class_exists("WorkflowValidationError", false)) { /** - * Lists all errors associated with performing actions within {@link WorkflowAction}. + * Lists all errors associated with workflow validation. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class WorkflowActionError extends ApiError { + class WorkflowValidationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "WorkflowActionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowValidationError"; /** * @access public - * @var tnsWorkflowActionErrorReason + * @var tnsWorkflowValidationErrorReason */ public $reason; + /** + * @access public + * @var string + */ + public $workflowErrorMessage; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -3126,13 +3252,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $workflowErrorMessage = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; + $this->workflowErrorMessage = $workflowErrorMessage; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3143,11 +3269,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -3179,11 +3305,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -3208,16 +3334,82 @@ public function __construct() { } } +if (!class_exists("AvailableBillingErrorReason", false)) { + /** + * The error reason represented by an enum. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AvailableBillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AvailableBillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingBase", false)) { + /** + * Determines the base of billing calculation. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BillingBase { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BillingBase"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("BillingCap", false)) { /** * Determines how the revenue amount will be capped for each billing month. This cannot be used when * {@link BillingSource} is {@link BillingSource#CONTRACTED}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BillingCap { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BillingCap"; /** @@ -3246,11 +3438,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BillingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BillingError.Reason"; /** @@ -3281,11 +3473,11 @@ public function __construct() { * contracted value. This can only be used when {@link BillingSource} is * {@link BillingSource#CONTRACTED}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BillingSchedule { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BillingSchedule"; /** @@ -3315,11 +3507,11 @@ public function __construct() { * Determines which billable numbers or delivery data (impressions, clicks, and so on) * will be used for billing purposes. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BillingSource { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BillingSource"; /** @@ -3344,16 +3536,82 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** - * Describes reasons for common errors + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CommonErrorReason { + class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomFieldValueError.Reason"; /** * Gets the namesapce of this class @@ -3377,16 +3635,16 @@ public function __construct() { } } -if (!class_exists("CustomFieldValueErrorReason", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CustomFieldValueErrorReason { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "CustomFieldValueError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -3414,11 +3672,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -3447,11 +3705,11 @@ public function __construct() { /** * Reason why a forecast could not be retrieved. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError.Reason"; /** @@ -3480,11 +3738,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -3513,11 +3771,11 @@ public function __construct() { /** * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidUrlError.Reason"; /** @@ -3546,11 +3804,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -3579,11 +3837,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError.Reason"; /** @@ -3612,11 +3870,11 @@ public function __construct() { /** * Describes the {@link Proposal} status in terms of pending approvals of active user. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalApprovalStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalApprovalStatus"; /** @@ -3645,11 +3903,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -3674,15 +3932,81 @@ public function __construct() { } } +if (!class_exists("PackageActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageErrorReason", false)) { + /** + * The reasons for the {@link PackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PackageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PackageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("PermissionErrorReason", false)) { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -3711,11 +4035,11 @@ public function __construct() { /** * Describes reasons for precision errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PrecisionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PrecisionError.Reason"; /** @@ -3744,11 +4068,11 @@ public function __construct() { /** * The option to specify whether the proposal uses the Net or Gross pricing model. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PricingModel { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PricingModel"; /** @@ -3777,11 +4101,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProductErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProductError.Reason"; /** @@ -3810,11 +4134,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalActionError.Reason"; /** @@ -3843,11 +4167,11 @@ public function __construct() { /** * Describes the type of a {@link Company} associated with a {@link Proposal}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalCompanyAssociationType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalCompanyAssociationType"; /** @@ -3876,11 +4200,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalError.Reason"; /** @@ -3909,11 +4233,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalLineItemErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalLineItemError.Reason"; /** @@ -3942,11 +4266,11 @@ public function __construct() { /** * Describes the {@link Proposal} status. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalStatus"; /** @@ -3975,11 +4299,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -4008,11 +4332,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -4051,11 +4375,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -4084,11 +4408,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -4117,11 +4441,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -4150,11 +4474,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -4183,11 +4507,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -4216,11 +4540,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -4249,11 +4573,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -4282,11 +4606,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -4315,11 +4639,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -4344,16 +4668,16 @@ public function __construct() { } } -if (!class_exists("WorkflowActionErrorReason", false)) { +if (!class_exists("TimeZoneErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for invalid timezone. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class WorkflowActionErrorReason { + class TimeZoneErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "WorkflowActionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; /** * Gets the namesapce of this class @@ -4377,30 +4701,16 @@ public function __construct() { } } -if (!class_exists("CreateProposal", false)) { +if (!class_exists("WorkflowActionErrorReason", false)) { /** - * Creates a new {@link Proposal}. - * - * The following fields are required: - *
      - *
    • {@link Proposal#name}
    • - *
    - * - * @param proposal the proposal to create - * @return the created proposal with its ID filled in + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class WorkflowActionErrorReason { - /** - * @access public - * @var Proposal - */ - public $proposal; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowActionError.Reason"; /** * Gets the namesapce of this class @@ -4418,29 +4728,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposal = null) { - $this->proposal = $proposal; + public function __construct() { } } } -if (!class_exists("CreateProposalResponse", false)) { +if (!class_exists("WorkflowValidationErrorReason", false)) { /** - * + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class CreateProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class WorkflowValidationErrorReason { - /** - * @access public - * @var Proposal - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowValidationError.Reason"; /** * Gets the namesapce of this class @@ -4458,8 +4761,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } @@ -4477,11 +4779,11 @@ public function __construct($rval = null) { * @param proposals the proposals to create * @return the created proposals with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateProposals { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4517,11 +4819,11 @@ public function __construct($proposals = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CreateProposalsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4553,89 +4855,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetProposal", false)) { - /** - * Returns the {@link Proposal} uniquely identified by the given ID. - * - * @param proposalId the ID of the proposal, which must already exist - * @return the proposal uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProposal { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $proposalId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposalId = null) { - $this->proposalId = $proposalId; - } - - } -} - -if (!class_exists("GetProposalResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class GetProposalResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetProposalsByStatement", false)) { /** * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given @@ -4651,6 +4870,10 @@ public function __construct($rval = null) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * @@ -4684,11 +4907,11 @@ public function __construct($rval = null) { * a set of proposals * @return the proposals that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetProposalsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4724,11 +4947,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetProposalsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4775,11 +4998,11 @@ public function __construct($rval = null) { * @param filterStatement a Publisher Query Language statement used to filter a set of proposals * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformProposalAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4822,11 +5045,11 @@ public function __construct($proposalAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformProposalActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -4858,25 +5081,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateProposal", false)) { +if (!class_exists("UpdateProposals", false)) { /** - * Updates the specified {@link Proposal}. + * Updates the specified {@link Proposal} objects. * - * @param proposal the proposal to update - * @return the updated proposal + * @param proposals the proposals to update + * @return the updated proposals * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateProposal { + class UpdateProposals { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Proposal + * @var Proposal[] */ - public $proposal; + public $proposals; /** * Gets the namesapce of this class @@ -4894,27 +5117,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($proposal = null) { - $this->proposal = $proposal; + public function __construct($proposals = null) { + $this->proposals = $proposals; } } } -if (!class_exists("UpdateProposalResponse", false)) { +if (!class_exists("UpdateProposalsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateProposalResponse { + class UpdateProposalsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Proposal + * @var Proposal[] */ public $rval; @@ -4941,65 +5164,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateProposals", false)) { - /** - * Updates the specified {@link Proposal} objects. - * - * @param proposals the proposals to update - * @return the updated proposals - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class UpdateProposals { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Proposal[] - */ - public $proposals; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($proposals = null) { - $this->proposals = $proposals; - } - - } -} - -if (!class_exists("UpdateProposalsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class UpdateProposalsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var Proposal[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -5017,8 +5198,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -5028,11 +5209,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -5057,11 +5238,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -5071,11 +5251,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * The action used for archiving {@link Proposal} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ArchiveProposals extends ProposalAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ArchiveProposals"; /** @@ -5094,9 +5274,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ProposalActionType = null) { + public function __construct() { parent::__construct(); - $this->ProposalActionType = $ProposalActionType; } } @@ -5106,11 +5285,11 @@ public function __construct($ProposalActionType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -5135,10 +5314,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5148,11 +5326,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -5177,10 +5355,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5190,11 +5367,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -5219,10 +5396,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5232,11 +5408,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -5261,10 +5437,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5274,11 +5449,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -5303,10 +5478,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -5316,11 +5490,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -5345,10 +5519,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -5358,37 +5531,38 @@ public function __construct($value = null, $ValueType = null) { /** * ProposalService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalService extends DfpSoapClient { const SERVICE_NAME = "ProposalService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/ProposalService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ProposalService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/ProposalService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ProposalService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "AppliedLabel" => "AppliedLabel", "ArchiveProposals" => "ArchiveProposals", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BillingError" => "BillingError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -5397,6 +5571,8 @@ class ProposalService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5406,12 +5582,14 @@ class ProposalService extends DfpSoapClient { "Money" => "Money", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", + "PackageActionError" => "PackageActionError", + "PackageError" => "PackageError", "PermissionError" => "PermissionError", "PrecisionError" => "PrecisionError", "ProductError" => "ProductError", "ProposalAction" => "ProposalAction", "ProposalActionError" => "ProposalActionError", + "ProposalLink" => "ProposalLink", "ProposalCompanyAssociation" => "ProposalCompanyAssociation", "Proposal" => "Proposal", "ProposalError" => "ProposalError", @@ -5425,6 +5603,7 @@ class ProposalService extends DfpSoapClient { "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", "RetractProposals" => "RetractProposals", + "RetractionDetails" => "RetractionDetails", "SalespersonSplit" => "SalespersonSplit", "ServerError" => "ServerError", "SetValue" => "SetValue", @@ -5437,20 +5616,26 @@ class ProposalService extends DfpSoapClient { "SubmitProposalsForApproval" => "SubmitProposalsForApproval", "TeamError" => "TeamError", "TextValue" => "TextValue", + "TimeZoneError" => "TimeZoneError", "TypeError" => "TypeError", "UnarchiveProposals" => "UnarchiveProposals", "UniqueError" => "UniqueError", "UpdateResult" => "UpdateResult", "Value" => "Value", "WorkflowActionError" => "WorkflowActionError", + "WorkflowValidationError" => "WorkflowValidationError", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "BillingBase" => "BillingBase", "BillingCap" => "BillingCap", "BillingError.Reason" => "BillingErrorReason", "BillingSchedule" => "BillingSchedule", "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -5459,6 +5644,8 @@ class ProposalService extends DfpSoapClient { "LineItemOperationError.Reason" => "LineItemOperationErrorReason", "ProposalApprovalStatus" => "ProposalApprovalStatus", "NotNullError.Reason" => "NotNullErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PrecisionError.Reason" => "PrecisionErrorReason", "PricingModel" => "PricingModel", @@ -5479,19 +5666,15 @@ class ProposalService extends DfpSoapClient { "StatementError.Reason" => "StatementErrorReason", "StringLengthError.Reason" => "StringLengthErrorReason", "TeamError.Reason" => "TeamErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", "WorkflowActionError.Reason" => "WorkflowActionErrorReason", - "createProposal" => "CreateProposal", - "createProposalResponse" => "CreateProposalResponse", + "WorkflowValidationError.Reason" => "WorkflowValidationErrorReason", "createProposals" => "CreateProposals", "createProposalsResponse" => "CreateProposalsResponse", - "getProposal" => "GetProposal", - "getProposalResponse" => "GetProposalResponse", "getProposalsByStatement" => "GetProposalsByStatement", "getProposalsByStatementResponse" => "GetProposalsByStatementResponse", "performProposalAction" => "PerformProposalAction", "performProposalActionResponse" => "PerformProposalActionResponse", - "updateProposal" => "UpdateProposal", - "updateProposalResponse" => "UpdateProposalResponse", "updateProposals" => "UpdateProposals", "updateProposalsResponse" => "UpdateProposalsResponse", ); @@ -5507,22 +5690,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link Proposal}. - * - * The following fields are required: - *

      - *
    • {@link Proposal#name}
    • - *
    - * - * @param proposal the proposal to create - * @return the created proposal with its ID filled in - */ - public function createProposal($proposal) { - $args = new CreateProposal($proposal); - $result = $this->__soapCall("createProposal", array($args)); - return $result->rval; - } /** * Creates new {@link Proposal} objects. * @@ -5539,17 +5706,6 @@ public function createProposals($proposals) { $result = $this->__soapCall("createProposals", array($args)); return $result->rval; } - /** - * Returns the {@link Proposal} uniquely identified by the given ID. - * - * @param proposalId the ID of the proposal, which must already exist - * @return the proposal uniquely identified by the given ID - */ - public function getProposal($proposalId) { - $args = new GetProposal($proposalId); - $result = $this->__soapCall("getProposal", array($args)); - return $result->rval; - } /** * Gets a {@link ProposalPage} of {@link Proposal} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -5564,6 +5720,10 @@ public function getProposal($proposalId) { * {@link Proposal#id} * * + * {@code dfpOrderId} + * {@link Proposal#dfpOrderId} + * + * * {@code name} * {@link Proposal#name} * @@ -5621,17 +5781,6 @@ public function performProposalAction($proposalAction, $filterStatement) { $result = $this->__soapCall("performProposalAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link Proposal}. - * - * @param proposal the proposal to update - * @return the updated proposal - */ - public function updateProposal($proposal) { - $args = new UpdateProposal($proposal); - $result = $this->__soapCall("updateProposal", array($args)); - return $result->rval; - } /** * Updates the specified {@link Proposal} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201502/PublisherQueryLanguageService.php similarity index 70% rename from src/Google/Api/Ads/Dfp/v201306/AdRuleService.php rename to src/Google/Api/Ads/Dfp/v201502/PublisherQueryLanguageService.php index 016faa6ec..3329f3e6c 100755 --- a/src/Google/Api/Ads/Dfp/v201306/AdRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201502/PublisherQueryLanguageService.php @@ -1,6 +1,6 @@ "AdRuleActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $adUnitId; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var boolean */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $includeDescendants; /** * Gets the namesapce of this class @@ -93,113 +67,149 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { - $this->AdRuleActionType = $AdRuleActionType; + public function __construct($adUnitId = null, $includeDescendants = null) { + $this->adUnitId = $adUnitId; + $this->includeDescendants = $includeDescendants; } } } -if (!class_exists("AdRule", false)) { +if (!class_exists("ApiError", false)) { /** - * An {@link AdRule} contains data that the ad server will use to generate a playlist of video ads. + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

    The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRule { + class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRule"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiError"; /** * @access public - * @var integer + * @var string */ - public $id; + public $fieldPath; /** * @access public * @var string */ - public $name; + public $trigger; /** * @access public - * @var integer + * @var string */ - public $priority; + public $errorString; /** - * @access public - * @var Targeting + * Gets the namesapce of this class + * @return the namespace of this class */ - public $targeting; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargeting", false)) { + /** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TechnologyTargeting"; /** * @access public - * @var DateTime + * @var BandwidthGroupTargeting */ - public $startDateTime; + public $bandwidthGroupTargeting; /** * @access public - * @var tnsStartDateTimeType + * @var BrowserTargeting */ - public $startDateTimeType; + public $browserTargeting; /** * @access public - * @var DateTime + * @var BrowserLanguageTargeting */ - public $endDateTime; + public $browserLanguageTargeting; /** * @access public - * @var boolean + * @var DeviceCapabilityTargeting */ - public $unlimitedEndDateTime; + public $deviceCapabilityTargeting; /** * @access public - * @var tnsAdRuleStatus + * @var DeviceCategoryTargeting */ - public $status; + public $deviceCategoryTargeting; /** * @access public - * @var tnsFrequencyCapBehavior + * @var DeviceManufacturerTargeting */ - public $frequencyCapBehavior; + public $deviceManufacturerTargeting; /** * @access public - * @var integer + * @var MobileCarrierTargeting */ - public $maxImpressionsPerLineItemPerStream; + public $mobileCarrierTargeting; /** * @access public - * @var integer + * @var MobileDeviceTargeting */ - public $maxImpressionsPerLineItemPerPod; + public $mobileDeviceTargeting; /** * @access public - * @var BaseAdRuleSlot + * @var MobileDeviceSubmodelTargeting */ - public $preroll; + public $mobileDeviceSubmodelTargeting; /** * @access public - * @var BaseAdRuleSlot + * @var OperatingSystemTargeting */ - public $midroll; + public $operatingSystemTargeting; /** * @access public - * @var BaseAdRuleSlot + * @var OperatingSystemVersionTargeting */ - public $postroll; + public $operatingSystemVersionTargeting; /** * Gets the namesapce of this class @@ -217,55 +227,83 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $priority = null, $targeting = null, $startDateTime = null, $startDateTimeType = null, $endDateTime = null, $unlimitedEndDateTime = null, $status = null, $frequencyCapBehavior = null, $maxImpressionsPerLineItemPerStream = null, $maxImpressionsPerLineItemPerPod = null, $preroll = null, $midroll = null, $postroll = null) { - $this->id = $id; - $this->name = $name; - $this->priority = $priority; - $this->targeting = $targeting; - $this->startDateTime = $startDateTime; - $this->startDateTimeType = $startDateTimeType; - $this->endDateTime = $endDateTime; - $this->unlimitedEndDateTime = $unlimitedEndDateTime; - $this->status = $status; - $this->frequencyCapBehavior = $frequencyCapBehavior; - $this->maxImpressionsPerLineItemPerStream = $maxImpressionsPerLineItemPerStream; - $this->maxImpressionsPerLineItemPerPod = $maxImpressionsPerLineItemPerPod; - $this->preroll = $preroll; - $this->midroll = $midroll; - $this->postroll = $postroll; + public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { + $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; + $this->browserTargeting = $browserTargeting; + $this->browserLanguageTargeting = $browserLanguageTargeting; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->operatingSystemTargeting = $operatingSystemTargeting; + $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; } } } -if (!class_exists("AdRulePage", false)) { +if (!class_exists("ApiVersionError", false)) { /** - * Captures a page of {@link AdRule} objects. + * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRulePage { + class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRulePage"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApiVersionError"; /** * @access public - * @var integer + * @var tnsApiVersionErrorReason */ - public $totalResultSetSize; + public $reason; /** - * @access public - * @var integer + * Gets the namesapce of this class + * @return the namespace of this class */ - public $startIndex; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApplicationException"; /** * @access public - * @var AdRule[] + * @var string */ - public $results; + public $message; /** * Gets the namesapce of this class @@ -283,131 +321,176 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; + public function __construct($message = null) { + $this->message = $message; } } } -if (!class_exists("BaseAdRuleSlot", false)) { +if (!class_exists("AuthenticationError", false)) { /** - * Simple object representing an ad slot within an {@link AdRule}. Ad rule slots - * contain information about the types/number of ads to display, as well - * as additional information on how the ad server will generate playlists. + * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class BaseAdRuleSlot { + class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BaseAdRuleSlot"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AuthenticationError"; /** * @access public - * @var integer + * @var tnsAuthenticationErrorReason */ - public $id; + public $reason; /** - * @access public - * @var tnsAdRuleSlotBehavior + * Gets the namesapce of this class + * @return the namespace of this class */ - public $slotBehavior; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var integer + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $minVideoAdDuration; + public function getXsiTypeName() { + return self::XSI_TYPE; + } - /** - * @access public - * @var integer - */ - public $maxVideoAdDuration; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } - /** - * @access public - * @var tnsMidrollFrequencyType - */ - public $videoMidrollFrequencyType; + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BandwidthGroupTargeting"; /** * @access public - * @var string + * @var boolean */ - public $videoMidrollFrequency; + public $isTargeted; /** * @access public - * @var tnsAdRuleSlotBumper + * @var Technology[] */ - public $bumper; + public $bandwidthGroups; /** - * @access public - * @var integer + * Gets the namesapce of this class + * @return the namespace of this class */ - public $maxBumperDuration; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var integer + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $minPodDuration; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $bandwidthGroups = null) { + $this->isTargeted = $isTargeted; + $this->bandwidthGroups = $bandwidthGroups; + } + + } +} + +if (!class_exists("BrowserLanguageTargeting", false)) { + /** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BrowserLanguageTargeting"; /** * @access public - * @var integer + * @var boolean */ - public $maxPodDuration; + public $isTargeted; /** * @access public - * @var integer + * @var Technology[] */ - public $maxAdsInPod; + public $browserLanguages; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $BaseAdRuleSlotType; - private $_parameterMap = array( - "BaseAdRuleSlot.Type" => "BaseAdRuleSlotType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; } + public function __construct($isTargeted = null, $browserLanguages = null) { + $this->isTargeted = $isTargeted; + $this->browserLanguages = $browserLanguages; + } + + } +} + +if (!class_exists("BrowserTargeting", false)) { + /** + * Represents browsers that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "BrowserTargeting"; + /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var boolean */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $isTargeted; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var Technology[] */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $browsers; /** * Gets the namesapce of this class @@ -425,36 +508,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + public function __construct($isTargeted = null, $browsers = null) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; } } } -if (!class_exists("StandardPoddingAdRuleSlot", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * An ad rule slot with standard podding. A standard pod is a series of video ads played - * back to back. Standard pods are defined by a {@link BaseAdRuleSlot#maxAdsInPod} and a - * {@link BaseAdRuleSlot#maxVideoAdDuration}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StandardPoddingAdRuleSlot"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; /** * Gets the namesapce of this class @@ -472,47 +549,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AdUnitTargeting", false)) { +if (!class_exists("ColumnType", false)) { /** - * Represents targeted or excluded ad units. + * Contains information about a column in a {@link ResultSet}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdUnitTargeting { + class ColumnType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdUnitTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ColumnType"; /** * @access public * @var string */ - public $adUnitId; - - /** - * @access public - * @var boolean - */ - public $includeDescendants; + public $labelName; /** * Gets the namesapce of this class @@ -530,84 +593,74 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adUnitId = null, $includeDescendants = null) { - $this->adUnitId = $adUnitId; - $this->includeDescendants = $includeDescendants; + public function __construct($labelName = null) { + $this->labelName = $labelName; } } } -if (!class_exists("ApiError", false)) { +if (!class_exists("CommonError", false)) { /** - * The API error base class that provides details about an error that occurred - * while processing a service request. - * - *

    The OGNL field path is provided for parsers to identify the request data - * element that may have caused the error.

    + * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiError"; - - /** - * @access public - * @var string - */ - public $fieldPath; + class CommonError extends ApiError { - /** - * @access public - * @var string - */ - public $trigger; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError"; /** * @access public - * @var string + * @var tnsCommonErrorReason */ - public $errorString; + public $reason; /** - * @access public - * @var string + * Gets the namesapce of this class + * @return the namespace of this class */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getXsiTypeName() { + return self::XSI_TYPE; } - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } + } +} + +if (!class_exists("ContentMetadataKeyHierarchyTargeting", false)) { + /** + * Represents one or more {@link CustomTargetingValue custom targeting values} from different + * {@link CustomTargetingKey custom targeting keys} ANDed together. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var integer[] */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $customTargetingValueIds; /** * Gets the namesapce of this class @@ -625,93 +678,118 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($customTargetingValueIds = null) { + $this->customTargetingValueIds = $customTargetingValueIds; } } } -if (!class_exists("TechnologyTargeting", false)) { +if (!class_exists("ContentTargeting", false)) { /** - * Provides {@link LineItem} objects the ability to target or exclude - * technologies. + * Used to target {@link LineItem}s to specific videos on a publisher's site. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class TechnologyTargeting { + class ContentTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "TechnologyTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ContentTargeting"; /** * @access public - * @var BandwidthGroupTargeting + * @var integer[] */ - public $bandwidthGroupTargeting; + public $targetedContentIds; /** * @access public - * @var BrowserTargeting + * @var integer[] */ - public $browserTargeting; + public $excludedContentIds; /** * @access public - * @var BrowserLanguageTargeting + * @var integer[] */ - public $browserLanguageTargeting; + public $targetedVideoCategoryIds; /** * @access public - * @var DeviceCapabilityTargeting + * @var integer[] */ - public $deviceCapabilityTargeting; + public $excludedVideoCategoryIds; /** * @access public - * @var DeviceCategoryTargeting + * @var integer[] */ - public $deviceCategoryTargeting; + public $targetedVideoContentBundleIds; /** * @access public - * @var DeviceManufacturerTargeting + * @var integer[] */ - public $deviceManufacturerTargeting; + public $excludedVideoContentBundleIds; /** * @access public - * @var MobileCarrierTargeting + * @var ContentMetadataKeyHierarchyTargeting[] */ - public $mobileCarrierTargeting; + public $targetedContentMetadata; /** * @access public - * @var MobileDeviceTargeting + * @var ContentMetadataKeyHierarchyTargeting[] */ - public $mobileDeviceTargeting; + public $excludedContentMetadata; /** - * @access public - * @var MobileDeviceSubmodelTargeting + * Gets the namesapce of this class + * @return the namespace of this class */ - public $mobileDeviceSubmodelTargeting; + public function getNamespace() { + return self::WSDL_NAMESPACE; + } /** - * @access public - * @var OperatingSystemTargeting + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public $operatingSystemTargeting; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null, $targetedVideoContentBundleIds = null, $excludedVideoContentBundleIds = null, $targetedContentMetadata = null, $excludedContentMetadata = null) { + $this->targetedContentIds = $targetedContentIds; + $this->excludedContentIds = $excludedContentIds; + $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; + $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + $this->targetedVideoContentBundleIds = $targetedVideoContentBundleIds; + $this->excludedVideoContentBundleIds = $excludedVideoContentBundleIds; + $this->targetedContentMetadata = $targetedContentMetadata; + $this->excludedContentMetadata = $excludedContentMetadata; + } + + } +} + +if (!class_exists("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeError"; /** * @access public - * @var OperatingSystemVersionTargeting + * @var tnsCreativeErrorReason */ - public $operatingSystemVersionTargeting; + public $reason; /** * Gets the namesapce of this class @@ -729,39 +807,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($bandwidthGroupTargeting = null, $browserTargeting = null, $browserLanguageTargeting = null, $deviceCapabilityTargeting = null, $deviceCategoryTargeting = null, $deviceManufacturerTargeting = null, $mobileCarrierTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $operatingSystemTargeting = null, $operatingSystemVersionTargeting = null) { - $this->bandwidthGroupTargeting = $bandwidthGroupTargeting; - $this->browserTargeting = $browserTargeting; - $this->browserLanguageTargeting = $browserLanguageTargeting; - $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; - $this->deviceCategoryTargeting = $deviceCategoryTargeting; - $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; - $this->mobileCarrierTargeting = $mobileCarrierTargeting; - $this->mobileDeviceTargeting = $mobileDeviceTargeting; - $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; - $this->operatingSystemTargeting = $operatingSystemTargeting; - $this->operatingSystemVersionTargeting = $operatingSystemVersionTargeting; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ApiVersionError", false)) { +if (!class_exists("CustomCriteriaNode", false)) { /** - * Errors related to the usage of API versions. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class ApiVersionError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApiVersionError"; + * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom + * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or + * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is + * subject to the rules defined on {@link Targeting#customTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CustomCriteriaNode { - /** - * @access public - * @var tnsApiVersionErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaNode"; /** * Gets the namesapce of this class @@ -779,72 +848,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct() { } } } -if (!class_exists("ApplicationException", false)) { +if (!class_exists("Date", false)) { /** - * Base class for exceptions. + * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ApplicationException { + class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ApplicationException"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Date"; /** * @access public - * @var string + * @var integer */ - public $message; + public $year; /** * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @var integer */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $month; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var integer */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $day; /** * Gets the namesapce of this class @@ -862,62 +899,55 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { - $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; } } } -if (!class_exists("Authentication", false)) { +if (!class_exists("DfpDateTime", false)) { /** - * A representation of the authentication protocols that can be used. + * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Authentication { + class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DateTime"; /** * @access public - * @var string + * @var Date */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); + public $date; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * @access public + * @var integer */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $hour; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var integer */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $minute; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var integer */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $second; + + /** + * @access public + * @var string + */ + public $timeZoneID; /** * Gets the namesapce of this class @@ -935,29 +965,46 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; + public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { + $this->date = $date; + $this->hour = $hour; + $this->minute = $minute; + $this->second = $second; + $this->timeZoneID = $timeZoneID; } } } -if (!class_exists("AuthenticationError", false)) { +if (!class_exists("DayPart", false)) { /** - * An error for an exception that occurred when authenticating. + * {@code DayPart} represents a time-period within a day of the week which is + * targeted by a {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AuthenticationError extends ApiError { + class DayPart { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AuthenticationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayPart"; /** * @access public - * @var tnsAuthenticationErrorReason + * @var tnsDayOfWeek */ - public $reason; + public $dayOfWeek; + + /** + * @access public + * @var TimeOfDay + */ + public $startTime; + + /** + * @access public + * @var TimeOfDay + */ + public $endTime; /** * Gets the namesapce of this class @@ -975,41 +1022,38 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { + $this->dayOfWeek = $dayOfWeek; + $this->startTime = $startTime; + $this->endTime = $endTime; } } } -if (!class_exists("BandwidthGroupTargeting", false)) { +if (!class_exists("DayPartTargeting", false)) { /** - * Represents bandwidth groups that are being targeted or excluded by the - * {@link LineItem}. + * Modify the delivery times of line items for particular days of the week. By + * default, line items are served at all days and times. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class BandwidthGroupTargeting { + class DayPartTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BandwidthGroupTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayPartTargeting"; /** * @access public - * @var boolean + * @var DayPart[] */ - public $isTargeted; + public $dayParts; /** * @access public - * @var Technology[] + * @var tnsDeliveryTimeZone */ - public $bandwidthGroups; + public $timeZone; /** * Gets the namesapce of this class @@ -1027,37 +1071,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isTargeted = null, $bandwidthGroups = null) { - $this->isTargeted = $isTargeted; - $this->bandwidthGroups = $bandwidthGroups; + public function __construct($dayParts = null, $timeZone = null) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; } } } -if (!class_exists("BrowserLanguageTargeting", false)) { +if (!class_exists("DeviceCapabilityTargeting", false)) { /** - * Represents browser languages that are being targeted or excluded by the - * {@link LineItem}. + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class BrowserLanguageTargeting { + class DeviceCapabilityTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserLanguageTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCapabilityTargeting"; /** * @access public - * @var boolean + * @var Technology[] */ - public $isTargeted; + public $targetedDeviceCapabilities; /** * @access public * @var Technology[] */ - public $browserLanguages; + public $excludedDeviceCapabilities; /** * Gets the namesapce of this class @@ -1075,37 +1118,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isTargeted = null, $browserLanguages = null) { - $this->isTargeted = $isTargeted; - $this->browserLanguages = $browserLanguages; + public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { + $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; + $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; } } } -if (!class_exists("BrowserTargeting", false)) { +if (!class_exists("DeviceCategoryTargeting", false)) { /** - * Represents browsers that are being targeted or excluded by the - * {@link LineItem}. + * Represents device categories that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class BrowserTargeting { + class DeviceCategoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "BrowserTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceCategoryTargeting"; /** * @access public - * @var boolean + * @var Technology[] */ - public $isTargeted; + public $targetedDeviceCategories; /** * @access public * @var Technology[] */ - public $browsers; + public $excludedDeviceCategories; /** * Gets the namesapce of this class @@ -1123,32 +1165,37 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isTargeted = null, $browsers = null) { - $this->isTargeted = $isTargeted; - $this->browsers = $browsers; + public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { + $this->targetedDeviceCategories = $targetedDeviceCategories; + $this->excludedDeviceCategories = $excludedDeviceCategories; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("DeviceManufacturerTargeting", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Represents device manufacturer that are being targeted or excluded by the + * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class DeviceManufacturerTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeviceManufacturerTargeting"; /** * @access public - * @var string + * @var boolean + */ + public $isTargeted; + + /** + * @access public + * @var Technology[] */ - public $token; + public $deviceManufacturers; /** * Gets the namesapce of this class @@ -1166,29 +1213,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + public function __construct($isTargeted = null, $deviceManufacturers = null) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; } } } -if (!class_exists("CommonError", false)) { +if (!class_exists("ExchangeRateError", false)) { /** - * A place for common errors that can be used across services. + * Lists all errors associated with {@link ExchangeRate} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CommonError extends ApiError { + class ExchangeRateError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ExchangeRateError"; /** * @access public - * @var tnsCommonErrorReason + * @var tnsExchangeRateErrorReason */ public $reason; @@ -1208,52 +1254,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ContentTargeting", false)) { +if (!class_exists("FeatureError", false)) { /** - * Used to target {@link LineItem}s to specific videos on a publisher's site. + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ContentTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ContentTargeting"; - - /** - * @access public - * @var integer[] - */ - public $targetedContentIds; - - /** - * @access public - * @var integer[] - */ - public $excludedContentIds; + class FeatureError extends ApiError { - /** - * @access public - * @var integer[] - */ - public $targetedVideoCategoryIds; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var integer[] + * @var tnsFeatureErrorReason */ - public $excludedVideoCategoryIds; + public $reason; /** * Gets the namesapce of this class @@ -1271,31 +1299,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedContentIds = null, $excludedContentIds = null, $targetedVideoCategoryIds = null, $excludedVideoCategoryIds = null) { - $this->targetedContentIds = $targetedContentIds; - $this->excludedContentIds = $excludedContentIds; - $this->targetedVideoCategoryIds = $targetedVideoCategoryIds; - $this->excludedVideoCategoryIds = $excludedVideoCategoryIds; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("CustomTargetingError", false)) { +if (!class_exists("FileError", false)) { /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. + * A list of all errors to be used for problems related to files. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CustomTargetingError extends ApiError { + class FileError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FileError"; /** * @access public - * @var tnsCustomTargetingErrorReason + * @var tnsFileErrorReason */ public $reason; @@ -1315,69 +1343,53 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("CustomCriteriaNode", false)) { +if (!class_exists("GeoTargeting", false)) { /** - * A {@link CustomCriteriaNode} is a node in the custom targeting tree. A custom - * criteria node can either be a {@link CustomCriteriaSet} (a non-leaf node) or - * a {@link CustomCriteria} (a leaf node). The custom criteria targeting tree is - * subject to the rules defined on {@link Targeting#customTargeting}. + * Provides line items the ability to target geographical locations. By default, + * line items target all countries and their subdivisions. With geographical + * targeting, you can target line items to specific countries, regions, metro + * areas, and cities. You can also exclude the same. + *

    + * The following rules apply for geographical targeting: + *

    + *
      + *
    • You cannot target and exclude the same location
    • + *
    • You cannot target a child whose parent has been excluded. So if the state + * of Illinois has been excluded, then you cannot target Chicago
    • + *
    • You must not target a location if you are also targeting its parent. + * So if you are targeting New York City, you must not have the state of New + * York as one of the targeted locations
    • + *
    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CustomCriteriaNode { + class GeoTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaNode"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "GeoTargeting"; /** * @access public - * @var string - */ - public $CustomCriteriaNodeType; - private $_parameterMap = array( - "CustomCriteriaNode.Type" => "CustomCriteriaNodeType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @var Location[] */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $targetedLocations; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var Location[] */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $excludedLocations; /** * Gets the namesapce of this class @@ -1395,41 +1407,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; + public function __construct($targetedLocations = null, $excludedLocations = null) { + $this->targetedLocations = $targetedLocations; + $this->excludedLocations = $excludedLocations; } } } -if (!class_exists("Date", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Represents a date. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Date { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Date"; - - /** - * @access public - * @var integer - */ - public $year; + class InternalApiError extends ApiError { - /** - * @access public - * @var integer - */ - public $month; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var integer + * @var tnsInternalApiErrorReason */ - public $day; + public $reason; /** * Gets the namesapce of this class @@ -1447,55 +1450,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($year = null, $month = null, $day = null) { - $this->year = $year; - $this->month = $month; - $this->day = $day; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DfpDateTime", false)) { +if (!class_exists("InvalidEmailError", false)) { /** - * Represents a date combined with the time of day. + * Caused by supplying a value for an email attribute that is not a valid + * email address. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DfpDateTime { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DateTime"; - - /** - * @access public - * @var Date - */ - public $date; - - /** - * @access public - * @var integer - */ - public $hour; - - /** - * @access public - * @var integer - */ - public $minute; + class InvalidEmailError extends ApiError { - /** - * @access public - * @var integer - */ - public $second; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidEmailError"; /** * @access public - * @var string + * @var tnsInvalidEmailErrorReason */ - public $timeZoneID; + public $reason; /** * Gets the namesapce of this class @@ -1513,46 +1495,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($date = null, $hour = null, $minute = null, $second = null, $timeZoneID = null) { - $this->date = $date; - $this->hour = $hour; - $this->minute = $minute; - $this->second = $second; - $this->timeZoneID = $timeZoneID; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DayPart", false)) { +if (!class_exists("InvalidUrlError", false)) { /** - * {@code DayPart} represents a time-period within a day of the week which is - * targeted by a {@link LineItem}. + * Lists all errors associated with URLs. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DayPart { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPart"; - - /** - * @access public - * @var tnsDayOfWeek - */ - public $dayOfWeek; + class InvalidUrlError extends ApiError { - /** - * @access public - * @var TimeOfDay - */ - public $startTime; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidUrlError"; /** * @access public - * @var TimeOfDay + * @var tnsInvalidUrlErrorReason */ - public $endTime; + public $reason; /** * Gets the namesapce of this class @@ -1570,38 +1539,45 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($dayOfWeek = null, $startTime = null, $endTime = null) { - $this->dayOfWeek = $dayOfWeek; - $this->startTime = $startTime; - $this->endTime = $endTime; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DayPartTargeting", false)) { +if (!class_exists("InventoryTargeting", false)) { /** - * Modify the delivery times of line items for particular days of the week. By - * default, line items are served at all days and times. + * A collection of targeted and excluded ad units and placements. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DayPartTargeting { + class InventoryTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayPartTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargeting"; /** * @access public - * @var DayPart[] + * @var AdUnitTargeting[] */ - public $dayParts; + public $targetedAdUnits; /** * @access public - * @var tnsDeliveryTimeZone + * @var AdUnitTargeting[] */ - public $timeZone; + public $excludedAdUnits; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; /** * Gets the namesapce of this class @@ -1619,24 +1595,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($dayParts = null, $timeZone = null) { - $this->dayParts = $dayParts; - $this->timeZone = $timeZone; + public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; } } } -if (!class_exists("DeactivateAdRules", false)) { +if (!class_exists("InventoryTargetingError", false)) { /** - * The action used for pausing {@link AdRule} objects. + * Lists all inventory errors caused by associating a line item with a targeting + * expression. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DeactivateAdRules extends AdRuleAction { + class InventoryTargetingError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeactivateAdRules"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; /** * Gets the namesapce of this class @@ -1654,24 +1638,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DeleteAdRules", false)) { +if (!class_exists("InventoryUnitError", false)) { /** - * The action used for deleting {@link AdRule} objects. + * Lists the generic errors associated with {@link AdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DeleteAdRules extends AdRuleAction { + class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitError"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeleteAdRules"; + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; /** * Gets the namesapce of this class @@ -1689,36 +1682,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DeviceCapabilityTargeting", false)) { +if (!class_exists("LineItemFlightDateError", false)) { /** - * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * Lists all errors associated with LineItem start and end dates. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DeviceCapabilityTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCapabilityTargeting"; + class LineItemFlightDateError extends ApiError { - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCapabilities; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemFlightDateError"; /** * @access public - * @var Technology[] + * @var tnsLineItemFlightDateErrorReason */ - public $excludedDeviceCapabilities; + public $reason; /** * Gets the namesapce of this class @@ -1736,36 +1726,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedDeviceCapabilities = null, $excludedDeviceCapabilities = null) { - $this->targetedDeviceCapabilities = $targetedDeviceCapabilities; - $this->excludedDeviceCapabilities = $excludedDeviceCapabilities; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DeviceCategoryTargeting", false)) { +if (!class_exists("LineItemOperationError", false)) { /** - * Represents device categories that are being targeted or excluded by the {@link LineItem}. + * Lists all errors for executing operations on line items * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DeviceCategoryTargeting { + class LineItemOperationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceCategoryTargeting"; - - /** - * @access public - * @var Technology[] - */ - public $targetedDeviceCategories; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemOperationError"; /** * @access public - * @var Technology[] + * @var tnsLineItemOperationErrorReason */ - public $excludedDeviceCategories; + public $reason; /** * Gets the namesapce of this class @@ -1783,37 +1770,54 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedDeviceCategories = null, $excludedDeviceCategories = null) { - $this->targetedDeviceCategories = $targetedDeviceCategories; - $this->excludedDeviceCategories = $excludedDeviceCategories; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("DeviceManufacturerTargeting", false)) { +if (!class_exists("DfpLocation", false)) { /** - * Represents device manufacturer that are being targeted or excluded by the - * {@link LineItem}. + * A {@link Location} represents a geographical entity that can be targeted. If + * a location type is not available because of the API version you are using, + * the location will be represented as just the base class, otherwise it will be + * sub-classed correctly. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DeviceManufacturerTargeting { + class DfpLocation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeviceManufacturerTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; /** * @access public - * @var boolean + * @var integer */ - public $isTargeted; + public $canonicalParentId; /** * @access public - * @var Technology[] + * @var string */ - public $deviceManufacturers; + public $displayName; /** * Gets the namesapce of this class @@ -1831,31 +1835,38 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isTargeted = null, $deviceManufacturers = null) { - $this->isTargeted = $isTargeted; - $this->deviceManufacturers = $deviceManufacturers; + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; } } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("MobileCarrierTargeting", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class MobileCarrierTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileCarrierTargeting"; /** * @access public - * @var tnsFeatureErrorReason + * @var boolean */ - public $reason; + public $isTargeted; + + /** + * @access public + * @var Technology[] + */ + public $mobileCarriers; /** * Gets the namesapce of this class @@ -1873,54 +1884,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($isTargeted = null, $mobileCarriers = null) { + $this->isTargeted = $isTargeted; + $this->mobileCarriers = $mobileCarriers; } } } -if (!class_exists("GeoTargeting", false)) { +if (!class_exists("MobileDeviceSubmodelTargeting", false)) { /** - * Provides line items the ability to target geographical locations. By default, - * line items target all countries and their subdivisions. With geographical - * targeting, you can target line items to specific countries, regions, metro - * areas, and cities. You can also exclude the same. - *

    - * The following rules apply for geographical targeting: - *

    - *
      - *
    • You cannot target and exclude the same location
    • - *
    • You cannot target a child whose parent has been excluded. So if the state - * of Illinois has been excluded, then you cannot target Chicago
    • - *
    • You must not target a location if you are also targeting its parent. - * So if you are targeting New York City, you must not have the state of New - * York as one of the targeted locations
    • - *
    + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GeoTargeting { + class MobileDeviceSubmodelTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "GeoTargeting"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceSubmodelTargeting"; /** * @access public - * @var Location[] + * @var Technology[] */ - public $targetedLocations; + public $targetedMobileDeviceSubmodels; /** * @access public - * @var Location[] + * @var Technology[] */ - public $excludedLocations; + public $excludedMobileDeviceSubmodels; /** * Gets the namesapce of this class @@ -1938,32 +1931,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedLocations = null, $excludedLocations = null) { - $this->targetedLocations = $targetedLocations; - $this->excludedLocations = $excludedLocations; + public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { + $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; + $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("MobileDeviceTargeting", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class InternalApiError extends ApiError { + class MobileDeviceTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MobileDeviceTargeting"; /** * @access public - * @var tnsInternalApiErrorReason + * @var Technology[] */ - public $reason; + public $targetedMobileDevices; + + /** + * @access public + * @var Technology[] + */ + public $excludedMobileDevices; /** * Gets the namesapce of this class @@ -1981,46 +1978,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; } } } -if (!class_exists("InventoryTargeting", false)) { +if (!class_exists("NotNullError", false)) { /** - * A collection of targeted and excluded ad units and placements. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class InventoryTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargeting"; - - /** - * @access public - * @var AdUnitTargeting[] - */ - public $targetedAdUnits; + class NotNullError extends ApiError { - /** - * @access public - * @var AdUnitTargeting[] - */ - public $excludedAdUnits; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var integer[] + * @var tnsNotNullErrorReason */ - public $targetedPlacementIds; + public $reason; /** * Gets the namesapce of this class @@ -2038,30 +2019,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { - $this->targetedAdUnits = $targetedAdUnits; - $this->excludedAdUnits = $excludedAdUnits; - $this->targetedPlacementIds = $targetedPlacementIds; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("InventoryTargetingError", false)) { +if (!class_exists("NullError", false)) { /** - * Lists all inventory errors caused by associating a line item with a targeting - * expression. + * Caused by supplying a non-null value for an attribute that should be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class InventoryTargetingError extends ApiError { + class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError"; /** * @access public - * @var tnsInventoryTargetingErrorReason + * @var tnsNullErrorReason */ public $reason; @@ -2081,75 +2063,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpLocation", false)) { +if (!class_exists("OperatingSystemTargeting", false)) { /** - * A {@link Location} represents a geographical entity that can be targeted. If - * a location type is not available because of the API version you are using, - * the location will be represented as just the base class, otherwise it will be - * sub-classed correctly. + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DfpLocation { + class OperatingSystemTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Location"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OperatingSystemTargeting"; /** * @access public - * @var integer + * @var boolean */ - public $id; + public $isTargeted; /** * @access public - * @var string - */ - public $LocationType; - private $_parameterMap = array( - "Location.Type" => "LocationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var Technology[] */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $operatingSystems; /** * Gets the namesapce of this class @@ -2167,42 +2114,36 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $LocationType = null) { - $this->id = $id; - $this->LocationType = $LocationType; + public function __construct($isTargeted = null, $operatingSystems = null) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; } } } -if (!class_exists("MetroLocation", false)) { +if (!class_exists("OperatingSystemVersionTargeting", false)) { /** - * Represents a metropolitan area for geographical targeting. Currently, - * metropolitan areas only within the United States can be targeted. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class MetroLocation extends DfpLocation { + class OperatingSystemVersionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MetroLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OperatingSystemVersionTargeting"; /** * @access public - * @var string + * @var Technology[] */ - public $metroCode; + public $targetedOperatingSystemVersions; /** * @access public - * @var string + * @var Technology[] */ - public $countryCode; + public $excludedOperatingSystemVersions; /** * Gets the namesapce of this class @@ -2220,39 +2161,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($metroCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->metroCode = $metroCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; + public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; } } } -if (!class_exists("MobileCarrierTargeting", false)) { +if (!class_exists("OrderActionError", false)) { /** - * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * Lists all errors associated with performing actions on {@link Order} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class MobileCarrierTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileCarrierTargeting"; + class OrderActionError extends ApiError { - /** - * @access public - * @var boolean - */ - public $isTargeted; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderActionError"; /** * @access public - * @var Technology[] + * @var tnsOrderActionErrorReason */ - public $mobileCarriers; + public $reason; /** * Gets the namesapce of this class @@ -2270,36 +2202,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isTargeted = null, $mobileCarriers = null) { - $this->isTargeted = $isTargeted; - $this->mobileCarriers = $mobileCarriers; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("MobileDeviceSubmodelTargeting", false)) { +if (!class_exists("OrderError", false)) { /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * Lists all errors associated with orders. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class MobileDeviceSubmodelTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceSubmodelTargeting"; + class OrderError extends ApiError { - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDeviceSubmodels; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderError"; /** * @access public - * @var Technology[] + * @var tnsOrderErrorReason */ - public $excludedMobileDeviceSubmodels; + public $reason; /** * Gets the namesapce of this class @@ -2317,36 +2246,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedMobileDeviceSubmodels = null, $excludedMobileDeviceSubmodels = null) { - $this->targetedMobileDeviceSubmodels = $targetedMobileDeviceSubmodels; - $this->excludedMobileDeviceSubmodels = $excludedMobileDeviceSubmodels; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("MobileDeviceTargeting", false)) { +if (!class_exists("ParseError", false)) { /** - * Represents mobile devices that are being targeted or excluded by the {@link LineItem}. + * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class MobileDeviceTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MobileDeviceTargeting"; + class ParseError extends ApiError { - /** - * @access public - * @var Technology[] - */ - public $targetedMobileDevices; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError"; /** * @access public - * @var Technology[] + * @var tnsParseErrorReason */ - public $excludedMobileDevices; + public $reason; /** * Gets the namesapce of this class @@ -2364,28 +2290,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { - $this->targetedMobileDevices = $targetedMobileDevices; - $this->excludedMobileDevices = $excludedMobileDevices; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("PermissionError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsPermissionErrorReason */ public $reason; @@ -2405,36 +2334,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("PublisherQueryLanguageContextError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; /** * @access public - * @var string + * @var tnsPublisherQueryLanguageContextErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -2452,38 +2379,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("OperatingSystemTargeting", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { /** - * Represents operating systems that are being targeted or excluded by the - * {@link LineItem}. + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class OperatingSystemTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemTargeting"; + class PublisherQueryLanguageSyntaxError extends ApiError { - /** - * @access public - * @var boolean - */ - public $isTargeted; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** * @access public - * @var Technology[] + * @var tnsPublisherQueryLanguageSyntaxErrorReason */ - public $operatingSystems; + public $reason; /** * Gets the namesapce of this class @@ -2501,36 +2424,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isTargeted = null, $operatingSystems = null) { - $this->isTargeted = $isTargeted; - $this->operatingSystems = $operatingSystems; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("OperatingSystemVersionTargeting", false)) { +if (!class_exists("QuotaError", false)) { /** - * Represents operating system versions that are being targeted or excluded by the {@link LineItem}. + * Describes a client-side error on which a user is attempting + * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class OperatingSystemVersionTargeting { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OperatingSystemVersionTargeting"; + class QuotaError extends ApiError { - /** - * @access public - * @var Technology[] - */ - public $targetedOperatingSystemVersions; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError"; /** * @access public - * @var Technology[] + * @var tnsQuotaErrorReason */ - public $excludedOperatingSystemVersions; + public $reason; /** * Gets the namesapce of this class @@ -2548,28 +2469,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { - $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; - $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("RangeError", false)) { /** - * Errors related to incorrect permission. + * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PermissionError extends ApiError { + class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError"; /** * @access public - * @var tnsPermissionErrorReason + * @var tnsRangeErrorReason */ public $reason; @@ -2589,32 +2513,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PoddingError", false)) { +if (!class_exists("RegExError", false)) { /** - * Errors related to podding fields in ad rule slots. + * Caused by supplying a value for an object attribute that does not conform + * to a documented valid regular expression. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PoddingError extends ApiError { + class RegExError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PoddingError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RegExError"; /** * @access public - * @var tnsPoddingErrorReason + * @var tnsRegExErrorReason */ public $reason; @@ -2634,42 +2558,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PostalCodeLocation", false)) { +if (!class_exists("RequiredCollectionError", false)) { /** - * Represents a postal code for geographical targeting. On input, - * {@link Location} should be used instead and the {@link Location#id} field - * should be set. + * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PostalCodeLocation extends DfpLocation { + class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PostalCodeLocation"; - - /** - * @access public - * @var string - */ - public $postalCode; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError"; /** * @access public - * @var string + * @var tnsRequiredCollectionErrorReason */ - public $countryCode; + public $reason; /** * Gets the namesapce of this class @@ -2687,32 +2602,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($postalCode = null, $countryCode = null, $id = null, $LocationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->postalCode = $postalCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("PublisherQueryLanguageContextError", false)) { +if (!class_exists("RequiredError", false)) { /** - * An error that occurs while executing a PQL query contained in - * a {@link Statement} object. + * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PublisherQueryLanguageContextError extends ApiError { + class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError"; /** * @access public - * @var tnsPublisherQueryLanguageContextErrorReason + * @var tnsRequiredErrorReason */ public $reason; @@ -2732,33 +2646,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { +if (!class_exists("RequiredNumberError", false)) { /** - * An error that occurs while parsing a PQL query contained in a - * {@link Statement} object. + * A list of all errors to be used in conjunction with required number + * validators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxError extends ApiError { + class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError"; /** * @access public - * @var tnsPublisherQueryLanguageSyntaxErrorReason + * @var tnsRequiredNumberErrorReason */ public $reason; @@ -2778,33 +2691,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("QuotaError", false)) { +if (!class_exists("RequiredSizeError", false)) { /** - * Describes a client-side error on which a user is attempting - * to perform an action to which they have no quota remaining. + * A list of all errors to be used for validating {@link Size}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class QuotaError extends ApiError { + class RequiredSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredSizeError"; /** * @access public - * @var tnsQuotaErrorReason + * @var tnsRequiredSizeErrorReason */ public $reason; @@ -2824,40 +2735,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RegionLocation", false)) { +if (!class_exists("ReservationDetailsError", false)) { /** - * Represents a principal subdivision (eg. province or state) of a country for - * geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    + * Lists all errors associated with LineItem's reservation details. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RegionLocation extends DfpLocation { + class ReservationDetailsError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RegionLocation"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError"; /** * @access public - * @var string + * @var tnsReservationDetailsErrorReason */ - public $regionCode; + public $reason; /** * Gets the namesapce of this class @@ -2875,32 +2779,40 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($regionCode = null, $id = null, $LocationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->regionCode = $regionCode; - $this->id = $id; - $this->LocationType = $LocationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("RequiredError", false)) { +if (!class_exists("ResultSet", false)) { /** - * Errors due to missing required field. + * The {@code ResultSet} represents a table of data obtained from the execution of a PQL {@link + * Statement}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RequiredError extends ApiError { + class ResultSet { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ResultSet"; /** * @access public - * @var tnsRequiredErrorReason + * @var ColumnType[] */ - public $reason; + public $columnTypes; + + /** + * @access public + * @var Row[] + */ + public $rows; /** * Gets the namesapce of this class @@ -2918,35 +2830,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($columnTypes = null, $rows = null) { + $this->columnTypes = $columnTypes; + $this->rows = $rows; } } } -if (!class_exists("RequiredNumberError", false)) { +if (!class_exists("Row", false)) { /** - * A list of all errors to be used in conjunction with required number - * validators. + * Each {@link Row} object represents data about one entity in a + * {@link ResultSet}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RequiredNumberError extends ApiError { + class Row { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Row"; /** * @access public - * @var tnsRequiredNumberErrorReason + * @var Value[] */ - public $reason; + public $values; /** * Gets the namesapce of this class @@ -2964,13 +2872,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($values = null) { + $this->values = $values; } } @@ -2980,11 +2883,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -3009,13 +2912,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3025,11 +2927,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -3044,12 +2946,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3066,10 +2962,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -3079,11 +2974,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -3154,11 +3049,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -3201,11 +3096,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -3230,58 +3125,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("StringLengthError", false)) { - /** - * Errors for Strings which do not meet given length constraints. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class StringLengthError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError"; - - /** - * @access public - * @var tnsStringLengthErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -3292,11 +3141,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -3340,11 +3189,11 @@ public function __construct($key = null, $value = null) { * Contains targeting criteria for {@link LineItem} objects. See * {@link LineItem#targeting}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Targeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Targeting"; /** @@ -3429,11 +3278,11 @@ public function __construct($geoTargeting = null, $inventoryTargeting = null, $d /** * Represents a technology entity that can be targeted. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Technology"; /** @@ -3448,44 +3297,6 @@ class Technology { */ public $name; - /** - * @access public - * @var string - */ - public $TechnologyType; - private $_parameterMap = array( - "Technology.Type" => "TechnologyType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3502,10 +3313,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -3515,11 +3325,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific time in a day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TimeOfDay { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TimeOfDay"; /** @@ -3558,55 +3368,16 @@ public function __construct($hour = null, $minute = null) { } } -if (!class_exists("UniqueError", false)) { - /** - * An error for a field which must satisfy a uniqueness constraint - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class UniqueError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UniqueError"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("UnknownAdRuleSlot", false)) { +if (!class_exists("TypeError", false)) { /** - * The {@link BaseAdRuleSlot} subtype returned if the actual type is not exposed by the - * requested API version. + * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UnknownAdRuleSlot extends BaseAdRuleSlot { + class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UnknownAdRuleSlot"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TypeError"; /** * Gets the namesapce of this class @@ -3624,41 +3395,26 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("UpdateResult", false)) { +if (!class_exists("UniqueError", false)) { /** - * Represents the result of performing an action on objects. + * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateResult { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "UpdateResult"; + class UniqueError extends ApiError { - /** - * @access public - * @var integer - */ - public $numChanges; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UniqueError"; /** * Gets the namesapce of this class @@ -3676,8 +3432,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($numChanges = null) { - $this->numChanges = $numChanges; + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -3688,11 +3447,11 @@ public function __construct($numChanges = null) { * Provides line items the ability to target or exclude users visiting their * websites from a list of domains or subdomains. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UserDomainTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserDomainTargeting"; /** @@ -3735,51 +3494,13 @@ public function __construct($domains = null, $targeted = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -3796,8 +3517,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -3808,11 +3528,11 @@ public function __construct($ValueType = null) { * Represents a targetable position within a video. A video ad can be targeted * to a position (pre-roll, all mid-rolls, or post-roll), or to a specific mid-roll index. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class VideoPosition { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPosition"; /** @@ -3859,11 +3579,11 @@ public function __construct($positionType = null, $midrollIndex = null) { * {@code post-roll} (after a video has completed playback) and * {@code mid-roll} (during video playback). * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class VideoPositionTargeting { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionTargeting"; /** @@ -3901,11 +3621,11 @@ public function __construct($targetedPositions = null) { * to any position in the pod (first, second, third ... last). If there is only 1 ad in a pod, * either first or last will target that position. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class VideoPositionWithinPod { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionWithinPod"; /** @@ -3941,11 +3661,11 @@ public function __construct($index = null) { /** * Represents the options for targetable positions within a video. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class VideoPositionTarget { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "VideoPositionTarget"; /** @@ -3991,148 +3711,16 @@ public function __construct($videoPosition = null, $videoBumperType = null, $vid } } -if (!class_exists("AdRuleDateErrorReason", false)) { - /** - * Describes reasons for {@code AdRuleDateError}s. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdRuleDateErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleDateError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleFrequencyCapErrorReason", false)) { - /** - * Describes reason for {@code AdRuleFrequencyCapError}s. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdRuleFrequencyCapErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleFrequencyCapError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRulePriorityErrorReason", false)) { - /** - * Reasons for an {@code AdRulePriorityError}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdRulePriorityErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRulePriorityError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleSlotBehavior", false)) { - /** - * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AdRuleSlotBehavior { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleSlotBehavior"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("AdRuleSlotBumper", false)) { +if (!class_exists("AdUnitAfcSizeErrorReason", false)) { /** - * Types of bumper ads on an ad rule slot. + * The supplied Afc size is not valid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRuleSlotBumper { + class AdUnitAfcSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleSlotBumper"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitAfcSizeError.Reason"; /** * Gets the namesapce of this class @@ -4156,16 +3744,19 @@ public function __construct() { } } -if (!class_exists("AdRuleSlotErrorReason", false)) { +if (!class_exists("AdUnitCodeErrorReason", false)) { /** - * Describes reason for {@code AdRuleSlotError}s. + * For {@link AdUnit#adUnitCode}, only alpha-numeric characters, + * underscores, hyphens, periods, asterisks, double quotes, back slashes, + * forward slashes, exclamations, left angle brackets, colons and + * parentheses are allowed. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRuleSlotErrorReason { + class AdUnitCodeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleSlotError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitCodeError.Reason"; /** * Gets the namesapce of this class @@ -4189,16 +3780,19 @@ public function __construct() { } } -if (!class_exists("AdRuleStatus", false)) { +if (!class_exists("AdUnitHierarchyErrorReason", false)) { /** - * Represents the status of ad rules and ad rule slots. + * The depth of the {@link AdUnit} in the inventory hierarchy is greater + * than is allowed. The maximum allowed depth is two below the effective + * root ad unit for Premium accounts and one level below effective root ad + * unit for Small Business accounts. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRuleStatus { + class AdUnitHierarchyErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleStatus"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitHierarchyError.Reason"; /** * Gets the namesapce of this class @@ -4227,11 +3821,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -4263,11 +3857,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -4292,49 +3886,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { - /** - * Describes reasons for common errors - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CommonErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("CustomCriteriaComparisonOperator", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Specifies the available comparison operators. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CustomCriteriaComparisonOperator { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -4358,16 +3919,16 @@ public function __construct() { } } -if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * Specifies the available logical operators. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CustomCriteriaSetLogicalOperator { + class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -4391,16 +3952,16 @@ public function __construct() { } } -if (!class_exists("CustomTargetingErrorReason", false)) { +if (!class_exists("CreativeErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CustomTargetingErrorReason { + class CreativeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CustomTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CreativeError.Reason"; /** * Gets the namesapce of this class @@ -4424,82 +3985,16 @@ public function __construct() { } } -if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { +if (!class_exists("CustomCriteriaComparisonOperator", false)) { /** * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentCriteriaComparisonOperator { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DayOfWeek", false)) { - /** - * Days of the week. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DayOfWeek { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DayOfWeek"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - -if (!class_exists("DeliveryTimeZone", false)) { - /** - * Represents the time zone to be used for {@link DayPartTargeting}. - * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DeliveryTimeZone { + class CustomCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "DeliveryTimeZone"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -4523,16 +4018,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { /** - * A feature is being used that is not enabled on the current network. + * Specifies the available logical operators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class FeatureErrorReason { + class CustomCriteriaSetLogicalOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; /** * Gets the namesapce of this class @@ -4556,16 +4051,16 @@ public function __construct() { } } -if (!class_exists("FrequencyCapBehavior", false)) { +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { /** - * Types of behavior for frequency caps within ad rules. + * Specifies the available comparison operators. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class FrequencyCapBehavior { + class AudienceSegmentCriteriaComparisonOperator { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FrequencyCapBehavior"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; /** * Gets the namesapce of this class @@ -4589,16 +4084,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("DayOfWeek", false)) { /** - * The single reason for the internal API error. + * Days of the week. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class InternalApiErrorReason { + class DayOfWeek { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DayOfWeek"; /** * Gets the namesapce of this class @@ -4622,16 +4117,16 @@ public function __construct() { } } -if (!class_exists("InventoryTargetingErrorReason", false)) { +if (!class_exists("DeliveryTimeZone", false)) { /** - * The reasons for the target error. + * Represents the time zone to be used for {@link DayPartTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class InventoryTargetingErrorReason { + class DeliveryTimeZone { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InventoryTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "DeliveryTimeZone"; /** * Gets the namesapce of this class @@ -4655,16 +4150,16 @@ public function __construct() { } } -if (!class_exists("MidrollFrequencyType", false)) { +if (!class_exists("ExchangeRateErrorReason", false)) { /** - * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class MidrollFrequencyType { + class ExchangeRateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MidrollFrequencyType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ExchangeRateError.Reason"; /** * Gets the namesapce of this class @@ -4688,17 +4183,16 @@ public function __construct() { } } -if (!class_exists("MinuteOfHour", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This - * field is required. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class MinuteOfHour { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "MinuteOfHour"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -4722,16 +4216,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("FileErrorReason", false)) { /** - * The reasons for the target error. + * The provided byte array is empty. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NotNullErrorReason { + class FileErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FileError.Reason"; /** * Gets the namesapce of this class @@ -4755,16 +4249,16 @@ public function __construct() { } } -if (!class_exists("PermissionErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * Describes reasons for permission errors. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PermissionErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PermissionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -4788,16 +4282,16 @@ public function __construct() { } } -if (!class_exists("PoddingErrorReason", false)) { +if (!class_exists("InvalidEmailErrorReason", false)) { /** - * Describes reason for {@code PoddingError}s. + * Describes reasons for an email to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PoddingErrorReason { + class InvalidEmailErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PoddingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidEmailError.Reason"; /** * Gets the namesapce of this class @@ -4821,16 +4315,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { +if (!class_exists("InvalidUrlErrorReason", false)) { /** - * The reasons for the target error. + * The URL contains invalid characters. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PublisherQueryLanguageContextErrorReason { + class InvalidUrlErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InvalidUrlError.Reason"; /** * Gets the namesapce of this class @@ -4854,16 +4348,16 @@ public function __construct() { } } -if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { +if (!class_exists("InventoryTargetingErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PublisherQueryLanguageSyntaxErrorReason { + class InventoryTargetingErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryTargetingError.Reason"; /** * Gets the namesapce of this class @@ -4887,26 +4381,16 @@ public function __construct() { } } -if (!class_exists("QuotaErrorReason", false)) { +if (!class_exists("InventoryUnitErrorReason", false)) { /** - * The number of requests made per second is too high and has exceeded the - * allowable limit. The recommended approach to handle this error is to wait - * about 5 seconds and then retry the request. Note that this does not - * guarantee the request will succeed. If it fails again, try increasing the - * wait time. - *

    - * Another way to mitigate this error is to limit requests to 2 per second for - * Small Business networks, or 8 per second for Premium networks. Once again - * this does not guarantee that every request will succeed, but may help - * reduce the number of times you receive this error. - *

    + * Possible reasons for the error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class QuotaErrorReason { + class InventoryUnitErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "QuotaError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitError.Reason"; /** * Gets the namesapce of this class @@ -4930,16 +4414,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("LineItemFlightDateErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RequiredErrorReason { + class LineItemFlightDateErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; /** * Gets the namesapce of this class @@ -4963,16 +4447,16 @@ public function __construct() { } } -if (!class_exists("RequiredNumberErrorReason", false)) { +if (!class_exists("LineItemOperationErrorReason", false)) { /** - * Describes reasons for a number to be invalid. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RequiredNumberErrorReason { + class LineItemOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredNumberError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LineItemOperationError.Reason"; /** * Gets the namesapce of this class @@ -4996,16 +4480,17 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("MinuteOfHour", false)) { /** - * Describes reasons for server errors + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ServerErrorReason { + class MinuteOfHour { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "MinuteOfHour"; /** * Gets the namesapce of this class @@ -5029,17 +4514,16 @@ public function __construct() { } } -if (!class_exists("StartDateTimeType", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** - * Specifies the start type to use for an entity with a start date time field. - * For example, a {@link LineItem} or {@link LineItemCreativeAssociation}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StartDateTimeType { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StartDateTimeType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -5063,16 +4547,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("NullErrorReason", false)) { /** - * A bind variable has not been bound to a value. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StatementErrorReason { + class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError.Reason"; /** * Gets the namesapce of this class @@ -5096,16 +4580,16 @@ public function __construct() { } } -if (!class_exists("StringLengthErrorReason", false)) { +if (!class_exists("OrderActionErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StringLengthErrorReason { + class OrderActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StringLengthError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderActionError.Reason"; /** * Gets the namesapce of this class @@ -5129,19 +4613,16 @@ public function __construct() { } } -if (!class_exists("VideoBumperType", false)) { +if (!class_exists("OrderErrorReason", false)) { /** - * Represents the options for targetable bumper positions, surrounding an ad - * pod, within a video stream. This includes before and after the supported ad - * pod positions, {@link VideoPositionType#PREROLL}, - * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class VideoBumperType { + class OrderErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoBumperType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "OrderError.Reason"; /** * Gets the namesapce of this class @@ -5165,16 +4646,16 @@ public function __construct() { } } -if (!class_exists("VideoPositionType", false)) { +if (!class_exists("ParseErrorReason", false)) { /** - * Represents a targetable position within a video. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class VideoPositionType { + class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "VideoPosition.Type"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError.Reason"; /** * Gets the namesapce of this class @@ -5198,39 +4679,16 @@ public function __construct() { } } -if (!class_exists("CreateAdRule", false)) { +if (!class_exists("PermissionErrorReason", false)) { /** - * Creates a new {@link AdRule}. - * - * The following fields are required: - *
      - *
    • {@link AdRule#id}
    • - *
    • {@link AdRule#name}
    • - *
    • {@link AdRule#priority}
    • - *
    • {@link AdRule#startDateTime}
    • - *
    • {@link AdRule#endDateTime}
    • - *
    • {@link AdRule#preroll}
    • - *
    • {@link AdRule#midroll}
    • - *
    • {@link AdRule#postroll}
    • - *
    - * - * @param adRule the ad rule to create - * @return the ad rule with its ID filled in - * @throws ApiException if there the ad rule is invalid or there is another - * error + * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateAdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class PermissionErrorReason { - /** - * @access public - * @var AdRule - */ - public $adRule; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError.Reason"; /** * Gets the namesapce of this class @@ -5248,29 +4706,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adRule = null) { - $this->adRule = $adRule; + public function __construct() { } } } -if (!class_exists("CreateAdRuleResponse", false)) { +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** - * + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateAdRuleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class PublisherQueryLanguageContextErrorReason { - /** - * @access public - * @var AdRule - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** * Gets the namesapce of this class @@ -5288,32 +4739,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("CreateAdRules", false)) { +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { /** - * Creates new {@link AdRule} objects. - * - * @param adRules the ad rules to create - * @return the created ad rules with their IDs filled in + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateAdRules { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class PublisherQueryLanguageSyntaxErrorReason { - /** - * @access public - * @var AdRule[] - */ - public $adRules; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** * Gets the namesapce of this class @@ -5331,29 +4772,32 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adRules = null) { - $this->adRules = $adRules; + public function __construct() { } } } -if (!class_exists("CreateAdRulesResponse", false)) { +if (!class_exists("QuotaErrorReason", false)) { /** - * + * The number of requests made per second is too high and has exceeded the + * allowable limit. The recommended approach to handle this error is to wait + * about 5 seconds and then retry the request. Note that this does not + * guarantee the request will succeed. If it fails again, try increasing the + * wait time. + *

    + * Another way to mitigate this error is to limit requests to 2 per second for + * Small Business networks, or 8 per second for Premium networks. Once again + * this does not guarantee that every request will succeed, but may help + * reduce the number of times you receive this error. + *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CreateAdRulesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class QuotaErrorReason { - /** - * @access public - * @var AdRule[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "QuotaError.Reason"; /** * Gets the namesapce of this class @@ -5371,34 +4815,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("GetAdRule", false)) { +if (!class_exists("RangeErrorReason", false)) { /** - * Returns the {@link AdRule} uniquely identified by the given ID. - * - * @param adRuleId the ID of the ad rule, which must already exist - * @return the {@code AdRule} uniquely identified by the given ID - * @throws ApiException if there is an error retrieving the ad rule - * or the ID is invalid + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetAdRule { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class RangeErrorReason { - /** - * @access public - * @var integer - */ - public $adRuleId; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RangeError.Reason"; /** * Gets the namesapce of this class @@ -5416,29 +4848,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adRuleId = null) { - $this->adRuleId = $adRuleId; + public function __construct() { } } } -if (!class_exists("GetAdRuleResponse", false)) { +if (!class_exists("RegExErrorReason", false)) { /** - * + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetAdRuleResponse { + class RegExErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RegExError.Reason"; /** * Gets the namesapce of this class @@ -5456,57 +4881,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("GetAdRulesByStatement", false)) { +if (!class_exists("RequiredCollectionErrorReason", false)) { /** - * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    PQL Property Object Property
    {@code id}{@link AdRule#id}
    {@code name}{@link AdRule#name}
    {@code priority}{@link AdRule#priority}
    {@code status}{@link AdRule#status}
    - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the ad rules that match the given filter - * @throws ApiException if the ID of the active network does not exist or - * there is a backend error + * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetAdRulesByStatement { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class RequiredCollectionErrorReason { - /** - * @access public - * @var Statement - */ - public $statement; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredCollectionError.Reason"; /** * Gets the namesapce of this class @@ -5524,29 +4914,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($statement = null) { - $this->statement = $statement; + public function __construct() { } } } -if (!class_exists("GetAdRulesByStatementResponse", false)) { +if (!class_exists("RequiredErrorReason", false)) { /** - * + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetAdRulesByStatementResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class RequiredErrorReason { - /** - * @access public - * @var AdRulePage - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredError.Reason"; /** * Gets the namesapce of this class @@ -5564,41 +4947,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("PerformAdRuleAction", false)) { +if (!class_exists("RequiredNumberErrorReason", false)) { /** - * Performs actions on {@link AdRule} objects that match the given - * {@link Statement#query}. - * - * @param adRuleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the result of the action performed + * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PerformAdRuleAction { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRuleAction - */ - public $adRuleAction; + class RequiredNumberErrorReason { - /** - * @access public - * @var Statement - */ - public $filterStatement; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredNumberError.Reason"; /** * Gets the namesapce of this class @@ -5616,30 +4980,23 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adRuleAction = null, $filterStatement = null) { - $this->adRuleAction = $adRuleAction; - $this->filterStatement = $filterStatement; + public function __construct() { } } } -if (!class_exists("PerformAdRuleActionResponse", false)) { +if (!class_exists("RequiredSizeErrorReason", false)) { /** - * + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class PerformAdRuleActionResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class RequiredSizeErrorReason { - /** - * @access public - * @var UpdateResult - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RequiredSizeError.Reason"; /** * Gets the namesapce of this class @@ -5657,33 +5014,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("UpdateAdRule", false)) { +if (!class_exists("ReservationDetailsErrorReason", false)) { /** - * Updates a previously-created {@link AdRule}. - * - * @param adRule the ad rule that should be updated - * @return the updated ad rule - * @throws ApiException if there is an error updating the ad rule + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateAdRule { + class ReservationDetailsErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var AdRule - */ - public $adRule; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ReservationDetailsError.Reason"; /** * Gets the namesapce of this class @@ -5701,29 +5047,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adRule = null) { - $this->adRule = $adRule; + public function __construct() { } } } -if (!class_exists("UpdateAdRuleResponse", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateAdRuleResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class ServerErrorReason { - /** - * @access public - * @var AdRule - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -5741,33 +5080,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("UpdateAdRules", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * Updates the specified {@link AdRule} objects. - * - * @param adRules the ad rules to update - * @return the updated ad rules - * @throws ApiException if there is an error updating the ad rules + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateAdRules { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class StatementErrorReason { - /** - * @access public - * @var AdRule[] - */ - public $adRules; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -5785,29 +5113,25 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($adRules = null) { - $this->adRules = $adRules; + public function __construct() { } } } -if (!class_exists("UpdateAdRulesResponse", false)) { +if (!class_exists("VideoBumperType", false)) { /** - * + * Represents the options for targetable bumper positions, surrounding an ad + * pod, within a video stream. This includes before and after the supported ad + * pod positions, {@link VideoPositionType#PREROLL}, + * {@link VideoPositionType#MIDROLL}, and {@link VideoPositionType#POSTROLL}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class UpdateAdRulesResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; + class VideoBumperType { - /** - * @access public - * @var AdRule[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoBumperType"; /** * Gets the namesapce of this class @@ -5825,23 +5149,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } } -if (!class_exists("ActivateAdRules", false)) { +if (!class_exists("VideoPositionType", false)) { /** - * The action used for resuming {@link AdRule} objects. + * Represents a targetable position within a video. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ActivateAdRules extends AdRuleAction { + class VideoPositionType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ActivateAdRules"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "VideoPosition.Type"; /** * Gets the namesapce of this class @@ -5859,30 +5182,34 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($AdRuleActionType = null) { - parent::__construct(); - $this->AdRuleActionType = $AdRuleActionType; + public function __construct() { } } } -if (!class_exists("AdRuleDateError", false)) { +if (!class_exists("Select", false)) { /** - * Lists all errors associated with ad rule start and end dates. + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. + * + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned + * + * @return a result set of data that matches the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRuleDateError extends ApiError { + class Select { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleDateError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; /** * @access public - * @var tnsAdRuleDateErrorReason + * @var Statement */ - public $reason; + public $selectStatement; /** * Gets the namesapce of this class @@ -5900,34 +5227,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($selectStatement = null) { + $this->selectStatement = $selectStatement; } } } -if (!class_exists("AdRuleFrequencyCapError", false)) { +if (!class_exists("SelectResponse", false)) { /** - * Errors related to ad rule frequency caps + * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRuleFrequencyCapError extends ApiError { + class SelectResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleFrequencyCapError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; /** * @access public - * @var tnsAdRuleFrequencyCapErrorReason + * @var ResultSet */ - public $reason; + public $rval; /** * Gets the namesapce of this class @@ -5945,28 +5267,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($rval = null) { + $this->rval = $rval; } } } -if (!class_exists("NoPoddingAdRuleSlot", false)) { +if (!class_exists("ObjectValue", false)) { /** - * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NoPoddingAdRuleSlot"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -5984,37 +5308,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct() { parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; } } } -if (!class_exists("OptimizedPoddingAdRuleSlot", false)) { +if (!class_exists("AdUnitAfcSizeError", false)) { /** - * Ad rule slot with optimized podding. Optimized pods are defined by a - * {@link BaseAdRuleSlot#maxPodDuration} and a {@link BaseAdRuleSlot#maxAdsInPod}, and the ad - * server chooses the best ads for the alloted duration. + * Caused by supplying sizes that are not compatible with the Afc sizes. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + class AdUnitAfcSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OptimizedPoddingAdRuleSlot"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitAfcSizeError"; + + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; /** * Gets the namesapce of this class @@ -6032,39 +5348,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null, $BaseAdRuleSlotType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->id = $id; - $this->slotBehavior = $slotBehavior; - $this->minVideoAdDuration = $minVideoAdDuration; - $this->maxVideoAdDuration = $maxVideoAdDuration; - $this->videoMidrollFrequencyType = $videoMidrollFrequencyType; - $this->videoMidrollFrequency = $videoMidrollFrequency; - $this->bumper = $bumper; - $this->maxBumperDuration = $maxBumperDuration; - $this->minPodDuration = $minPodDuration; - $this->maxPodDuration = $maxPodDuration; - $this->maxAdsInPod = $maxAdsInPod; - $this->BaseAdRuleSlotType = $BaseAdRuleSlotType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("AdRulePriorityError", false)) { +if (!class_exists("AdUnitCodeError", false)) { /** - * Errors associated with ad rule priorities. + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRulePriorityError extends ApiError { + class AdUnitCodeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRulePriorityError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitCodeError"; /** * @access public - * @var tnsAdRulePriorityErrorReason + * @var tnsAdUnitCodeErrorReason */ public $reason; @@ -6084,32 +5392,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("AdRuleSlotError", false)) { +if (!class_exists("AdUnitHierarchyError", false)) { /** - * Errors related to ad rule slots. + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRuleSlotError extends ApiError { + class AdUnitHierarchyError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AdRuleSlotError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitHierarchyError"; /** * @access public - * @var tnsAdRuleSlotErrorReason + * @var tnsAdUnitHierarchyErrorReason */ public $reason; @@ -6129,13 +5436,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -6145,11 +5451,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -6174,11 +5480,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -6189,11 +5494,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti * Represents a group of bandwidths that are logically organized by some well * known generic names such as 'Cable' or 'DSL'. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BandwidthGroup extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BandwidthGroup"; /** @@ -6212,11 +5517,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6226,11 +5530,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -6255,10 +5559,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6268,11 +5571,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an internet browser. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Browser extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Browser"; /** @@ -6303,13 +5606,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6319,11 +5621,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $id = nu /** * Represents a Browser's language. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BrowserLanguage extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BrowserLanguage"; /** @@ -6342,121 +5644,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; - } - - } -} - -if (!class_exists("CityLocation", false)) { - /** - * Represents a city for geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CityLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CityLocation"; - - /** - * @access public - * @var string - */ - public $cityName; - - /** - * @access public - * @var string - */ - public $regionCode; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($cityName = null, $regionCode = null, $countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->cityName = $cityName; - $this->regionCode = $regionCode; - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; - } - - } -} - -if (!class_exists("CountryLocation", false)) { - /** - * Represents a country for geographical targeting. - *

    - * Since {@code v201104}, fields of this class are ignored on input. Instead - * {@link Location} should be used and the {@link Location#id} field should be - * set. - *

    - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class CountryLocation extends DfpLocation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CountryLocation"; - - /** - * @access public - * @var string - */ - public $countryCode; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($countryCode = null, $id = null, $LocationType = null) { - parent::__construct(); - $this->countryCode = $countryCode; - $this->id = $id; - $this->LocationType = $LocationType; } } @@ -6470,11 +5661,11 @@ public function __construct($countryCode = null, $id = null, $LocationType = nul * criteria targeting tree is subject to the rules defined on * {@link Targeting#customTargeting}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomCriteriaSet extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaSet"; /** @@ -6505,11 +5696,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($logicalOperator = null, $children = null, $CustomCriteriaNodeType = null) { + public function __construct($logicalOperator = null, $children = null) { parent::__construct(); $this->logicalOperator = $logicalOperator; $this->children = $children; - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -6520,11 +5710,11 @@ public function __construct($logicalOperator = null, $children = null, $CustomCr * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree * structure. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomCriteriaLeaf extends CustomCriteriaNode { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteriaLeaf"; /** @@ -6543,9 +5733,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($CustomCriteriaNodeType = null) { + public function __construct() { parent::__construct(); - $this->CustomCriteriaNodeType = $CustomCriteriaNodeType; } } @@ -6555,11 +5744,11 @@ public function __construct($CustomCriteriaNodeType = null) { /** * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AudienceSegmentCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AudienceSegmentCriteria"; /** @@ -6603,11 +5792,11 @@ public function __construct($operator = null, $audienceSegmentIds = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -6632,10 +5821,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6645,11 +5833,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -6674,10 +5862,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6687,11 +5874,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents a capability of a physical device. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeviceCapability extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCapability"; /** @@ -6710,11 +5897,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6724,11 +5910,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents the category of a device. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeviceCategory extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceCategory"; /** @@ -6747,11 +5933,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6761,11 +5946,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a mobile device's manufacturer. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DeviceManufacturer extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeviceManufacturer"; /** @@ -6784,11 +5969,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6799,11 +5983,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { * Represents a mobile carrier. * Carrier targeting is only available to DFP mobile publishers. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MobileCarrier extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileCarrier"; /** @@ -6822,11 +6006,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6836,11 +6019,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a Mobile Device. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MobileDevice extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDevice"; /** @@ -6865,12 +6048,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($manufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->manufacturerCriterionId = $manufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6880,11 +6062,11 @@ public function __construct($manufacturerCriterionId = null, $id = null, $name = /** * Represents a mobile device submodel. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class MobileDeviceSubmodel extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "MobileDeviceSubmodel"; /** @@ -6915,13 +6097,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { parent::__construct(); $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -6931,11 +6112,11 @@ public function __construct($mobileDeviceCriterionId = null, $deviceManufacturer /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -6960,10 +6141,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -6973,11 +6153,11 @@ public function __construct($value = null, $ValueType = null) { /** * Represents an Operating System, such as Linux, Mac OS or Windows. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class OperatingSystem extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystem"; /** @@ -6996,11 +6176,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $TechnologyType = null) { + public function __construct($id = null, $name = null) { parent::__construct(); $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; } } @@ -7010,11 +6189,11 @@ public function __construct($id = null, $name = null, $TechnologyType = null) { /** * Represents a specific version of an operating system. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class OperatingSystemVersion extends Technology { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "OperatingSystemVersion"; /** @@ -7051,14 +6230,102 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null, $TechnologyType = null) { + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { parent::__construct(); $this->majorVersion = $majorVersion; $this->minorVersion = $minorVersion; $this->microVersion = $microVersion; $this->id = $id; $this->name = $name; - $this->TechnologyType = $TechnologyType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TargetingValue", false)) { + /** + * Contains a {@link Targeting} value. + *

    + * This object is experimental! + * TargetingValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * TargetingValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TargetingValue extends ObjectValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TargetingValue"; + + /** + * @access public + * @var Targeting + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; } } @@ -7068,11 +6335,11 @@ public function __construct($majorVersion = null, $minorVersion = null, $microVe /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -7097,10 +6364,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -7112,11 +6378,11 @@ public function __construct($value = null, $ValueType = null) { * on custom targeting keys of type {@link CustomTargetingKey.Type#PREDEFINED} * or {@link CustomTargetingKey.Type#FREEFORM}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CustomCriteria extends CustomCriteriaLeaf { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomCriteria"; /** @@ -7163,48 +6429,39 @@ public function __construct($keyId = null, $valueIds = null, $operator = null) { } } -if (!class_exists("AdRuleService", false)) { +if (!class_exists("PublisherQueryLanguageService", false)) { /** - * AdRuleService + * PublisherQueryLanguageService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AdRuleService extends DfpSoapClient { + class PublisherQueryLanguageService extends DfpSoapClient { - const SERVICE_NAME = "AdRuleService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/AdRuleService"; + const SERVICE_NAME = "PublisherQueryLanguageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/PublisherQueryLanguageService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/AdRuleService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/PublisherQueryLanguageService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( - "ActivateAdRules" => "ActivateAdRules", - "AdRuleAction" => "AdRuleAction", - "AdRuleDateError" => "AdRuleDateError", - "AdRule" => "AdRule", - "AdRuleFrequencyCapError" => "AdRuleFrequencyCapError", - "NoPoddingAdRuleSlot" => "NoPoddingAdRuleSlot", - "OptimizedPoddingAdRuleSlot" => "OptimizedPoddingAdRuleSlot", - "AdRulePage" => "AdRulePage", - "AdRulePriorityError" => "AdRulePriorityError", - "BaseAdRuleSlot" => "BaseAdRuleSlot", - "AdRuleSlotError" => "AdRuleSlotError", - "StandardPoddingAdRuleSlot" => "StandardPoddingAdRuleSlot", + "ObjectValue" => "ObjectValue", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", "AdUnitTargeting" => "AdUnitTargeting", "ApiError" => "ApiError", "ApiException" => "ApiException", "TechnologyTargeting" => "TechnologyTargeting", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BandwidthGroup" => "BandwidthGroup", "BandwidthGroupTargeting" => "BandwidthGroupTargeting", @@ -7213,14 +6470,14 @@ class AdRuleService extends DfpSoapClient { "BrowserLanguage" => "BrowserLanguage", "BrowserLanguageTargeting" => "BrowserLanguageTargeting", "BrowserTargeting" => "BrowserTargeting", - "CityLocation" => "CityLocation", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", + "ColumnType" => "ColumnType", "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", "ContentTargeting" => "ContentTargeting", - "CountryLocation" => "CountryLocation", + "CreativeError" => "CreativeError", "CustomCriteria" => "CustomCriteria", "CustomCriteriaSet" => "CustomCriteriaSet", - "CustomTargetingError" => "CustomTargetingError", "CustomCriteriaLeaf" => "CustomCriteriaLeaf", "CustomCriteriaNode" => "CustomCriteriaNode", "AudienceSegmentCriteria" => "AudienceSegmentCriteria", @@ -7230,21 +6487,25 @@ class AdRuleService extends DfpSoapClient { "DateValue" => "DateValue", "DayPart" => "DayPart", "DayPartTargeting" => "DayPartTargeting", - "DeactivateAdRules" => "DeactivateAdRules", - "DeleteAdRules" => "DeleteAdRules", "DeviceCapability" => "DeviceCapability", "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", "DeviceCategory" => "DeviceCategory", "DeviceCategoryTargeting" => "DeviceCategoryTargeting", "DeviceManufacturer" => "DeviceManufacturer", "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", + "FileError" => "FileError", "GeoTargeting" => "GeoTargeting", "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", "InventoryTargeting" => "InventoryTargeting", "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", "Location" => "DfpLocation", - "MetroLocation" => "MetroLocation", "MobileCarrier" => "MobileCarrier", "MobileCarrierTargeting" => "MobileCarrierTargeting", "MobileDevice" => "MobileDevice", @@ -7252,91 +6513,94 @@ class AdRuleService extends DfpSoapClient { "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", "MobileDeviceTargeting" => "MobileDeviceTargeting", "NotNullError" => "NotNullError", + "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "OperatingSystem" => "OperatingSystem", "OperatingSystemTargeting" => "OperatingSystemTargeting", "OperatingSystemVersion" => "OperatingSystemVersion", "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "OrderActionError" => "OrderActionError", + "OrderError" => "OrderError", + "ParseError" => "ParseError", "PermissionError" => "PermissionError", - "PoddingError" => "PoddingError", - "PostalCodeLocation" => "PostalCodeLocation", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", - "RegionLocation" => "RegionLocation", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResultSet" => "ResultSet", + "Row" => "Row", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", "StatementError" => "StatementError", - "StringLengthError" => "StringLengthError", "String_ValueMapEntry" => "String_ValueMapEntry", "Targeting" => "Targeting", + "TargetingValue" => "TargetingValue", "Technology" => "Technology", "TextValue" => "TextValue", "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", "UniqueError" => "UniqueError", - "UnknownAdRuleSlot" => "UnknownAdRuleSlot", - "UpdateResult" => "UpdateResult", "UserDomainTargeting" => "UserDomainTargeting", "Value" => "Value", "VideoPosition" => "VideoPosition", "VideoPositionTargeting" => "VideoPositionTargeting", "VideoPositionWithinPod" => "VideoPositionWithinPod", "VideoPositionTarget" => "VideoPositionTarget", - "AdRuleDateError.Reason" => "AdRuleDateErrorReason", - "AdRuleFrequencyCapError.Reason" => "AdRuleFrequencyCapErrorReason", - "AdRulePriorityError.Reason" => "AdRulePriorityErrorReason", - "AdRuleSlotBehavior" => "AdRuleSlotBehavior", - "AdRuleSlotBumper" => "AdRuleSlotBumper", - "AdRuleSlotError.Reason" => "AdRuleSlotErrorReason", - "AdRuleStatus" => "AdRuleStatus", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", "DayOfWeek" => "DayOfWeek", "DeliveryTimeZone" => "DeliveryTimeZone", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", - "FrequencyCapBehavior" => "FrequencyCapBehavior", + "FileError.Reason" => "FileErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", - "MidrollFrequencyType" => "MidrollFrequencyType", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", "MinuteOfHour" => "MinuteOfHour", "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", - "PoddingError.Reason" => "PoddingErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RegExError.Reason" => "RegExErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", "RequiredError.Reason" => "RequiredErrorReason", "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", "ServerError.Reason" => "ServerErrorReason", - "StartDateTimeType" => "StartDateTimeType", "StatementError.Reason" => "StatementErrorReason", - "StringLengthError.Reason" => "StringLengthErrorReason", "VideoBumperType" => "VideoBumperType", "VideoPosition.Type" => "VideoPositionType", - "createAdRule" => "CreateAdRule", - "createAdRuleResponse" => "CreateAdRuleResponse", - "createAdRules" => "CreateAdRules", - "createAdRulesResponse" => "CreateAdRulesResponse", - "getAdRule" => "GetAdRule", - "getAdRuleResponse" => "GetAdRuleResponse", - "getAdRulesByStatement" => "GetAdRulesByStatement", - "getAdRulesByStatementResponse" => "GetAdRulesByStatementResponse", - "performAdRuleAction" => "PerformAdRuleAction", - "performAdRuleActionResponse" => "PerformAdRuleActionResponse", - "updateAdRule" => "UpdateAdRule", - "updateAdRuleResponse" => "UpdateAdRuleResponse", - "updateAdRules" => "UpdateAdRules", - "updateAdRulesResponse" => "UpdateAdRulesResponse", + "select" => "Select", + "selectResponse" => "SelectResponse", ); @@ -7351,126 +6615,17 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Creates a new {@link AdRule}. - * - * The following fields are required: - *

      - *
    • {@link AdRule#id}
    • - *
    • {@link AdRule#name}
    • - *
    • {@link AdRule#priority}
    • - *
    • {@link AdRule#startDateTime}
    • - *
    • {@link AdRule#endDateTime}
    • - *
    • {@link AdRule#preroll}
    • - *
    • {@link AdRule#midroll}
    • - *
    • {@link AdRule#postroll}
    • - *
    - * - * @param adRule the ad rule to create - * @return the ad rule with its ID filled in - * @throws ApiException if there the ad rule is invalid or there is another - * error - */ - public function createAdRule($adRule) { - $args = new CreateAdRule($adRule); - $result = $this->__soapCall("createAdRule", array($args)); - return $result->rval; - } - /** - * Creates new {@link AdRule} objects. - * - * @param adRules the ad rules to create - * @return the created ad rules with their IDs filled in - */ - public function createAdRules($adRules) { - $args = new CreateAdRules($adRules); - $result = $this->__soapCall("createAdRules", array($args)); - return $result->rval; - } - /** - * Returns the {@link AdRule} uniquely identified by the given ID. - * - * @param adRuleId the ID of the ad rule, which must already exist - * @return the {@code AdRule} uniquely identified by the given ID - * @throws ApiException if there is an error retrieving the ad rule - * or the ID is invalid - */ - public function getAdRule($adRuleId) { - $args = new GetAdRule($adRuleId); - $result = $this->__soapCall("getAdRule", array($args)); - return $result->rval; - } - /** - * Gets an {@link AdRulePage} of {@link AdRule} objects that satisfy the given - * {@link Statement#query}. The following fields are supported for filtering: - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
    PQL Property Object Property
    {@code id}{@link AdRule#id}
    {@code name}{@link AdRule#name}
    {@code priority}{@link AdRule#priority}
    {@code status}{@link AdRule#status}
    - * - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the ad rules that match the given filter - * @throws ApiException if the ID of the active network does not exist or - * there is a backend error - */ - public function getAdRulesByStatement($statement) { - $args = new GetAdRulesByStatement($statement); - $result = $this->__soapCall("getAdRulesByStatement", array($args)); - return $result->rval; - } - /** - * Performs actions on {@link AdRule} objects that match the given - * {@link Statement#query}. + * Retrieves rows of data that satisfy the given {@link Statement#query} from + * the system. * - * @param adRuleAction the action to perform - * @param filterStatement a Publisher Query Language statement used to filter - * a set of ad rules - * @return the result of the action performed - */ - public function performAdRuleAction($adRuleAction, $filterStatement) { - $args = new PerformAdRuleAction($adRuleAction, $filterStatement); - $result = $this->__soapCall("performAdRuleAction", array($args)); - return $result->rval; - } - /** - * Updates a previously-created {@link AdRule}. - * - * @param adRule the ad rule that should be updated - * @return the updated ad rule - * @throws ApiException if there is an error updating the ad rule - */ - public function updateAdRule($adRule) { - $args = new UpdateAdRule($adRule); - $result = $this->__soapCall("updateAdRule", array($args)); - return $result->rval; - } - /** - * Updates the specified {@link AdRule} objects. + * @param selectStatement a Publisher Query Language statement used to + * specify what data needs to returned * - * @param adRules the ad rules to update - * @return the updated ad rules - * @throws ApiException if there is an error updating the ad rules + * @return a result set of data that matches the given filter */ - public function updateAdRules($adRules) { - $args = new UpdateAdRules($adRules); - $result = $this->__soapCall("updateAdRules", array($args)); + public function select($selectStatement) { + $args = new Select($selectStatement); + $result = $this->__soapCall("select", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201308/RateCardService.php b/src/Google/Api/Ads/Dfp/v201502/RateCardService.php similarity index 76% rename from src/Google/Api/Ads/Dfp/v201308/RateCardService.php rename to src/Google/Api/Ads/Dfp/v201502/RateCardService.php index 7c17b95c5..005565cea 100755 --- a/src/Google/Api/Ads/Dfp/v201308/RateCardService.php +++ b/src/Google/Api/Ads/Dfp/v201502/RateCardService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,32 +203,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("BaseRateError", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * An error having to do with {@link BaseRate}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class BaseRateError extends ApiError { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseRateError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var tnsBaseRateErrorReason + * @var tnsCollectionSizeErrorReason */ public $reason; @@ -399,57 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("ClientLogin", false)) { - /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ClientLogin extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; - - /** - * @access public - * @var string - */ - public $token; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($token = null, $AuthenticationType = null) { - parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; } } @@ -459,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -488,59 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("CustomTargetingError", false)) { - /** - * Lists all errors related to {@link CustomTargetingKey} and - * {@link CustomTargetingValue} objects. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CustomTargetingError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError"; - - /** - * @access public - * @var tnsCustomTargetingErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -550,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -604,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -668,21 +424,20 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } -if (!class_exists("FeatureError", false)) { +if (!class_exists("EntityChildrenLimitReachedError", false)) { /** - * Errors related to feature management. If you attempt using a feature that is not available to - * the current network you'll receive a FeatureError with the missing feature as the trigger. + * Lists errors relating to having too many children on an entity. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class FeatureError extends ApiError { + class EntityChildrenLimitReachedError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "FeatureError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; /** * @access public - * @var tnsFeatureErrorReason + * @var tnsEntityChildrenLimitReachedErrorReason */ public $reason; @@ -702,36 +457,28 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("InternalApiError", false)) { +if (!class_exists("EntityLimitReachedError", false)) { /** - * Indicates that a server-side error has occured. {@code InternalApiError}s - * are generally not the result of an invalid request or message sent by the - * client. + * An error that occurs when creating an entity if the limit on the number of allowed entities for + * a network has already been reached. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class InternalApiError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "InternalApiError"; + class EntityLimitReachedError extends ApiError { - /** - * @access public - * @var tnsInternalApiErrorReason - */ - public $reason; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; /** * Gets the namesapce of this class @@ -749,32 +496,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("FeatureError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Errors related to feature management. If you attempt using a feature that is not available to + * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsFeatureErrorReason */ public $reason; @@ -794,32 +540,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NullError", false)) { +if (!class_exists("InternalApiError", false)) { /** - * Errors associated with violation of a NOT NULL check. + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class NullError extends ApiError { + class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "NullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError"; /** * @access public - * @var tnsNullErrorReason + * @var tnsInternalApiErrorReason */ public $reason; @@ -839,36 +586,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("NotNullError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var string + * @var tnsNotNullErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -886,29 +630,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } } -if (!class_exists("ParseError", false)) { +if (!class_exists("NullError", false)) { /** - * Lists errors related to parsing. + * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ParseError extends ApiError { + class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ParseError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NullError"; /** * @access public - * @var tnsParseErrorReason + * @var tnsNullErrorReason */ public $reason; @@ -928,32 +674,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("PermissionError", false)) { +if (!class_exists("ParseError", false)) { /** - * Errors related to incorrect permission. + * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class PermissionError extends ApiError { + class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "PermissionError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ParseError"; /** * @access public - * @var tnsPermissionErrorReason + * @var tnsParseErrorReason */ public $reason; @@ -973,32 +718,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ProductError", false)) { +if (!class_exists("PermissionError", false)) { /** - * A catch-all error that lists all generic errors associated with Product. + * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ProductError extends ApiError { + class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "PermissionError"; /** * @access public - * @var tnsProductErrorReason + * @var tnsPermissionErrorReason */ public $reason; @@ -1018,13 +762,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1035,11 +778,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1064,13 +807,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1081,11 +823,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1110,13 +852,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1127,11 +868,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1156,58 +897,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("RangeError", false)) { - /** - * A list of all errors associated with the Range constraint. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class RangeError extends ApiError { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError"; - - /** - * @access public - * @var tnsRangeErrorReason - */ - public $reason; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1217,51 +912,13 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the actions that can be performed on {@link RateCard} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RateCardAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RateCardAction"; - /** - * @access public - * @var string - */ - public $RateCardActionType; - private $_parameterMap = array( - "RateCardAction.Type" => "RateCardActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1278,8 +935,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($RateCardActionType = null) { - $this->RateCardActionType = $RateCardActionType; + public function __construct() { } } @@ -1290,11 +946,11 @@ public function __construct($RateCardActionType = null) { * An error lists all error reasons associated with performing action * on {@link RateCard} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RateCardActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RateCardActionError"; /** @@ -1319,13 +975,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1336,11 +991,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Defines a collection of rules, including base rates for product templates and products, premiums, * proposal line item level adjustments and proposal level adjustments. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RateCard { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RateCard"; /** @@ -1355,6 +1010,12 @@ class RateCard { */ public $name; + /** + * @access public + * @var string + */ + public $currencyCode; + /** * @access public * @var tnsRateCardStatus @@ -1367,6 +1028,12 @@ class RateCard { */ public $appliedTeamIds; + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1383,11 +1050,57 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $status = null, $appliedTeamIds = null) { + public function __construct($id = null, $name = null, $currencyCode = null, $status = null, $appliedTeamIds = null, $lastModifiedDateTime = null) { $this->id = $id; $this->name = $name; + $this->currencyCode = $currencyCode; $this->status = $status; $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + + } +} + +if (!class_exists("RateCardError", false)) { + /** + * An error having to do with {@link RateCard}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RateCardError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RateCardError"; + + /** + * @access public + * @var tnsRateCardErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1397,11 +1110,11 @@ public function __construct($id = null, $name = null, $status = null, $appliedTe /** * Captures a page of {@link RateCard} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RateCardPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RateCardPage"; /** @@ -1451,11 +1164,11 @@ public function __construct($results = null, $startIndex = null, $totalResultSet /** * A list of all errors to be used for validating sizes of collections. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError"; /** @@ -1480,13 +1193,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1496,11 +1208,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1525,13 +1237,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1542,11 +1253,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A list of all errors to be used in conjunction with required number * validators. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredNumberError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError"; /** @@ -1571,13 +1282,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1587,11 +1297,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1616,13 +1326,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1632,11 +1341,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1651,12 +1360,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1673,10 +1376,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1686,11 +1388,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1761,11 +1463,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1808,11 +1510,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1837,13 +1539,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1853,11 +1554,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors for Strings which do not meet given length constraints. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError"; /** @@ -1882,13 +1583,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1899,11 +1599,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1946,11 +1646,11 @@ public function __construct($key = null, $value = null) { /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -1975,13 +1675,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1991,11 +1690,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -2014,12 +1713,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2029,11 +1727,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -2052,12 +1750,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -2067,11 +1764,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -2107,51 +1804,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2168,8 +1827,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2180,11 +1838,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2216,11 +1874,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2245,16 +1903,16 @@ public function __construct() { } } -if (!class_exists("BaseRateErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * The reasons for the target error. + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class BaseRateErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "BaseRateError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -2282,11 +1940,11 @@ public function __construct() { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2311,16 +1969,16 @@ public function __construct() { } } -if (!class_exists("CustomTargetingErrorReason", false)) { +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { /** - * The reasons for the target error. + * The reasons for the entity children limit reached error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class CustomTargetingErrorReason { + class EntityChildrenLimitReachedErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "CustomTargetingError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; /** * Gets the namesapce of this class @@ -2348,11 +2006,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2381,11 +2039,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2414,11 +2072,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2447,11 +2105,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2480,11 +2138,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2513,11 +2171,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2542,48 +2200,15 @@ public function __construct() { } } -if (!class_exists("ProductErrorReason", false)) { - /** - * The reasons for the target error. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class ProductErrorReason { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ProductError.Reason"; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct() { - } - - } -} - if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2612,11 +2237,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2655,11 +2280,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2684,16 +2309,16 @@ public function __construct() { } } -if (!class_exists("RangeErrorReason", false)) { +if (!class_exists("RateCardActionErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class RangeErrorReason { + class RateCardActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RangeError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RateCardActionError.Reason"; /** * Gets the namesapce of this class @@ -2717,16 +2342,16 @@ public function __construct() { } } -if (!class_exists("RateCardActionErrorReason", false)) { +if (!class_exists("RateCardErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class RateCardActionErrorReason { + class RateCardErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "RateCardActionError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RateCardError.Reason"; /** * Gets the namesapce of this class @@ -2754,11 +2379,11 @@ public function __construct() { /** * A required collection is missing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredCollectionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredCollectionError.Reason"; /** @@ -2787,11 +2412,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2820,11 +2445,11 @@ public function __construct() { /** * Describes reasons for a number to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredNumberErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredNumberError.Reason"; /** @@ -2853,11 +2478,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2886,11 +2511,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2919,11 +2544,11 @@ public function __construct() { /** * Describes the status of {@link RateCard} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RateCardStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RateCardStatus"; /** @@ -2952,11 +2577,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StringLengthErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StringLengthError.Reason"; /** @@ -2985,11 +2610,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -3014,90 +2639,6 @@ public function __construct() { } } -if (!class_exists("CreateRateCard", false)) { - /** - * Creates a new {@link RateCard}. Rate cards must be activated before being - * associated with proposal line items and products. - * - * @param rateCard the rate card to be created - * @return the rate card with corresponding fields set by Google. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rateCard; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCard = null) { - $this->rateCard = $rateCard; - } - - } -} - -if (!class_exists("CreateRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateRateCards", false)) { /** * Creates a list of {@link RateCard} objects. Rate cards must be activated @@ -3106,11 +2647,11 @@ public function __construct($rval = null) { * @param rateCards the rate cards to be created * @return the created rate cards. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateRateCards { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3146,11 +2687,11 @@ public function __construct($rateCards = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateRateCardsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3182,88 +2723,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetRateCard", false)) { - /** - * Returns the {@link RateCard} uniquely identified by the given ID. - * - * @param rateCardId the ID of the rate card, which must already exist - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetRateCard { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $rateCardId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCardId = null) { - $this->rateCardId = $rateCardId; - } - - } -} - -if (!class_exists("GetRateCardResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetRateCardResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetRateCardsByStatement", false)) { /** * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given @@ -3294,11 +2753,11 @@ public function __construct($rval = null) { * @param filterStatement a Publisher Query Language statement to filter a list of rate cards. * @return the rate cards that match the filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetRateCardsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3334,11 +2793,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetRateCardsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3380,11 +2839,11 @@ public function __construct($rval = null) { * a set of rate cards. * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformRateCardAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3427,11 +2886,11 @@ public function __construct($rateCardAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformRateCardActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3463,25 +2922,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateRateCard", false)) { +if (!class_exists("UpdateRateCards", false)) { /** - * Updates the specified {@link RateCard}. + * Updates a list of {@link RateCard} objects. * - * @param rateCard the rate card to be updated - * @return the updated rate card + * @param rateCards the rate cards to be updated + * @return the updated rate cards * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateRateCard { + class UpdateRateCards { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var RateCard + * @var RateCard[] */ - public $rateCard; + public $rateCards; /** * Gets the namesapce of this class @@ -3499,27 +2958,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rateCard = null) { - $this->rateCard = $rateCard; + public function __construct($rateCards = null) { + $this->rateCards = $rateCards; } } } -if (!class_exists("UpdateRateCardResponse", false)) { +if (!class_exists("UpdateRateCardsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateRateCardResponse { + class UpdateRateCardsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var RateCard + * @var RateCard[] */ public $rval; @@ -3546,65 +3005,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateRateCards", false)) { - /** - * Updates a list of {@link RateCard} objects. - * - * @param rateCards the rate cards to be updated - * @return the updated rate cards - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateRateCards { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var RateCard[] - */ - public $rateCards; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rateCards = null) { - $this->rateCards = $rateCards; - } - - } -} - -if (!class_exists("UpdateRateCardsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateRateCardsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var RateCard[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3622,8 +3039,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -3633,11 +3050,11 @@ public function __construct($rval = null) { /** * The action used to activate {@link RateCard} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivateRateCards extends RateCardAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateRateCards"; /** @@ -3656,9 +3073,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($RateCardActionType = null) { + public function __construct() { parent::__construct(); - $this->RateCardActionType = $RateCardActionType; } } @@ -3668,11 +3084,11 @@ public function __construct($RateCardActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3697,11 +3113,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3711,11 +3126,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3740,10 +3155,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3753,11 +3167,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3782,10 +3196,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3795,11 +3208,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3824,10 +3237,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3837,11 +3249,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used to deactivate {@link RateCard} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivateRateCards extends RateCardAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateRateCards"; /** @@ -3860,9 +3272,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($RateCardActionType = null) { + public function __construct() { parent::__construct(); - $this->RateCardActionType = $RateCardActionType; } } @@ -3872,11 +3283,11 @@ public function __construct($RateCardActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3901,10 +3312,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3914,11 +3365,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3943,10 +3394,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3956,63 +3406,62 @@ public function __construct($value = null, $ValueType = null) { /** * RateCardService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RateCardService extends DfpSoapClient { const SERVICE_NAME = "RateCardService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/RateCardService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/RateCardService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/RateCardService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/RateCardService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateRateCards" => "ActivateRateCards", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", - "BaseRateError" => "BaseRateError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", - "CustomTargetingError" => "CustomTargetingError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateRateCards" => "DeactivateRateCards", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", - "ProductError" => "ProductError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", - "RangeError" => "RangeError", "RateCardAction" => "RateCardAction", "RateCardActionError" => "RateCardActionError", "RateCard" => "RateCard", + "RateCardError" => "RateCardError", "RateCardPage" => "RateCardPage", "RequiredCollectionError" => "RequiredCollectionError", "RequiredError" => "RequiredError", "RequiredNumberError" => "RequiredNumberError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -4027,21 +3476,20 @@ class RateCardService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", - "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", - "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "NullError.Reason" => "NullErrorReason", "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", - "ProductError.Reason" => "ProductErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", - "RangeError.Reason" => "RangeErrorReason", "RateCardActionError.Reason" => "RateCardActionErrorReason", + "RateCardError.Reason" => "RateCardErrorReason", "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", "RequiredError.Reason" => "RequiredErrorReason", "RequiredNumberError.Reason" => "RequiredNumberErrorReason", @@ -4050,18 +3498,12 @@ class RateCardService extends DfpSoapClient { "RateCardStatus" => "RateCardStatus", "StringLengthError.Reason" => "StringLengthErrorReason", "TeamError.Reason" => "TeamErrorReason", - "createRateCard" => "CreateRateCard", - "createRateCardResponse" => "CreateRateCardResponse", "createRateCards" => "CreateRateCards", "createRateCardsResponse" => "CreateRateCardsResponse", - "getRateCard" => "GetRateCard", - "getRateCardResponse" => "GetRateCardResponse", "getRateCardsByStatement" => "GetRateCardsByStatement", "getRateCardsByStatementResponse" => "GetRateCardsByStatementResponse", "performRateCardAction" => "PerformRateCardAction", "performRateCardActionResponse" => "PerformRateCardActionResponse", - "updateRateCard" => "UpdateRateCard", - "updateRateCardResponse" => "UpdateRateCardResponse", "updateRateCards" => "UpdateRateCards", "updateRateCardsResponse" => "UpdateRateCardsResponse", ); @@ -4077,18 +3519,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link RateCard}. Rate cards must be activated before being - * associated with proposal line items and products. - * - * @param rateCard the rate card to be created - * @return the rate card with corresponding fields set by Google. - */ - public function createRateCard($rateCard) { - $args = new CreateRateCard($rateCard); - $result = $this->__soapCall("createRateCard", array($args)); - return $result->rval; - } /** * Creates a list of {@link RateCard} objects. Rate cards must be activated * before being associated with proposal line items and products. @@ -4101,16 +3531,6 @@ public function createRateCards($rateCards) { $result = $this->__soapCall("createRateCards", array($args)); return $result->rval; } - /** - * Returns the {@link RateCard} uniquely identified by the given ID. - * - * @param rateCardId the ID of the rate card, which must already exist - */ - public function getRateCard($rateCardId) { - $args = new GetRateCard($rateCardId); - $result = $this->__soapCall("getRateCard", array($args)); - return $result->rval; - } /** * Gets a {@link RateCardPage} of {@link RateCard} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -4159,17 +3579,6 @@ public function performRateCardAction($rateCardAction, $filterStatement) { $result = $this->__soapCall("performRateCardAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link RateCard}. - * - * @param rateCard the rate card to be updated - * @return the updated rate card - */ - public function updateRateCard($rateCard) { - $args = new UpdateRateCard($rateCard); - $result = $this->__soapCall("updateRateCard", array($args)); - return $result->rval; - } /** * Updates a list of {@link RateCard} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201502/ReconciliationOrderReportService.php similarity index 82% rename from src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php rename to src/Google/Api/Ads/Dfp/v201502/ReconciliationOrderReportService.php index db25ebc0b..cfc113e36 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ReconciliationOrderReportService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ReconciliationOrderReportService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -582,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -611,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -629,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -658,13 +504,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +519,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -703,13 +548,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -719,11 +563,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -748,57 +592,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -808,51 +607,13 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationOrderReportAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationOrderReportAction"; - /** - * @access public - * @var string - */ - public $ReconciliationOrderReportActionType; - private $_parameterMap = array( - "ReconciliationOrderReportAction.Type" => "ReconciliationOrderReportActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -869,8 +630,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ReconciliationOrderReportActionType = null) { - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; + public function __construct() { } } @@ -881,11 +641,11 @@ public function __construct($ReconciliationOrderReportActionType = null) { * A {@link ReconciliationOrderReport} represents one order * in the reconciliation report. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationOrderReport { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationOrderReport"; /** @@ -906,6 +666,12 @@ class ReconciliationOrderReport { */ public $orderId; + /** + * @access public + * @var integer + */ + public $proposalId; + /** * @access public * @var tnsReconciliationOrderReportStatus @@ -940,10 +706,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $reconciliationReportId = null, $orderId = null, $status = null, $submissionDateTime = null, $submitterId = null) { + public function __construct($id = null, $reconciliationReportId = null, $orderId = null, $proposalId = null, $status = null, $submissionDateTime = null, $submitterId = null) { $this->id = $id; $this->reconciliationReportId = $reconciliationReportId; $this->orderId = $orderId; + $this->proposalId = $proposalId; $this->status = $status; $this->submissionDateTime = $submissionDateTime; $this->submitterId = $submitterId; @@ -956,11 +723,11 @@ public function __construct($id = null, $reconciliationReportId = null, $orderId /** * Captures a page of {@link ReconciliationOrderReport} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationOrderReportPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationOrderReportPage"; /** @@ -1010,11 +777,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1039,13 +806,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1056,11 +822,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1085,13 +851,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1102,11 +867,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1131,13 +896,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1148,11 +912,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1177,13 +941,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1193,11 +956,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1222,13 +985,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1238,11 +1000,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SubmitReconciliationOrderReports"; /** @@ -1261,9 +1023,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ReconciliationOrderReportActionType = null) { + public function __construct() { parent::__construct(); - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; } } @@ -1273,11 +1034,11 @@ public function __construct($ReconciliationOrderReportActionType = null) { /** * Lists all errors associated with reconciliation. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationError"; /** @@ -1302,13 +1063,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1318,11 +1078,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1347,13 +1107,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1363,11 +1122,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RevertReconciliationOrderReports"; /** @@ -1386,9 +1145,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ReconciliationOrderReportActionType = null) { + public function __construct() { parent::__construct(); - $this->ReconciliationOrderReportActionType = $ReconciliationOrderReportActionType; } } @@ -1398,11 +1156,11 @@ public function __construct($ReconciliationOrderReportActionType = null) { /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1427,13 +1185,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1443,11 +1200,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1462,12 +1219,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1484,10 +1235,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1497,11 +1247,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1572,11 +1322,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1619,11 +1369,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1648,13 +1398,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1665,11 +1414,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1712,11 +1461,11 @@ public function __construct($key = null, $value = null) { /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1752,51 +1501,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1813,8 +1524,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1825,11 +1535,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1861,11 +1571,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1890,15 +1600,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1927,11 +1670,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1960,11 +1703,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1993,11 +1736,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2026,11 +1769,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2059,11 +1802,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2092,11 +1835,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2125,11 +1868,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2168,11 +1911,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2201,11 +1944,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2234,11 +1977,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationError.Reason"; /** @@ -2267,11 +2010,11 @@ public function __construct() { /** * The status of the reconciliation order report. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationOrderReportStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationOrderReportStatus"; /** @@ -2300,11 +2043,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2333,11 +2076,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2366,11 +2109,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2395,90 +2138,6 @@ public function __construct() { } } -if (!class_exists("GetReconciliationOrderReport", false)) { - /** - * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. - * - * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, - * which must already exist. - * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetReconciliationOrderReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reconciliationOrderReportId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationOrderReportId = null) { - $this->reconciliationOrderReportId = $reconciliationOrderReportId; - } - - } -} - -if (!class_exists("GetReconciliationOrderReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetReconciliationOrderReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationOrderReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetReconciliationOrderReportsByStatement", false)) { /** * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects @@ -2527,11 +2186,11 @@ public function __construct($rval = null) { * a set of reconciliation order reports. * @return the reconciliation order reports that match the given filter. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReconciliationOrderReportsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2567,11 +2226,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReconciliationOrderReportsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2641,11 +2300,11 @@ public function __construct($rval = null) { * one reconciliation report. * @return the result of the action performed. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformReconciliationOrderReportAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2688,11 +2347,11 @@ public function __construct($reconciliationOrderReportAction = null, $filterStat /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformReconciliationOrderReportActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2724,15 +2383,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2757,11 +2457,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2771,11 +2470,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2800,10 +2499,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2813,11 +2511,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2842,10 +2540,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2855,11 +2552,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2884,10 +2581,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2897,11 +2593,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2926,10 +2622,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -2939,11 +2675,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -2968,10 +2704,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2981,33 +2716,33 @@ public function __construct($value = null, $ValueType = null) { /** * ReconciliationOrderReportService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationOrderReportService extends DfpSoapClient { const SERVICE_NAME = "ReconciliationOrderReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ReconciliationOrderReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ReconciliationOrderReportService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ReconciliationOrderReportService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ReconciliationOrderReportService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3018,7 +2753,6 @@ class ReconciliationOrderReportService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ReconciliationOrderReportAction" => "ReconciliationOrderReportAction", "ReconciliationOrderReport" => "ReconciliationOrderReport", "ReconciliationOrderReportPage" => "ReconciliationOrderReportPage", @@ -3032,6 +2766,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "RequiredError" => "RequiredError", "RevertReconciliationOrderReports" => "RevertReconciliationOrderReports", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3042,6 +2777,7 @@ class ReconciliationOrderReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -3057,8 +2793,6 @@ class ReconciliationOrderReportService extends DfpSoapClient { "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", - "getReconciliationOrderReport" => "GetReconciliationOrderReport", - "getReconciliationOrderReportResponse" => "GetReconciliationOrderReportResponse", "getReconciliationOrderReportsByStatement" => "GetReconciliationOrderReportsByStatement", "getReconciliationOrderReportsByStatementResponse" => "GetReconciliationOrderReportsByStatementResponse", "performReconciliationOrderReportAction" => "PerformReconciliationOrderReportAction", @@ -3076,18 +2810,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Returns the {@link ReconciliationOrderReport} object uniquely identified by given ID. - * - * @param reconciliationOrderReportId the ID of the {@link ReconciliationOrderReport}, - * which must already exist. - * @return the {@link ReconciliationOrderReport} uniquely identified by given ID. - */ - public function getReconciliationOrderReport($reconciliationOrderReportId) { - $args = new GetReconciliationOrderReport($reconciliationOrderReportId); - $result = $this->__soapCall("getReconciliationOrderReport", array($args)); - return $result->rval; - } /** * Gets an {@link ReconciliationOrderReportPage} of {@link ReconciliationOrderReport} objects * that satisfy the given {@link Statement#query}. diff --git a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201502/ReconciliationReportRowService.php similarity index 84% rename from src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php rename to src/Google/Api/Ads/Dfp/v201502/ReconciliationReportRowService.php index d732f3be4..4be774fc3 100755 --- a/src/Google/Api/Ads/Dfp/v201306/ReconciliationReportRowService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ReconciliationReportRowService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -582,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -611,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -629,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -658,13 +504,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +519,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a money amount. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Money { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Money"; /** @@ -721,11 +566,11 @@ public function __construct($currencyCode = null, $microAmount = null) { /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -750,13 +595,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -766,11 +610,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -795,57 +639,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -855,11 +654,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -884,13 +683,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -901,11 +699,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -930,13 +728,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -947,11 +744,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -976,13 +773,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -993,11 +789,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1022,13 +818,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1038,11 +833,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1067,13 +862,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1083,11 +877,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with reconciliation. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ReconciliationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationError"; /** @@ -1112,13 +906,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1128,11 +921,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The API errors for reconciliation CSV import. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ReconciliationImportError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationImportError"; /** @@ -1157,13 +950,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1175,11 +967,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Each row is identified by its {@link #reconciliationReportId}, {@link #lineItemId}, * {@link #creativeId}, and {@link #proposalLineItemId}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ReconciliationReportRow { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationReportRow"; /** @@ -1212,101 +1004,65 @@ class ReconciliationReportRow { */ public $advertiserId; - /** - * @access public - * @var tnsBillFrom - */ - public $billFrom; - - /** - * @access public - * @var tnsCostType - */ - public $lineItemCostType; - - /** - * @access public - * @var Money - */ - public $lineItemCostPerUnit; - /** * @access public * @var integer */ - public $lineItemContractedUnitsBought; + public $proposalLineItemId; /** * @access public * @var integer */ - public $dfpClicks; + public $proposalId; /** * @access public - * @var integer - */ - public $dfpImpressions; - - /** - * @access public - * @var integer - */ - public $dfpLineItemDays; - - /** - * @access public - * @var integer - */ - public $thirdPartyClicks; - - /** - * @access public - * @var integer + * @var tnsBillFrom */ - public $thirdPartyImpressions; + public $billFrom; /** * @access public - * @var integer + * @var tnsRateType */ - public $thirdPartyLineItemDays; + public $rateType; /** * @access public - * @var integer + * @var Money */ - public $manualClicks; + public $lineItemCostPerUnit; /** * @access public * @var integer */ - public $manualImpressions; + public $lineItemContractedUnitsBought; /** * @access public * @var integer */ - public $manualLineItemDays; + public $dfpVolume; /** * @access public * @var integer */ - public $reconciledClicks; + public $thirdPartyVolume; /** * @access public * @var integer */ - public $reconciledImpressions; + public $manualVolume; /** * @access public * @var integer */ - public $reconciledLineItemDays; + public $reconciledVolume; /** * @access public @@ -1360,28 +1116,22 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reconciliationReportId = null, $lineItemId = null, $creativeId = null, $orderId = null, $advertiserId = null, $billFrom = null, $lineItemCostType = null, $lineItemCostPerUnit = null, $lineItemContractedUnitsBought = null, $dfpClicks = null, $dfpImpressions = null, $dfpLineItemDays = null, $thirdPartyClicks = null, $thirdPartyImpressions = null, $thirdPartyLineItemDays = null, $manualClicks = null, $manualImpressions = null, $manualLineItemDays = null, $reconciledClicks = null, $reconciledImpressions = null, $reconciledLineItemDays = null, $contractedRevenue = null, $dfpRevenue = null, $thirdPartyRevenue = null, $manualRevenue = null, $reconciledRevenue = null, $comments = null) { + public function __construct($reconciliationReportId = null, $lineItemId = null, $creativeId = null, $orderId = null, $advertiserId = null, $proposalLineItemId = null, $proposalId = null, $billFrom = null, $rateType = null, $lineItemCostPerUnit = null, $lineItemContractedUnitsBought = null, $dfpVolume = null, $thirdPartyVolume = null, $manualVolume = null, $reconciledVolume = null, $contractedRevenue = null, $dfpRevenue = null, $thirdPartyRevenue = null, $manualRevenue = null, $reconciledRevenue = null, $comments = null) { $this->reconciliationReportId = $reconciliationReportId; $this->lineItemId = $lineItemId; $this->creativeId = $creativeId; $this->orderId = $orderId; $this->advertiserId = $advertiserId; + $this->proposalLineItemId = $proposalLineItemId; + $this->proposalId = $proposalId; $this->billFrom = $billFrom; - $this->lineItemCostType = $lineItemCostType; + $this->rateType = $rateType; $this->lineItemCostPerUnit = $lineItemCostPerUnit; $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; - $this->dfpClicks = $dfpClicks; - $this->dfpImpressions = $dfpImpressions; - $this->dfpLineItemDays = $dfpLineItemDays; - $this->thirdPartyClicks = $thirdPartyClicks; - $this->thirdPartyImpressions = $thirdPartyImpressions; - $this->thirdPartyLineItemDays = $thirdPartyLineItemDays; - $this->manualClicks = $manualClicks; - $this->manualImpressions = $manualImpressions; - $this->manualLineItemDays = $manualLineItemDays; - $this->reconciledClicks = $reconciledClicks; - $this->reconciledImpressions = $reconciledImpressions; - $this->reconciledLineItemDays = $reconciledLineItemDays; + $this->dfpVolume = $dfpVolume; + $this->thirdPartyVolume = $thirdPartyVolume; + $this->manualVolume = $manualVolume; + $this->reconciledVolume = $reconciledVolume; $this->contractedRevenue = $contractedRevenue; $this->dfpRevenue = $dfpRevenue; $this->thirdPartyRevenue = $thirdPartyRevenue; @@ -1397,11 +1147,11 @@ public function __construct($reconciliationReportId = null, $lineItemId = null, /** * Captures a page of {@link ReconciliationReportRow} objects * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ReconciliationReportRowPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationReportRowPage"; /** @@ -1451,11 +1201,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1480,13 +1230,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1496,11 +1245,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1525,13 +1274,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1541,11 +1289,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1560,12 +1308,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1582,10 +1324,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1595,11 +1336,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1670,11 +1411,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1717,11 +1458,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1746,13 +1487,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1763,11 +1503,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1810,51 +1550,13 @@ public function __construct($key = null, $value = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1871,8 +1573,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1883,11 +1584,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1919,11 +1620,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1952,11 +1653,11 @@ public function __construct() { /** * Values for which to bill from. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BillFrom { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BillFrom"; /** @@ -1981,16 +1682,16 @@ public function __construct() { } } -if (!class_exists("CommonErrorReason", false)) { +if (!class_exists("CollectionSizeErrorReason", false)) { /** - * Describes reasons for common errors + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CommonErrorReason { + class CollectionSizeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CommonError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; /** * Gets the namesapce of this class @@ -2014,16 +1715,16 @@ public function __construct() { } } -if (!class_exists("CostType", false)) { +if (!class_exists("CommonErrorReason", false)) { /** - * Describes the {@link LineItem} actions that are billable. + * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class CostType { + class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "CostType"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CommonError.Reason"; /** * Gets the namesapce of this class @@ -2051,11 +1752,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2084,11 +1785,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2117,11 +1818,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2150,11 +1851,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -2183,11 +1884,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2216,11 +1917,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2249,11 +1950,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2292,11 +1993,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2325,11 +2026,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2354,15 +2055,49 @@ public function __construct() { } } +if (!class_exists("RateType", false)) { + /** + * Describes the type of event the advertiser is paying for. The values here correspond to the + * values for the {@link LineItem#costType} field. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ReconciliationErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ReconciliationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationError.Reason"; /** @@ -2391,11 +2126,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ReconciliationImportErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationImportError.Reason"; /** @@ -2424,11 +2159,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2457,11 +2192,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2490,11 +2225,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2610,11 +2345,11 @@ public function __construct() { * filter a set of reconciliation report rows * @return the reconciliation report rows that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetReconciliationReportRowsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2650,11 +2385,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetReconciliationReportRowsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2694,11 +2429,11 @@ public function __construct($rval = null) { * @param reconciliationReportRows a list of reconciliation report rows to update * @return the updated reconciliation report rows * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateReconciliationReportRows { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2734,11 +2469,11 @@ public function __construct($reconciliationReportRows = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UpdateReconciliationReportRowsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2770,15 +2505,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2803,11 +2579,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2817,11 +2592,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2846,10 +2621,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2859,11 +2633,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2888,10 +2662,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2901,11 +2674,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2930,10 +2703,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2943,11 +2715,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2972,10 +2744,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -2985,11 +2797,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3014,10 +2826,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3027,33 +2838,33 @@ public function __construct($value = null, $ValueType = null) { /** * ReconciliationReportRowService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ReconciliationReportRowService extends DfpSoapClient { const SERVICE_NAME = "ReconciliationReportRowService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/ReconciliationReportRowService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ReconciliationReportRowService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/ReconciliationReportRowService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ReconciliationReportRowService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3065,7 +2876,6 @@ class ReconciliationReportRowService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -3077,6 +2887,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "ReconciliationReportRowPage" => "ReconciliationReportRowPage", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3087,8 +2898,8 @@ class ReconciliationReportRowService extends DfpSoapClient { "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", "BillFrom" => "BillFrom", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", - "CostType" => "CostType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", @@ -3098,6 +2909,7 @@ class ReconciliationReportRowService extends DfpSoapClient { "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", "ReconciliationError.Reason" => "ReconciliationErrorReason", "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", "RequiredError.Reason" => "RequiredErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201502/ReconciliationReportService.php similarity index 79% rename from src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php rename to src/Google/Api/Ads/Dfp/v201502/ReconciliationReportService.php index d17287a46..2fbc7158e 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ReconciliationReportService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ReconciliationReportService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -582,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -611,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -629,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -658,13 +504,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +519,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -703,13 +548,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -719,11 +563,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -748,57 +592,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -808,11 +607,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -837,13 +636,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -854,11 +652,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -883,13 +681,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -900,11 +697,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -929,13 +726,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -946,11 +742,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -975,13 +771,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -991,11 +786,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A list of all errors associated with the Range constraint. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError"; /** @@ -1020,13 +815,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1036,11 +830,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with reconciliation. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationError"; /** @@ -1065,13 +859,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1081,11 +874,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The API errors for reconciliation CSV import. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationImportError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationImportError"; /** @@ -1110,13 +903,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1126,11 +918,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A {@code ReconciliationReport} represents a report that can be reconciled. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationReport { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationReport"; /** @@ -1187,11 +979,11 @@ public function __construct($id = null, $status = null, $startDate = null, $note /** * Captures a page of {@link ReconciliationReport} objects * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationReportPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationReportPage"; /** @@ -1241,11 +1033,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1270,13 +1062,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1286,11 +1077,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1315,13 +1106,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1331,11 +1121,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1350,12 +1140,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1372,10 +1156,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1385,11 +1168,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1460,11 +1243,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1507,11 +1290,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1536,13 +1319,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1553,11 +1335,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1600,51 +1382,13 @@ public function __construct($key = null, $value = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1661,8 +1405,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1673,11 +1416,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1709,11 +1452,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1738,15 +1481,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1775,11 +1551,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1808,11 +1584,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1841,11 +1617,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1874,11 +1650,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -1907,11 +1683,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1940,11 +1716,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -1973,11 +1749,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2016,11 +1792,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2049,11 +1825,11 @@ public function __construct() { /** * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RangeErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RangeError.Reason"; /** @@ -2082,11 +1858,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationError.Reason"; /** @@ -2115,11 +1891,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationImportErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationImportError.Reason"; /** @@ -2148,11 +1924,11 @@ public function __construct() { /** * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationReportStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReconciliationReportStatus"; /** @@ -2181,11 +1957,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2214,11 +1990,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2247,11 +2023,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2276,89 +2052,6 @@ public function __construct() { } } -if (!class_exists("GetReconciliationReport", false)) { - /** - * Returns the {@link ReconciliationReport} object uniquely identified by given ID. - * - * @param reconciliationReportId the ID of the reconciliation report, which must already exist - * @return the {@code ReconciliationReport} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetReconciliationReport { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $reconciliationReportId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReportId = null) { - $this->reconciliationReportId = $reconciliationReportId; - } - - } -} - -if (!class_exists("GetReconciliationReportResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetReconciliationReportResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetReconciliationReportsByStatement", false)) { /** * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy @@ -2386,11 +2079,11 @@ public function __construct($rval = null) { * filter a set of reconciliation reports * @return the reconciliation reports that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReconciliationReportsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2426,11 +2119,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReconciliationReportsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2462,25 +2155,26 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateReconciliationReport", false)) { +if (!class_exists("UpdateReconciliationReports", false)) { /** - * Updates the specified {@link ReconciliationReport}. + * Updates the specified {@link ReconciliationReport} objects. * - * @param reconciliationReport the reconciliation report to be updated - * @return the updated reconciliation report + * @param reconciliationReports the reconciliation reports to update + * @return the updated reconciliation reports + * @throws ApiException * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateReconciliationReport { + class UpdateReconciliationReports { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ReconciliationReport + * @var ReconciliationReport[] */ - public $reconciliationReport; + public $reconciliationReports; /** * Gets the namesapce of this class @@ -2498,27 +2192,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reconciliationReport = null) { - $this->reconciliationReport = $reconciliationReport; + public function __construct($reconciliationReports = null) { + $this->reconciliationReports = $reconciliationReports; } } } -if (!class_exists("UpdateReconciliationReportResponse", false)) { +if (!class_exists("UpdateReconciliationReportsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateReconciliationReportResponse { + class UpdateReconciliationReportsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var ReconciliationReport + * @var ReconciliationReport[] */ public $rval; @@ -2545,66 +2239,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateReconciliationReports", false)) { - /** - * Updates the specified {@link ReconciliationReport} objects. - * - * @param reconciliationReports the reconciliation reports to update - * @return the updated reconciliation reports - * @throws ApiException - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateReconciliationReports { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $reconciliationReports; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reconciliationReports = null) { - $this->reconciliationReports = $reconciliationReports; - } - - } -} - -if (!class_exists("UpdateReconciliationReportsResponse", false)) { +if (!class_exists("ObjectValue", false)) { /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateReconciliationReportsResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var ReconciliationReport[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2622,8 +2273,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -2633,11 +2284,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2662,11 +2313,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2676,11 +2326,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2705,10 +2355,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2718,11 +2367,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2747,10 +2396,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2760,11 +2408,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2789,10 +2437,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2802,11 +2449,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2831,10 +2478,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -2844,11 +2531,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -2873,10 +2560,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2886,33 +2572,33 @@ public function __construct($value = null, $ValueType = null) { /** * ReconciliationReportService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReconciliationReportService extends DfpSoapClient { const SERVICE_NAME = "ReconciliationReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ReconciliationReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ReconciliationReportService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ReconciliationReportService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ReconciliationReportService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2923,7 +2609,6 @@ class ReconciliationReportService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", @@ -2935,6 +2620,7 @@ class ReconciliationReportService extends DfpSoapClient { "ReconciliationReportPage" => "ReconciliationReportPage", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -2944,6 +2630,7 @@ class ReconciliationReportService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -2960,12 +2647,8 @@ class ReconciliationReportService extends DfpSoapClient { "RequiredError.Reason" => "RequiredErrorReason", "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", - "getReconciliationReport" => "GetReconciliationReport", - "getReconciliationReportResponse" => "GetReconciliationReportResponse", "getReconciliationReportsByStatement" => "GetReconciliationReportsByStatement", "getReconciliationReportsByStatementResponse" => "GetReconciliationReportsByStatementResponse", - "updateReconciliationReport" => "UpdateReconciliationReport", - "updateReconciliationReportResponse" => "UpdateReconciliationReportResponse", "updateReconciliationReports" => "UpdateReconciliationReports", "updateReconciliationReportsResponse" => "UpdateReconciliationReportsResponse", ); @@ -2981,17 +2664,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Returns the {@link ReconciliationReport} object uniquely identified by given ID. - * - * @param reconciliationReportId the ID of the reconciliation report, which must already exist - * @return the {@code ReconciliationReport} uniquely identified by the given ID - */ - public function getReconciliationReport($reconciliationReportId) { - $args = new GetReconciliationReport($reconciliationReportId); - $result = $this->__soapCall("getReconciliationReport", array($args)); - return $result->rval; - } /** * Gets an {@link ReconciliationReportPage} of {@link ReconciliationReport} objects that satisfy * the given {@link Statement#query}. The following fields are supported for filtering. @@ -3023,17 +2695,6 @@ public function getReconciliationReportsByStatement($filterStatement) { $result = $this->__soapCall("getReconciliationReportsByStatement", array($args)); return $result->rval; } - /** - * Updates the specified {@link ReconciliationReport}. - * - * @param reconciliationReport the reconciliation report to be updated - * @return the updated reconciliation report - */ - public function updateReconciliationReport($reconciliationReport) { - $args = new UpdateReconciliationReport($reconciliationReport); - $result = $this->__soapCall("updateReconciliationReport", array($args)); - return $result->rval; - } /** * Updates the specified {@link ReconciliationReport} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/ReportService.php b/src/Google/Api/Ads/Dfp/v201502/ReportService.php similarity index 86% rename from src/Google/Api/Ads/Dfp/v201308/ReportService.php rename to src/Google/Api/Ads/Dfp/v201502/ReportService.php index 0356a411b..0fae47e65 100755 --- a/src/Google/Api/Ads/Dfp/v201308/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ReportService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -582,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -611,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -629,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -658,13 +504,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +519,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -703,57 +548,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -763,11 +563,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -792,13 +592,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -808,11 +607,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -837,13 +636,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -854,11 +652,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -883,13 +681,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -900,11 +697,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -929,13 +726,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -946,11 +742,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -975,13 +771,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -992,11 +787,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents the options for an API report download request. * See {@link ReportService#getReportDownloadUrlWithOptions}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportDownloadOptions { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReportDownloadOptions"; /** @@ -1053,11 +848,11 @@ public function __construct($exportFormat = null, $includeReportProperties = nul /** * An error for an exception that occurred while running the report. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReportError"; /** @@ -1082,13 +877,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1099,11 +893,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Represents a report job that will be run to retrieve performance and * statistics information about ad campaigns, networks, inventory and sales. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportJob { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReportJob"; /** @@ -1154,11 +948,11 @@ public function __construct($id = null, $reportQuery = null, $reportJobStatus = * A {@code ReportQuery} object allows you to specify the selection criteria for * generating a report. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportQuery { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReportQuery"; /** @@ -1191,6 +985,12 @@ class ReportQuery { */ public $customFieldIds; + /** + * @access public + * @var integer[] + */ + public $contentMetadataKeyHierarchyCustomTargetingKeyIds; + /** * @access public * @var Date @@ -1243,12 +1043,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($dimensions = null, $adUnitView = null, $columns = null, $dimensionAttributes = null, $customFieldIds = null, $startDate = null, $endDate = null, $dateRangeType = null, $dimensionFilters = null, $statement = null, $timeZone = null) { + public function __construct($dimensions = null, $adUnitView = null, $columns = null, $dimensionAttributes = null, $customFieldIds = null, $contentMetadataKeyHierarchyCustomTargetingKeyIds = null, $startDate = null, $endDate = null, $dateRangeType = null, $dimensionFilters = null, $statement = null, $timeZone = null) { $this->dimensions = $dimensions; $this->adUnitView = $adUnitView; $this->columns = $columns; $this->dimensionAttributes = $dimensionAttributes; $this->customFieldIds = $customFieldIds; + $this->contentMetadataKeyHierarchyCustomTargetingKeyIds = $contentMetadataKeyHierarchyCustomTargetingKeyIds; $this->startDate = $startDate; $this->endDate = $endDate; $this->dateRangeType = $dateRangeType; @@ -1264,11 +1065,11 @@ public function __construct($dimensions = null, $adUnitView = null, $columns = n /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1293,13 +1094,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1309,11 +1109,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1338,13 +1138,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1354,11 +1153,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1373,12 +1172,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1395,10 +1188,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1408,11 +1200,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1483,11 +1275,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1530,11 +1322,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1559,13 +1351,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1576,11 +1367,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1623,51 +1414,13 @@ public function __construct($key = null, $value = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1684,8 +1437,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1695,11 +1447,11 @@ public function __construct($ValueType = null) { /** * A view for an ad unit report. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportQueryAdUnitView { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReportQuery.AdUnitView"; /** @@ -1729,11 +1481,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1765,11 +1517,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1794,6 +1546,39 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("Column", false)) { /** * {@code Column} provides all the trafficking statistics and revenue @@ -1805,11 +1590,11 @@ public function __construct() { * Columns with {@code LINE_ITEM_LEVEL} can only be used if you have line item-level * dynamic allocation enabled on your network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Column { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Column"; /** @@ -1838,11 +1623,11 @@ public function __construct() { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1871,11 +1656,11 @@ public function __construct() { /** * Represents a period of time. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateRangeType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateRangeType"; /** @@ -1906,11 +1691,11 @@ public function __construct() { * running a {@link ReportJob}. Aggregate and percentage columns will be * calculated based on these groupings. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Dimension { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Dimension"; /** @@ -1943,11 +1728,11 @@ public function __construct() { * can only be used if the {@link ReportQuery#dimensions} contains * {@link Dimension#ORDER_NAME}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DimensionAttribute { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DimensionAttribute"; /** @@ -1976,11 +1761,11 @@ public function __construct() { /** * {@code DimensionFilter} filters the data used during report creation. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DimensionFilter { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DimensionFilter"; /** @@ -2009,11 +1794,11 @@ public function __construct() { /** * The file formats available for creating the report. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ExportFormat { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ExportFormat"; /** @@ -2042,11 +1827,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2075,11 +1860,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2108,11 +1893,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2141,11 +1926,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2174,11 +1959,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2207,11 +1992,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2240,11 +2025,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2283,11 +2068,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2317,11 +2102,11 @@ public function __construct() { * Default {@code ReportError} when the reason is not among any already * defined. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReportError.Reason"; /** @@ -2350,11 +2135,11 @@ public function __construct() { /** * Represents the status of a {@link ReportJob} running on the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportJobStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ReportJobStatus"; /** @@ -2383,11 +2168,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2416,11 +2201,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2449,11 +2234,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2488,11 +2273,11 @@ public function __construct() { * @param exportFormat the {@link ExportFormat} for the report file * @return the URL for report file download * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReportDownloadURL { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2535,11 +2320,11 @@ public function __construct($reportJobId = null, $exportFormat = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReportDownloadURLResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2583,11 +2368,11 @@ public function __construct($rval = null) { * @param reportDownloadOptions the {@link ReportDownloadOptions} for the request * @return the URL for report file download * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReportDownloadUrlWithOptions { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2630,11 +2415,11 @@ public function __construct($reportJobId = null, $reportDownloadOptions = null) /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReportDownloadUrlWithOptionsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2668,16 +2453,18 @@ public function __construct($rval = null) { if (!class_exists("GetReportJob", false)) { /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReportJob { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2713,11 +2500,11 @@ public function __construct($reportJobId = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetReportJobResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2761,11 +2548,11 @@ public function __construct($rval = null) { * @param reportJob the report job to run * @return the report job with its ID filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RunReportJob { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2801,11 +2588,11 @@ public function __construct($reportJob = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RunReportJobResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2837,15 +2624,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2870,11 +2698,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2884,11 +2711,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2913,10 +2740,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2926,11 +2752,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2955,10 +2781,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2968,11 +2793,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2997,10 +2822,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3010,11 +2834,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3039,10 +2863,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3052,11 +2916,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3081,10 +2945,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3094,33 +2957,33 @@ public function __construct($value = null, $ValueType = null) { /** * ReportService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ReportService extends DfpSoapClient { const SERVICE_NAME = "ReportService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/ReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/ReportService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/ReportService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/ReportService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3130,7 +2993,6 @@ class ReportService extends DfpSoapClient { "InternalApiError" => "InternalApiError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3142,6 +3004,7 @@ class ReportService extends DfpSoapClient { "ReportQuery" => "ReportQuery", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3152,6 +3015,7 @@ class ReportService extends DfpSoapClient { "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "Column" => "Column", "CommonError.Reason" => "CommonErrorReason", "DateRangeType" => "DateRangeType", @@ -3224,10 +3088,12 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt return $result->rval; } /** - * Returns the {@link ReportJob} uniquely identified by the given ID. + * Returns the {@link ReportJob} uniquely identified by the given ID with only the + * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * * @param reportJobId the Id of the report job which must already exist - * @return the {@code ReportJob} uniquely identified by the given ID + * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status + * fields filled in. */ public function getReportJob($reportJobId) { $args = new GetReportJob($reportJobId); diff --git a/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201502/SharedAdUnitService.php similarity index 73% rename from src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php rename to src/Google/Api/Ads/Dfp/v201502/SharedAdUnitService.php index 978095198..05ee55900 100755 --- a/src/Google/Api/Ads/Dfp/v201306/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201502/SharedAdUnitService.php @@ -1,6 +1,6 @@ The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,135 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("AudienceSegmentPage", false)) { - /** - * Represents a page of {@link AudienceSegment} objects. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class AudienceSegmentPage { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegmentPage"; - - /** - * @access public - * @var integer - */ - public $totalResultSetSize; - - /** - * @access public - * @var integer - */ - public $startIndex; - - /** - * @access public - * @var AudienceSegment[] - */ - public $results; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { - $this->totalResultSetSize = $totalResultSetSize; - $this->startIndex = $startIndex; - $this->results = $results; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -379,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -408,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -455,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -468,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -497,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -513,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -567,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -636,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -665,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -683,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -712,81 +504,54 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("AdUnitSize", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * An {@code AdUnitSize} represents the size of an ad in an ad unit. Starting + * with v201108 this also represents the environment, and companions of a + * particular ad in an ad unit. In most cases, it is a simple size with just a + * width and a height (sometimes representing an aspect ratio). * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class AdUnitSize { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnitSize"; /** * @access public - * @var tnsNotNullErrorReason + * @var Size */ - public $reason; + public $size; /** - * Gets the namesapce of this class - * @return the namespace of this class + * @access public + * @var tnsEnvironmentType */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } + public $environmentType; /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class + * @access public + * @var AdUnitSize[] */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; + public $companions; /** * @access public * @var string */ - public $parameters; + public $fullDisplayString; /** * Gets the namesapce of this class @@ -804,29 +569,30 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + public function __construct($size = null, $environmentType = null, $companions = null, $fullDisplayString = null) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; } } } -if (!class_exists("ParseError", false)) { +if (!class_exists("NotNullError", false)) { /** - * Lists errors related to parsing. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ParseError extends ApiError { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var tnsParseErrorReason + * @var tnsNotNullErrorReason */ public $reason; @@ -846,13 +612,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -862,11 +627,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -891,13 +656,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -908,11 +672,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -937,13 +701,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -954,11 +717,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -983,13 +746,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1000,11 +762,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1029,32 +791,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("RequiredError", false)) { +if (!class_exists("ServerError", false)) { /** - * Errors due to missing required field. + * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RequiredError extends ApiError { + class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError"; /** * @access public - * @var tnsRequiredErrorReason + * @var tnsServerErrorReason */ public $reason; @@ -1074,28 +835,60 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("AudienceSegment", false)) { +if (!class_exists("SharedAdUnitAction", false)) { + /** + * Represents the actions that can be performed on {@link SharedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SharedAdUnitAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SharedAdUnit", false)) { /** - * An {@link AudienceSegment} represents audience segment object. + * An ad unit that is shared from a distributor network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AudienceSegment { + class SharedAdUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegment"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SharedAdUnit"; /** * @access public @@ -1113,57 +906,37 @@ class AudienceSegment { * @access public * @var string */ - public $description; - - /** - * @access public - * @var tnsAudienceSegmentStatus - */ - public $status; + public $distributorName; /** * @access public * @var integer */ - public $size; + public $contentProviderAdUnitId; /** * @access public - * @var string + * @var tnsSharedAdUnitStatus */ - public $AudienceSegmentType; - private $_parameterMap = array( - "AudienceSegment.Type" => "AudienceSegmentType", - ); + public $status; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * @access public + * @var tnsTargetPlatform */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } + public $targetPlatform; /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * @access public + * @var tnsAdUnitTargetWindow */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } + public $targetWindow; /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @access public + * @var AdUnitSize[] */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $adUnitSizes; /** * Gets the namesapce of this class @@ -1181,34 +954,48 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $status = null, $size = null, $AudienceSegmentType = null) { + public function __construct($id = null, $name = null, $distributorName = null, $contentProviderAdUnitId = null, $status = null, $targetPlatform = null, $targetWindow = null, $adUnitSizes = null) { $this->id = $id; $this->name = $name; - $this->description = $description; + $this->distributorName = $distributorName; + $this->contentProviderAdUnitId = $contentProviderAdUnitId; $this->status = $status; - $this->size = $size; - $this->AudienceSegmentType = $AudienceSegmentType; + $this->targetPlatform = $targetPlatform; + $this->targetWindow = $targetWindow; + $this->adUnitSizes = $adUnitSizes; } } } -if (!class_exists("ServerError", false)) { +if (!class_exists("SharedAdUnitPage", false)) { /** - * Errors related to the server. + * Captures a page of {@link SharedAdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ServerError extends ApiError { + class SharedAdUnitPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SharedAdUnitPage"; /** * @access public - * @var tnsServerErrorReason + * @var integer */ - public $reason; + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SharedAdUnit[] + */ + public $results; /** * Gets the namesapce of this class @@ -1226,46 +1013,93 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { - parent::__construct(); - $this->reason = $reason; - $this->fieldPath = $fieldPath; - $this->trigger = $trigger; - $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; } } } -if (!class_exists("SoapRequestHeader", false)) { +if (!class_exists("Size", false)) { /** - * Represents the SOAP request header used by API requests. + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class SoapRequestHeader { + class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "SoapRequestHeader"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Size"; /** * @access public - * @var string + * @var integer */ - public $networkCode; + public $width; + + /** + * @access public + * @var integer + */ + public $height; + + /** + * @access public + * @var boolean + */ + public $isAspectRatio; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($width = null, $height = null, $isAspectRatio = null) { + $this->width = $width; + $this->height = $height; + $this->isAspectRatio = $isAspectRatio; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SoapRequestHeader"; /** * @access public * @var string */ - public $applicationName; + public $networkCode; /** * @access public - * @var Authentication + * @var string */ - public $authentication; + public $applicationName; /** * Gets the namesapce of this class @@ -1283,10 +1117,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1296,11 +1129,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1371,11 +1204,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1418,11 +1251,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1447,13 +1280,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1464,11 +1296,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1507,55 +1339,127 @@ public function __construct($key = null, $value = null) { } } -if (!class_exists("Value", false)) { +if (!class_exists("UniqueError", false)) { /** - * {@code Value} represents a value. + * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class Value { + class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Value"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "UpdateResult"; /** * @access public - * @var string + * @var integer */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); + public $numChanges; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; } + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "Value"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * Gets the namesapce of this class + * @return the namespace of this class */ - protected function getParameterMap() { - return $this->_parameterMap; + public function getNamespace() { + return self::WSDL_NAMESPACE; } + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdUnitTargetWindow", false)) { + /** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "AdUnit.TargetWindow"; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1572,8 +1476,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1584,11 +1487,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1620,11 +1523,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1649,15 +1552,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1682,16 +1618,16 @@ public function __construct() { } } -if (!class_exists("FeatureErrorReason", false)) { +if (!class_exists("EnvironmentType", false)) { /** - * A feature is being used that is not enabled on the current network. + * Enum for the valid environments in which ads can be shown. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class FeatureErrorReason { + class EnvironmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "FeatureError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EnvironmentType"; /** * Gets the namesapce of this class @@ -1715,16 +1651,16 @@ public function __construct() { } } -if (!class_exists("InternalApiErrorReason", false)) { +if (!class_exists("FeatureErrorReason", false)) { /** - * The single reason for the internal API error. + * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class InternalApiErrorReason { + class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "InternalApiError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "FeatureError.Reason"; /** * Gets the namesapce of this class @@ -1748,16 +1684,16 @@ public function __construct() { } } -if (!class_exists("NotNullErrorReason", false)) { +if (!class_exists("InternalApiErrorReason", false)) { /** - * The reasons for the target error. + * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NotNullErrorReason { + class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InternalApiError.Reason"; /** * Gets the namesapce of this class @@ -1781,16 +1717,16 @@ public function __construct() { } } -if (!class_exists("ParseErrorReason", false)) { +if (!class_exists("NotNullErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ParseErrorReason { + class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ParseError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError.Reason"; /** * Gets the namesapce of this class @@ -1818,11 +1754,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1851,11 +1787,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -1884,11 +1820,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -1927,11 +1863,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -1956,16 +1892,16 @@ public function __construct() { } } -if (!class_exists("RequiredErrorReason", false)) { +if (!class_exists("ServerErrorReason", false)) { /** - * The reasons for the target error. + * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class RequiredErrorReason { + class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "RequiredError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ServerError.Reason"; /** * Gets the namesapce of this class @@ -1989,16 +1925,16 @@ public function __construct() { } } -if (!class_exists("AudienceSegmentStatus", false)) { +if (!class_exists("SharedAdUnitStatus", false)) { /** - * Specifies the statuses for {@link AudienceSegment} objects. + * Indicates the supported statuses of {@link SharedAdUnit shared ad units}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AudienceSegmentStatus { + class SharedAdUnitStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "AudienceSegment.Status"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SharedAdUnitStatus"; /** * Gets the namesapce of this class @@ -2022,16 +1958,16 @@ public function __construct() { } } -if (!class_exists("ServerErrorReason", false)) { +if (!class_exists("StatementErrorReason", false)) { /** - * Describes reasons for server errors + * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ServerErrorReason { + class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ServerError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "StatementError.Reason"; /** * Gets the namesapce of this class @@ -2055,16 +1991,16 @@ public function __construct() { } } -if (!class_exists("StatementErrorReason", false)) { +if (!class_exists("TargetPlatform", false)) { /** - * A bind variable has not been bound to a value. + * Indicates the target platform. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class StatementErrorReason { + class TargetPlatform { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "StatementError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TargetPlatform"; /** * Gets the namesapce of this class @@ -2088,67 +2024,34 @@ public function __construct() { } } -if (!class_exists("GetAudienceSegmentsByStatement", false)) { +if (!class_exists("GetSharedAdUnitsByStatement", false)) { /** - * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * Gets a {@link SharedAdUnitPage} of {@link SharedAdUnit} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: * * * - * - * + * * * * - * + * * * * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + * * *
    PQL PropertyObject PropertyPQL Property Object Property
    {@code id}{@link AudienceSegment#id}{@link SharedAdUnit#id}
    {@code name}{@link AudienceSegment#name}
    {@code status}{@link AudienceSegment#status}
    {@code type}{@link AudienceSegment#type}
    {@code size}{@link AudienceSegment#size}
    {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
    {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
    {@code cost}{@link ThirdPartyAudienceSegment#cost}
    {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
    {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}{@link SharedAdUnit#name}
    * - * @param filterStatement a Publisher Query Language statement used to filter a set of audience - * segments - * @return the audience segments that match the given filter + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the shared ad units that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetAudienceSegmentsByStatement { + class GetSharedAdUnitsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2180,20 +2083,20 @@ public function __construct($filterStatement = null) { } } -if (!class_exists("GetAudienceSegmentsByStatementResponse", false)) { +if (!class_exists("GetSharedAdUnitsByStatementResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class GetAudienceSegmentsByStatementResponse { + class GetSharedAdUnitsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var AudienceSegmentPage + * @var SharedAdUnitPage */ public $rval; @@ -2220,15 +2123,150 @@ public function __construct($rval = null) { } } +if (!class_exists("PerformSharedAdUnitAction", false)) { + /** + * Performs actions on shared ad unit objects that match the given + * {@link Statement#query}. + * + * @param sharedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the result of the update action, which contains the number of shared ad units + * on which the action was performed. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PerformSharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var SharedAdUnitAction + */ + public $sharedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($sharedAdUnitAction = null, $filterStatement = null) { + $this->sharedAdUnitAction = $sharedAdUnitAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformSharedAdUnitActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class PerformSharedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2253,11 +2291,44 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; + } + + } +} + +if (!class_exists("ApproveSharedAdUnits", false)) { + /** + * Action to approve shared ad units. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ApproveSharedAdUnits extends SharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ApproveSharedAdUnits"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); } } @@ -2267,11 +2338,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2296,10 +2367,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2309,11 +2379,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2338,10 +2408,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2351,11 +2420,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2380,10 +2449,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2393,11 +2461,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2422,10 +2490,84 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("RejectSharedAdUnits", false)) { + /** + * Action to reject shared ad units. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class RejectSharedAdUnits extends SharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "RejectSharedAdUnits"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -2435,11 +2577,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -2464,47 +2606,46 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } } -if (!class_exists("AudienceSegmentService", false)) { +if (!class_exists("SharedAdUnitService", false)) { /** - * AudienceSegmentService + * SharedAdUnitService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class AudienceSegmentService extends DfpSoapClient { + class SharedAdUnitService extends DfpSoapClient { - const SERVICE_NAME = "AudienceSegmentService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/AudienceSegmentService"; + const SERVICE_NAME = "SharedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/SharedAdUnitService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/AudienceSegmentService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/SharedAdUnitService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "AudienceSegmentPage" => "AudienceSegmentPage", - "Authentication" => "Authentication", + "ApproveSharedAdUnits" => "ApproveSharedAdUnits", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -2512,41 +2653,50 @@ class AudienceSegmentService extends DfpSoapClient { "DateValue" => "DateValue", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", - "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", - "RequiredError" => "RequiredError", - "AudienceSegment" => "AudienceSegment", + "RejectSharedAdUnits" => "RejectSharedAdUnits", "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SharedAdUnitAction" => "SharedAdUnitAction", + "SharedAdUnit" => "SharedAdUnit", + "SharedAdUnitPage" => "SharedAdUnitPage", + "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", "StatementError" => "StatementError", "String_ValueMapEntry" => "String_ValueMapEntry", "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", "Value" => "Value", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", - "ParseError.Reason" => "ParseErrorReason", "PermissionError.Reason" => "PermissionErrorReason", "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", "QuotaError.Reason" => "QuotaErrorReason", - "RequiredError.Reason" => "RequiredErrorReason", - "AudienceSegment.Status" => "AudienceSegmentStatus", "ServerError.Reason" => "ServerErrorReason", + "SharedAdUnitStatus" => "SharedAdUnitStatus", "StatementError.Reason" => "StatementErrorReason", - "getAudienceSegmentsByStatement" => "GetAudienceSegmentsByStatement", - "getAudienceSegmentsByStatementResponse" => "GetAudienceSegmentsByStatementResponse", + "TargetPlatform" => "TargetPlatform", + "getSharedAdUnitsByStatement" => "GetSharedAdUnitsByStatement", + "getSharedAdUnitsByStatementResponse" => "GetSharedAdUnitsByStatementResponse", + "performSharedAdUnitAction" => "PerformSharedAdUnitAction", + "performSharedAdUnitActionResponse" => "PerformSharedAdUnitActionResponse", ); @@ -2561,63 +2711,45 @@ public function __construct($wsdl, $options, $user) { self::WSDL_NAMESPACE); } /** - * Gets an {@link AudienceSegmentPage} of {@link AudienceSegment} objects that satisfy the given + * Gets a {@link SharedAdUnitPage} of {@link SharedAdUnit} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: * * * - * - * + * * * * - * + * * * * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + * * *
    PQL PropertyObject PropertyPQL Property Object Property
    {@code id}{@link AudienceSegment#id}{@link SharedAdUnit#id}
    {@code name}{@link AudienceSegment#name}
    {@code status}{@link AudienceSegment#status}
    {@code type}{@link AudienceSegment#type}
    {@code size}{@link AudienceSegment#size}
    {@code dataProviderName}{@link AudienceSegmentDataProvider#name}
    {@code approvalStatus}{@link ThirdPartyAudienceSegment#approvalStatus}
    {@code cost}{@link ThirdPartyAudienceSegment#cost}
    {@code startDateTime}{@link ThirdPartyAudienceSegment#startDateTime}
    {@code endDateTime}{@link ThirdPartyAudienceSegment#endDateTime}{@link SharedAdUnit#name}
    * - * @param filterStatement a Publisher Query Language statement used to filter a set of audience - * segments - * @return the audience segments that match the given filter + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the shared ad units that match the given filter */ - public function getAudienceSegmentsByStatement($filterStatement) { - $args = new GetAudienceSegmentsByStatement($filterStatement); - $result = $this->__soapCall("getAudienceSegmentsByStatement", array($args)); + public function getSharedAdUnitsByStatement($filterStatement) { + $args = new GetSharedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSharedAdUnitsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on shared ad unit objects that match the given + * {@link Statement#query}. + * + * @param sharedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the result of the update action, which contains the number of shared ad units + * on which the action was performed. + */ + public function performSharedAdUnitAction($sharedAdUnitAction, $filterStatement) { + $args = new PerformSharedAdUnitAction($sharedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSharedAdUnitAction", array($args)); return $result->rval; } } diff --git a/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201502/SuggestedAdUnitService.php similarity index 83% rename from src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php rename to src/Google/Api/Ads/Dfp/v201502/SuggestedAdUnitService.php index a0f089271..6cceab9c6 100755 --- a/src/Google/Api/Ads/Dfp/v201306/SuggestedAdUnitService.php +++ b/src/Google/Api/Ads/Dfp/v201502/SuggestedAdUnitService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -32,11 +32,11 @@ /** * The summary of a parent {@link AdUnit}. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitParent { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitParent"; /** @@ -51,6 +51,12 @@ class AdUnitParent { */ public $name; + /** + * @access public + * @var string + */ + public $adUnitCode; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -67,9 +73,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null) { + public function __construct($id = null, $name = null, $adUnitCode = null) { $this->id = $id; $this->name = $name; + $this->adUnitCode = $adUnitCode; } } @@ -83,11 +90,11 @@ public function __construct($id = null, $name = null) { *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -108,44 +115,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -162,11 +131,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -176,11 +144,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -205,13 +173,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -221,11 +188,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -234,44 +201,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -288,81 +217,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -372,11 +228,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -401,36 +257,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -448,10 +301,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -461,11 +316,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -490,13 +345,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -506,11 +360,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -560,11 +414,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -629,11 +483,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -658,13 +512,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -676,11 +529,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -705,13 +558,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -724,11 +576,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * particular ad in an ad unit. In most cases, it is a simple size with just a * width and a height (sometimes representing an aspect ratio). * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitSize { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnitSize"; /** @@ -781,20 +633,20 @@ public function __construct($size = null, $environmentType = null, $companions = } } -if (!class_exists("LabelEntityAssociationError", false)) { +if (!class_exists("InventoryUnitSizesError", false)) { /** - * Errors specific to creating label entity associations. + * An error specifically for InventoryUnitSizes. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class LabelEntityAssociationError extends ApiError { + class InventoryUnitSizesError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "LabelEntityAssociationError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitSizesError"; /** * @access public - * @var tnsLabelEntityAssociationErrorReason + * @var tnsInventoryUnitSizesErrorReason */ public $reason; @@ -814,32 +666,31 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("NotNullError", false)) { +if (!class_exists("LabelEntityAssociationError", false)) { /** - * Caused by supplying a null value for an attribute that cannot be null. + * Errors specific to creating label entity associations. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class NotNullError extends ApiError { + class LabelEntityAssociationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "NotNullError"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "LabelEntityAssociationError"; /** * @access public - * @var tnsNotNullErrorReason + * @var tnsLabelEntityAssociationErrorReason */ public $reason; @@ -859,36 +710,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("DfpOAuth", false)) { +if (!class_exists("NotNullError", false)) { /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. + * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ - class DfpOAuth extends Authentication { + class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = "OAuth"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "NotNullError"; /** * @access public - * @var string + * @var tnsNotNullErrorReason */ - public $parameters; + public $reason; /** * Gets the namesapce of this class @@ -906,10 +754,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($parameters = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -919,11 +769,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -948,13 +798,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -964,11 +813,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -993,13 +842,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1010,11 +858,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1039,13 +887,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1056,11 +903,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1085,13 +932,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1102,11 +948,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1131,13 +977,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1147,11 +992,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1176,13 +1021,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1192,11 +1036,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1221,13 +1065,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1239,11 +1082,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, *

    * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Size { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Size"; /** @@ -1293,11 +1136,11 @@ public function __construct($width = null, $height = null, $isAspectRatio = null /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1312,12 +1155,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1334,10 +1171,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1347,11 +1183,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1422,11 +1258,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1469,11 +1305,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1498,13 +1334,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1515,11 +1350,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1562,51 +1397,13 @@ public function __construct($key = null, $value = null) { /** * Represents the actions that can be performed on {@link SuggestedAdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SuggestedAdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SuggestedAdUnitAction"; - /** - * @access public - * @var string - */ - public $SuggestedAdUnitActionType; - private $_parameterMap = array( - "SuggestedAdUnitAction.Type" => "SuggestedAdUnitActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1623,8 +1420,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($SuggestedAdUnitActionType = null) { - $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; + public function __construct() { } } @@ -1636,11 +1432,11 @@ public function __construct($SuggestedAdUnitActionType = null) { * been served at least ten times in the past week, but which does not correspond to a defined ad * unit. This type is read-only. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SuggestedAdUnit { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SuggestedAdUnit"; /** @@ -1718,11 +1514,11 @@ public function __construct($id = null, $numRequests = null, $path = null, $pare /** * Contains a page of {@link SuggestedAdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SuggestedAdUnitPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SuggestedAdUnitPage"; /** @@ -1772,11 +1568,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * Represents the result of performing an action on {@link SuggestedAdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SuggestedAdUnitUpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SuggestedAdUnitUpdateResult"; /** @@ -1819,11 +1615,11 @@ public function __construct($newAdUnitIds = null, $numChanges = null) { /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1842,12 +1638,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1857,11 +1652,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1880,12 +1675,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1895,51 +1689,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1956,8 +1712,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1967,11 +1722,11 @@ public function __construct($ValueType = null) { /** * Corresponds to an HTML link's {@code target} attribute. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AdUnitTargetWindow { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AdUnit.TargetWindow"; /** @@ -2001,11 +1756,11 @@ public function __construct() { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2037,11 +1792,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2066,15 +1821,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2103,11 +1891,11 @@ public function __construct() { /** * Enum for the valid environments in which ads can be shown. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class EnvironmentType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "EnvironmentType"; /** @@ -2136,11 +1924,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2169,11 +1957,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2198,15 +1986,48 @@ public function __construct() { } } +if (!class_exists("InventoryUnitSizesErrorReason", false)) { + /** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "InventoryUnitSizesError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("LabelEntityAssociationErrorReason", false)) { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class LabelEntityAssociationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LabelEntityAssociationError.Reason"; /** @@ -2235,11 +2056,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2268,11 +2089,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2301,11 +2122,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2334,11 +2155,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2367,11 +2188,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2410,11 +2231,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2443,11 +2264,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2476,11 +2297,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2509,11 +2330,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2542,11 +2363,11 @@ public function __construct() { /** * Indicates the target platform. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TargetPlatform { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TargetPlatform"; /** @@ -2571,88 +2392,6 @@ public function __construct() { } } -if (!class_exists("GetSuggestedAdUnit", false)) { - /** - * Returns the SuggestedAdUnit uniquely identified by the given ID. - * - * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetSuggestedAdUnit { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var string - */ - public $suggestedAdUnitId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($suggestedAdUnitId = null) { - $this->suggestedAdUnitId = $suggestedAdUnitId; - } - - } -} - -if (!class_exists("GetSuggestedAdUnitResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201306 - */ - class GetSuggestedAdUnitResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const XSI_TYPE = ""; - - /** - * @access public - * @var SuggestedAdUnit - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetSuggestedAdUnitsByStatement", false)) { /** * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that @@ -2680,11 +2419,11 @@ public function __construct($rval = null) { * a set of suggested ad units * @return the suggested ad units that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetSuggestedAdUnitsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2720,11 +2459,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class GetSuggestedAdUnitsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2780,11 +2519,11 @@ public function __construct($rval = null) { * a set of suggested ad units * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformSuggestedAdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2827,11 +2566,11 @@ public function __construct($suggestedAdUnitAction = null, $filterStatement = nu /** * * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class PerformSuggestedAdUnitActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2863,15 +2602,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2896,11 +2676,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2910,11 +2689,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Action to approve {@link SuggestedAdUnit} objects. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApproveSuggestedAdUnit"; /** @@ -2933,9 +2712,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($SuggestedAdUnitActionType = null) { + public function __construct() { parent::__construct(); - $this->SuggestedAdUnitActionType = $SuggestedAdUnitActionType; } } @@ -2945,11 +2723,11 @@ public function __construct($SuggestedAdUnitActionType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2974,10 +2752,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2987,11 +2764,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3016,10 +2793,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3029,11 +2805,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3058,10 +2834,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3071,11 +2846,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3100,10 +2875,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3113,11 +2928,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3142,10 +2957,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3155,35 +2969,35 @@ public function __construct($value = null, $ValueType = null) { /** * SuggestedAdUnitService * @package GoogleApiAdsDfp - * @subpackage v201306 + * @subpackage v201502 */ class SuggestedAdUnitService extends DfpSoapClient { const SERVICE_NAME = "SuggestedAdUnitService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201306"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201306/SuggestedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/SuggestedAdUnitService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201306/SuggestedAdUnitService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/SuggestedAdUnitService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "AdUnitParent" => "AdUnitParent", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3192,10 +3006,10 @@ class SuggestedAdUnitService extends DfpSoapClient { "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", "LabelEntityAssociationError" => "LabelEntityAssociationError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3203,6 +3017,7 @@ class SuggestedAdUnitService extends DfpSoapClient { "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "Size" => "Size", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", @@ -3220,10 +3035,12 @@ class SuggestedAdUnitService extends DfpSoapClient { "AdUnit.TargetWindow" => "AdUnitTargetWindow", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "EnvironmentType" => "EnvironmentType", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", "NotNullError.Reason" => "NotNullErrorReason", "ParseError.Reason" => "ParseErrorReason", @@ -3235,8 +3052,6 @@ class SuggestedAdUnitService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "TargetPlatform" => "TargetPlatform", - "getSuggestedAdUnit" => "GetSuggestedAdUnit", - "getSuggestedAdUnitResponse" => "GetSuggestedAdUnitResponse", "getSuggestedAdUnitsByStatement" => "GetSuggestedAdUnitsByStatement", "getSuggestedAdUnitsByStatementResponse" => "GetSuggestedAdUnitsByStatementResponse", "performSuggestedAdUnitAction" => "PerformSuggestedAdUnitAction", @@ -3254,16 +3069,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Returns the SuggestedAdUnit uniquely identified by the given ID. - * - * @param suggestedAdUnitId the ID of the {@code SuggestedAdUnit}, which must already exist. - */ - public function getSuggestedAdUnit($suggestedAdUnitId) { - $args = new GetSuggestedAdUnit($suggestedAdUnitId); - $result = $this->__soapCall("getSuggestedAdUnit", array($args)); - return $result->rval; - } /** * Gets a {@link SuggestedAdUnitPage} of {@link SuggestedAdUnit} objects that * satisfy the filter query. There is a system-enforced limit of 1000 on the number of suggested diff --git a/src/Google/Api/Ads/Dfp/v201308/TeamService.php b/src/Google/Api/Ads/Dfp/v201502/TeamService.php similarity index 78% rename from src/Google/Api/Ads/Dfp/v201308/TeamService.php rename to src/Google/Api/Ads/Dfp/v201502/TeamService.php index 8900a5153..1089337e6 100755 --- a/src/Google/Api/Ads/Dfp/v201308/TeamService.php +++ b/src/Google/Api/Ads/Dfp/v201502/TeamService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -582,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -611,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -629,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -658,13 +504,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +519,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -703,13 +548,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -719,11 +563,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -748,57 +592,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -808,11 +607,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -837,13 +636,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -854,11 +652,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -883,13 +681,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -900,11 +697,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -929,13 +726,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -946,11 +742,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -975,13 +771,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -991,11 +786,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1020,13 +815,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1036,11 +830,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1065,13 +859,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1081,11 +874,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1100,12 +893,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1122,10 +909,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1135,11 +921,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1210,11 +996,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1257,11 +1043,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1286,13 +1072,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1303,11 +1088,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1351,11 +1136,11 @@ public function __construct($key = null, $value = null) { * A {@code Team} defines a grouping of users and what entities they have access * to. Users are added to teams with {@link UserTeamAssociation} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Team { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Team"; /** @@ -1406,6 +1191,12 @@ class Team { */ public $adUnitIds; + /** + * @access public + * @var integer[] + */ + public $orderIds; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1422,7 +1213,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $description = null, $hasAllCompanies = null, $hasAllInventory = null, $teamAccessType = null, $companyIds = null, $adUnitIds = null) { + public function __construct($id = null, $name = null, $description = null, $hasAllCompanies = null, $hasAllInventory = null, $teamAccessType = null, $companyIds = null, $adUnitIds = null, $orderIds = null) { $this->id = $id; $this->name = $name; $this->description = $description; @@ -1431,6 +1222,7 @@ public function __construct($id = null, $name = null, $description = null, $hasA $this->teamAccessType = $teamAccessType; $this->companyIds = $companyIds; $this->adUnitIds = $adUnitIds; + $this->orderIds = $orderIds; } } @@ -1440,11 +1232,11 @@ public function __construct($id = null, $name = null, $description = null, $hasA /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -1469,13 +1261,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1485,11 +1276,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Captures a page of {@link Team} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamPage"; /** @@ -1539,11 +1330,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1562,12 +1353,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1577,11 +1367,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1600,12 +1390,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1615,51 +1404,13 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1676,8 +1427,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1688,11 +1438,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1724,11 +1474,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1753,15 +1503,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1790,11 +1573,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1823,11 +1606,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1856,11 +1639,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1889,11 +1672,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -1922,11 +1705,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1955,11 +1738,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -1988,11 +1771,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2031,11 +1814,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2064,11 +1847,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2097,11 +1880,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2130,11 +1913,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2163,11 +1946,11 @@ public function __construct() { /** * Represents the types of team access supported for orders. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamAccessType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamAccessType"; /** @@ -2196,11 +1979,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -2225,94 +2008,6 @@ public function __construct() { } } -if (!class_exists("CreateTeam", false)) { - /** - * Creates a new {@code Team}. - * - * The following fields are required: - *
      - *
    • {@link Team#name}
    • - *
    - * - * @param team the team to create - * @return the team with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateTeam { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $team; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($team = null) { - $this->team = $team; - } - - } -} - -if (!class_exists("CreateTeamResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateTeamResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateTeams", false)) { /** * Creates new {@link Team} objects. @@ -2325,11 +2020,11 @@ public function __construct($rval = null) { * @param teams the teams to create * @return the created teams with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateTeams { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2365,11 +2060,11 @@ public function __construct($teams = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateTeamsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2401,89 +2096,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetTeam", false)) { - /** - * Returns the {@code Team} uniquely identified by the given ID. - * - * @param teamId the ID of the team, which must already exist - * @return the {@code Team} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetTeam { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teamId = null) { - $this->teamId = $teamId; - } - - } -} - -if (!class_exists("GetTeamResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetTeamResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetTeamsByStatement", false)) { /** * Gets a {@code TeamPage} of {@code Team} objects that satisfy the @@ -2512,11 +2124,11 @@ public function __construct($rval = null) { * a set of teams. * @return the teams that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetTeamsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2552,11 +2164,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetTeamsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2588,25 +2200,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateTeam", false)) { +if (!class_exists("UpdateTeams", false)) { /** - * Updates the specified {@code Team}. + * Updates the specified {@link Team} objects. * - * @param team the team to update - * @return the updated team + * @param teams the teams to update + * @return the updated teams * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateTeam { + class UpdateTeams { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Team + * @var Team[] */ - public $team; + public $teams; /** * Gets the namesapce of this class @@ -2624,27 +2236,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($team = null) { - $this->team = $team; + public function __construct($teams = null) { + $this->teams = $teams; } } } -if (!class_exists("UpdateTeamResponse", false)) { +if (!class_exists("UpdateTeamsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateTeamResponse { + class UpdateTeamsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var Team + * @var Team[] */ public $rval; @@ -2671,65 +2283,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateTeams", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link Team} objects. - * - * @param teams the teams to update - * @return the updated teams - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateTeams { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team[] - */ - public $teams; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teams = null) { - $this->teams = $teams; - } - - } -} - -if (!class_exists("UpdateTeamsResponse", false)) { - /** - * + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateTeamsResponse { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var Team[] - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2747,8 +2317,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -2758,11 +2328,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2787,11 +2357,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2801,11 +2370,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2830,10 +2399,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2843,11 +2411,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2872,10 +2440,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2885,11 +2452,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2914,10 +2481,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2927,11 +2493,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2956,10 +2522,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -2969,11 +2575,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -2998,10 +2604,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3011,33 +2616,33 @@ public function __construct($value = null, $ValueType = null) { /** * TeamService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamService extends DfpSoapClient { const SERVICE_NAME = "TeamService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/TeamService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/TeamService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/TeamService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3048,13 +2653,13 @@ class TeamService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", "RequiredError" => "RequiredError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3069,6 +2674,7 @@ class TeamService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -3083,16 +2689,10 @@ class TeamService extends DfpSoapClient { "StatementError.Reason" => "StatementErrorReason", "TeamAccessType" => "TeamAccessType", "TeamError.Reason" => "TeamErrorReason", - "createTeam" => "CreateTeam", - "createTeamResponse" => "CreateTeamResponse", "createTeams" => "CreateTeams", "createTeamsResponse" => "CreateTeamsResponse", - "getTeam" => "GetTeam", - "getTeamResponse" => "GetTeamResponse", "getTeamsByStatement" => "GetTeamsByStatement", "getTeamsByStatementResponse" => "GetTeamsByStatementResponse", - "updateTeam" => "UpdateTeam", - "updateTeamResponse" => "UpdateTeamResponse", "updateTeams" => "UpdateTeams", "updateTeamsResponse" => "UpdateTeamsResponse", ); @@ -3108,22 +2708,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@code Team}. - * - * The following fields are required: - *

      - *
    • {@link Team#name}
    • - *
    - * - * @param team the team to create - * @return the team with its ID filled in - */ - public function createTeam($team) { - $args = new CreateTeam($team); - $result = $this->__soapCall("createTeam", array($args)); - return $result->rval; - } /** * Creates new {@link Team} objects. * @@ -3140,17 +2724,6 @@ public function createTeams($teams) { $result = $this->__soapCall("createTeams", array($args)); return $result->rval; } - /** - * Returns the {@code Team} uniquely identified by the given ID. - * - * @param teamId the ID of the team, which must already exist - * @return the {@code Team} uniquely identified by the given ID - */ - public function getTeam($teamId) { - $args = new GetTeam($teamId); - $result = $this->__soapCall("getTeam", array($args)); - return $result->rval; - } /** * Gets a {@code TeamPage} of {@code Team} objects that satisfy the * given {@link Statement#query}. The following fields are supported for @@ -3183,17 +2756,6 @@ public function getTeamsByStatement($filterStatement) { $result = $this->__soapCall("getTeamsByStatement", array($args)); return $result->rval; } - /** - * Updates the specified {@code Team}. - * - * @param team the team to update - * @return the updated team - */ - public function updateTeam($team) { - $args = new UpdateTeam($team); - $result = $this->__soapCall("updateTeam", array($args)); - return $result->rval; - } /** * Updates the specified {@link Team} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/UserService.php b/src/Google/Api/Ads/Dfp/v201502/UserService.php similarity index 79% rename from src/Google/Api/Ads/Dfp/v201308/UserService.php rename to src/Google/Api/Ads/Dfp/v201502/UserService.php index a96707eba..0ebd03dc0 100755 --- a/src/Google/Api/Ads/Dfp/v201308/UserService.php +++ b/src/Google/Api/Ads/Dfp/v201502/UserService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,13 +203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -370,11 +218,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * The value of a {@link CustomField} for a particular entity. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BaseCustomFieldValue"; /** @@ -383,44 +231,6 @@ class BaseCustomFieldValue { */ public $customFieldId; - /** - * @access public - * @var string - */ - public $BaseCustomFieldValueType; - private $_parameterMap = array( - "BaseCustomFieldValue.Type" => "BaseCustomFieldValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -437,32 +247,29 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldId = null) { $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -480,10 +287,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -493,11 +302,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -522,13 +331,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -539,11 +347,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * The value of a {@link CustomField} that does not have a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValue"; /** @@ -568,11 +376,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($value = null, $customFieldId = null) { parent::__construct(); $this->value = $value; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -582,11 +389,11 @@ public function __construct($value = null, $customFieldId = null, $BaseCustomFie /** * Errors specific to editing custom field values * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomFieldValueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError"; /** @@ -611,13 +418,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -627,11 +433,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -681,11 +487,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -750,11 +556,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * A {@link CustomFieldValue} for a {@link CustomField} that has a {@link CustomField#dataType} * of {@link CustomFieldDataType#DROP_DOWN} * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DropDownCustomFieldValue extends BaseCustomFieldValue { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DropDownCustomFieldValue"; /** @@ -779,11 +585,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($customFieldOptionId = null, $customFieldId = null, $BaseCustomFieldValueType = null) { + public function __construct($customFieldOptionId = null, $customFieldId = null) { parent::__construct(); $this->customFieldOptionId = $customFieldOptionId; $this->customFieldId = $customFieldId; - $this->BaseCustomFieldValueType = $BaseCustomFieldValueType; } } @@ -794,11 +599,11 @@ public function __construct($customFieldOptionId = null, $customFieldId = null, * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -823,13 +628,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -841,11 +645,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -870,13 +674,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -887,11 +690,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Caused by supplying a value for an email attribute that is not a valid * email address. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidEmailError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError"; /** @@ -916,13 +719,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -932,11 +734,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -961,57 +763,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -1021,11 +778,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Lists errors related to parsing. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError"; /** @@ -1050,13 +807,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1066,11 +822,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -1095,13 +851,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1112,11 +867,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1141,13 +896,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1158,11 +912,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1187,13 +941,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1204,11 +957,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1233,13 +986,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1249,11 +1001,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors due to missing required field. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError"; /** @@ -1278,13 +1030,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1295,11 +1046,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Each {@code Role} provides a user with permissions to perform specific * operations in the system. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Role { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Role"; /** @@ -1349,11 +1100,11 @@ public function __construct($id = null, $name = null, $description = null) { /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1378,13 +1129,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1394,11 +1144,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1413,12 +1163,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1435,10 +1179,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1448,11 +1191,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1523,11 +1266,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1570,11 +1313,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1599,13 +1342,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1616,11 +1358,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1663,11 +1405,11 @@ public function __construct($key = null, $value = null) { /** * Errors related to a Team. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError"; /** @@ -1692,13 +1434,56 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1708,11 +1493,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for an exception that occurred when using a token. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TokenError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TokenError"; /** @@ -1737,13 +1522,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1753,11 +1537,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * An error for a field which is an invalid type. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TypeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TypeError"; /** @@ -1776,12 +1560,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1791,11 +1574,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * An error for a field which must satisfy a uniqueness constraint * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UniqueError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UniqueError"; /** @@ -1814,12 +1597,11 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1829,11 +1611,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1869,51 +1651,13 @@ public function __construct($numChanges = null) { /** * Represents the actions that can be performed on {@link User} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserAction"; - /** - * @access public - * @var string - */ - public $UserActionType; - private $_parameterMap = array( - "UserAction.Type" => "UserActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1930,8 +1674,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($UserActionType = null) { - $this->UserActionType = $UserActionType; + public function __construct() { } } @@ -1941,11 +1684,11 @@ public function __construct($UserActionType = null) { /** * Captures a page of {@link User} objects * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserPage"; /** @@ -1996,11 +1739,11 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res * The {@code UserRecord} represents the base class from which a {@code User} is * derived. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserRecord { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserRecord"; /** @@ -2039,44 +1782,6 @@ class UserRecord { */ public $preferredLocale; - /** - * @access public - * @var string - */ - public $UserRecordType; - private $_parameterMap = array( - "UserRecord.Type" => "UserRecordType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2093,14 +1798,13 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { + public function __construct($id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null) { $this->id = $id; $this->name = $name; $this->email = $email; $this->roleId = $roleId; $this->roleName = $roleName; $this->preferredLocale = $preferredLocale; - $this->UserRecordType = $UserRecordType; } } @@ -2110,51 +1814,13 @@ public function __construct($id = null, $name = null, $email = null, $roleId = n /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -2171,8 +1837,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -2183,11 +1848,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -2219,11 +1884,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -2248,15 +1913,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -2285,11 +1983,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CustomFieldValueErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CustomFieldValueError.Reason"; /** @@ -2318,11 +2016,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -2351,11 +2049,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2384,11 +2082,11 @@ public function __construct() { /** * Describes reasons for an email to be invalid. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InvalidEmailErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InvalidEmailError.Reason"; /** @@ -2417,11 +2115,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2450,11 +2148,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ParseErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ParseError.Reason"; /** @@ -2483,11 +2181,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2516,11 +2214,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2549,11 +2247,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2592,11 +2290,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2625,11 +2323,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class RequiredErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RequiredError.Reason"; /** @@ -2658,11 +2356,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2691,11 +2389,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2724,11 +2422,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamError.Reason"; /** @@ -2753,16 +2451,16 @@ public function __construct() { } } -if (!class_exists("TokenErrorReason", false)) { +if (!class_exists("TimeZoneErrorReason", false)) { /** - * The value returned if the actual value is not exposed by the requested API version. + * Describes reasons for invalid timezone. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class TokenErrorReason { + class TimeZoneErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "TokenError.Reason"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; /** * Gets the namesapce of this class @@ -2786,71 +2484,16 @@ public function __construct() { } } -if (!class_exists("CreateUser", false)) { - /** - * Creates a new {@link User}. - * - * The following fields are required: - *
      - *
    • {@link User#email}
    • - *
    • {@link User#name}
    • - *
    - * - * @param user the user to create - * @return the new user with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $user; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($user = null) { - $this->user = $user; - } - - } -} - -if (!class_exists("CreateUserResponse", false)) { +if (!class_exists("TokenErrorReason", false)) { /** - * + * The value returned if the actual value is not exposed by the requested API version. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class CreateUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; + class TokenErrorReason { - /** - * @access public - * @var User - */ - public $rval; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TokenError.Reason"; /** * Gets the namesapce of this class @@ -2868,8 +2511,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { } } @@ -2882,11 +2524,11 @@ public function __construct($rval = null) { * @param users the users to create * @return the created users with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateUsers { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2922,11 +2564,11 @@ public function __construct($users = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateUsersResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2965,11 +2607,11 @@ public function __construct($rval = null) { * * @return the roles defined for the user's network * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetAllRoles { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2998,11 +2640,11 @@ public function __construct() { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetAllRolesResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3040,11 +2682,11 @@ public function __construct($rval = null) { * * @return the current user * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCurrentUser { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3073,94 +2715,11 @@ public function __construct() { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetCurrentUserResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - -if (!class_exists("GetUser", false)) { - /** - * Returns the {@link User} uniquely identified by the given ID. - * - * @param userId The optional ID of the user. For current user set to {@code null}. - * @return the {@code User} uniquely identified by the given ID - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetUser { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userId = null) { - $this->userId = $userId; - } - - } -} - -if (!class_exists("GetUserResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetUserResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3232,11 +2791,11 @@ public function __construct($rval = null) { * a set of users * @return the users that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetUsersByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3272,11 +2831,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetUsersByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3318,11 +2877,11 @@ public function __construct($rval = null) { * a set of users * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformUserAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3365,11 +2924,11 @@ public function __construct($userAction = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformUserActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -3401,25 +2960,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateUser", false)) { +if (!class_exists("UpdateUsers", false)) { /** - * Updates the specified {@link User}. + * Updates the specified {@link User} objects. * - * @param user the user to update - * @return the updated user + * @param users the users to update + * @return the updated users * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateUser { + class UpdateUsers { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var User + * @var User[] */ - public $user; + public $users; /** * Gets the namesapce of this class @@ -3437,27 +2996,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($user = null) { - $this->user = $user; + public function __construct($users = null) { + $this->users = $users; } } } -if (!class_exists("UpdateUserResponse", false)) { +if (!class_exists("UpdateUsersResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateUserResponse { + class UpdateUsersResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var User + * @var User[] */ public $rval; @@ -3484,25 +3043,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateUsers", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link User} objects. - * - * @param users the users to update - * @return the updated users + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateUsers { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; + class ObjectValue extends Value { - /** - * @access public - * @var User[] - */ - public $users; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -3520,48 +3077,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($users = null) { - $this->users = $users; - } - - } -} - -if (!class_exists("UpdateUsersResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateUsersResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var User[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -3571,11 +3088,11 @@ public function __construct($rval = null) { /** * The action used for activating {@link User} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ActivateUsers extends UserAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ActivateUsers"; /** @@ -3594,9 +3111,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($UserActionType = null) { + public function __construct() { parent::__construct(); - $this->UserActionType = $UserActionType; } } @@ -3606,11 +3122,11 @@ public function __construct($UserActionType = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -3635,11 +3151,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -3649,11 +3164,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -3678,10 +3193,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3691,11 +3205,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -3720,10 +3234,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3733,11 +3246,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -3762,10 +3275,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3775,11 +3287,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used for deactivating {@link User} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeactivateUsers extends UserAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeactivateUsers"; /** @@ -3798,9 +3310,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($UserActionType = null) { + public function __construct() { parent::__construct(); - $this->UserActionType = $UserActionType; } } @@ -3810,11 +3321,11 @@ public function __construct($UserActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3839,10 +3350,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3852,11 +3403,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3881,10 +3432,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3899,11 +3449,11 @@ public function __construct($value = null, $ValueType = null) { * role, they will not be able to perform any actions. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class User extends UserRecord { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "User"; /** @@ -3924,6 +3474,12 @@ class User extends UserRecord { */ public $externalId; + /** + * @access public + * @var boolean + */ + public $isServiceAccount; + /** * @access public * @var string @@ -3952,11 +3508,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($isActive = null, $isEmailNotificationAllowed = null, $externalId = null, $ordersUiLocalTimeZoneId = null, $customFieldValues = null, $id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null, $UserRecordType = null) { + public function __construct($isActive = null, $isEmailNotificationAllowed = null, $externalId = null, $isServiceAccount = null, $ordersUiLocalTimeZoneId = null, $customFieldValues = null, $id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null) { parent::__construct(); $this->isActive = $isActive; $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; $this->externalId = $externalId; + $this->isServiceAccount = $isServiceAccount; $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; $this->customFieldValues = $customFieldValues; $this->id = $id; @@ -3965,7 +3522,6 @@ public function __construct($isActive = null, $isEmailNotificationAllowed = null $this->roleId = $roleId; $this->roleName = $roleName; $this->preferredLocale = $preferredLocale; - $this->UserRecordType = $UserRecordType; } } @@ -3975,35 +3531,35 @@ public function __construct($isActive = null, $isEmailNotificationAllowed = null /** * UserService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserService extends DfpSoapClient { const SERVICE_NAME = "UserService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/UserService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/UserService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/UserService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/UserService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ActivateUsers" => "ActivateUsers", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BaseCustomFieldValue" => "BaseCustomFieldValue", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "CustomFieldValue" => "CustomFieldValue", "CustomFieldValueError" => "CustomFieldValueError", @@ -4018,7 +3574,6 @@ class UserService extends DfpSoapClient { "InvalidEmailError" => "InvalidEmailError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "ParseError" => "ParseError", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -4027,6 +3582,7 @@ class UserService extends DfpSoapClient { "RequiredError" => "RequiredError", "Role" => "Role", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -4034,6 +3590,7 @@ class UserService extends DfpSoapClient { "String_ValueMapEntry" => "String_ValueMapEntry", "TeamError" => "TeamError", "TextValue" => "TextValue", + "TimeZoneError" => "TimeZoneError", "TokenError" => "TokenError", "TypeError" => "TypeError", "UniqueError" => "UniqueError", @@ -4045,6 +3602,7 @@ class UserService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "FeatureError.Reason" => "FeatureErrorReason", @@ -4060,23 +3618,18 @@ class UserService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "TeamError.Reason" => "TeamErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", "TokenError.Reason" => "TokenErrorReason", - "createUser" => "CreateUser", - "createUserResponse" => "CreateUserResponse", "createUsers" => "CreateUsers", "createUsersResponse" => "CreateUsersResponse", "getAllRoles" => "GetAllRoles", "getAllRolesResponse" => "GetAllRolesResponse", "getCurrentUser" => "GetCurrentUser", "getCurrentUserResponse" => "GetCurrentUserResponse", - "getUser" => "GetUser", - "getUserResponse" => "GetUserResponse", "getUsersByStatement" => "GetUsersByStatement", "getUsersByStatementResponse" => "GetUsersByStatementResponse", "performUserAction" => "PerformUserAction", "performUserActionResponse" => "PerformUserActionResponse", - "updateUser" => "UpdateUser", - "updateUserResponse" => "UpdateUserResponse", "updateUsers" => "UpdateUsers", "updateUsersResponse" => "UpdateUsersResponse", ); @@ -4092,23 +3645,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@link User}. - * - * The following fields are required: - *
      - *
    • {@link User#email}
    • - *
    • {@link User#name}
    • - *
    - * - * @param user the user to create - * @return the new user with its ID filled in - */ - public function createUser($user) { - $args = new CreateUser($user); - $result = $this->__soapCall("createUser", array($args)); - return $result->rval; - } /** * Creates new {@link User} objects. * @@ -4141,17 +3677,6 @@ public function getCurrentUser() { $result = $this->__soapCall("getCurrentUser", array($args)); return $result->rval; } - /** - * Returns the {@link User} uniquely identified by the given ID. - * - * @param userId The optional ID of the user. For current user set to {@code null}. - * @return the {@code User} uniquely identified by the given ID - */ - public function getUser($userId) { - $args = new GetUser($userId); - $result = $this->__soapCall("getUser", array($args)); - return $result->rval; - } /** * Gets a {@link UserPage} of {@link User} objects that satisfy the given * {@link Statement#query}. The following fields are supported for filtering: @@ -4210,17 +3735,6 @@ public function performUserAction($userAction, $filterStatement) { $result = $this->__soapCall("performUserAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link User}. - * - * @param user the user to update - * @return the updated user - */ - public function updateUser($user) { - $args = new UpdateUser($user); - $result = $this->__soapCall("updateUser", array($args)); - return $result->rval; - } /** * Updates the specified {@link User} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201502/UserTeamAssociationService.php similarity index 75% rename from src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php rename to src/Google/Api/Ads/Dfp/v201502/UserTeamAssociationService.php index 6d2039401..bc81e2b09 100755 --- a/src/Google/Api/Ads/Dfp/v201308/UserTeamAssociationService.php +++ b/src/Google/Api/Ads/Dfp/v201502/UserTeamAssociationService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,36 +203,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -401,10 +247,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -414,11 +262,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -443,13 +291,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -459,11 +306,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -513,11 +360,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -582,11 +429,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -611,13 +458,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -629,11 +475,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -658,13 +504,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -674,11 +519,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -703,13 +548,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -719,11 +563,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors associated with violation of a NOT NULL check. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError"; /** @@ -748,57 +592,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -808,11 +607,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -837,13 +636,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -854,11 +652,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -883,13 +681,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -900,11 +697,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -929,13 +726,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -946,11 +742,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -975,13 +771,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -991,11 +786,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1020,13 +815,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1036,11 +830,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1055,12 +849,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1077,10 +865,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1090,11 +877,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1165,11 +952,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1212,11 +999,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1241,13 +1028,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1258,11 +1044,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1305,11 +1091,11 @@ public function __construct($key = null, $value = null) { /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1346,11 +1132,11 @@ public function __construct($numChanges = null) { * {@code UserRecordTeamAssociation} represents the association between a * {@link UserRecord} and a {@link Team}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserRecordTeamAssociation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserRecordTeamAssociation"; /** @@ -1371,44 +1157,6 @@ class UserRecordTeamAssociation { */ public $defaultTeamAccessType; - /** - * @access public - * @var string - */ - public $UserRecordTeamAssociationType; - private $_parameterMap = array( - "UserRecordTeamAssociation.Type" => "UserRecordTeamAssociationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1425,11 +1173,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null, $UserRecordTeamAssociationType = null) { + public function __construct($teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null) { $this->teamId = $teamId; $this->overriddenTeamAccessType = $overriddenTeamAccessType; $this->defaultTeamAccessType = $defaultTeamAccessType; - $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; } } @@ -1440,51 +1187,13 @@ public function __construct($teamId = null, $overriddenTeamAccessType = null, $d * Represents the actions that can be performed on {@link UserTeamAssociation} * objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserTeamAssociationAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserTeamAssociationAction"; - /** - * @access public - * @var string - */ - public $UserTeamAssociationActionType; - private $_parameterMap = array( - "UserTeamAssociationAction.Type" => "UserTeamAssociationActionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1501,8 +1210,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($UserTeamAssociationActionType = null) { - $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; + public function __construct() { } } @@ -1513,11 +1221,11 @@ public function __construct($UserTeamAssociationActionType = null) { * {@code UserTeamAssociation} associates a {@link User} with a {@link Team} * to provide the user access to the entities that belong to the team. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserTeamAssociation extends UserRecordTeamAssociation { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserTeamAssociation"; /** @@ -1542,13 +1250,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($userId = null, $teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null, $UserRecordTeamAssociationType = null) { + public function __construct($userId = null, $teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null) { parent::__construct(); $this->userId = $userId; $this->teamId = $teamId; $this->overriddenTeamAccessType = $overriddenTeamAccessType; $this->defaultTeamAccessType = $defaultTeamAccessType; - $this->UserRecordTeamAssociationType = $UserRecordTeamAssociationType; } } @@ -1558,11 +1265,11 @@ public function __construct($userId = null, $teamId = null, $overriddenTeamAcces /** * Captures a page of {@link UserTeamAssociation} objects. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserTeamAssociationPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UserTeamAssociationPage"; /** @@ -1612,51 +1319,13 @@ public function __construct($totalResultSetSize = null, $startIndex = null, $res /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1673,8 +1342,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1685,11 +1353,11 @@ public function __construct($ValueType = null) { * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1721,11 +1389,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1750,15 +1418,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1787,11 +1488,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1820,11 +1521,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -1853,11 +1554,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -1886,11 +1587,11 @@ public function __construct() { /** * The reasons for the validation error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NullError.Reason"; /** @@ -1919,11 +1620,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -1952,11 +1653,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -1985,11 +1686,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2028,11 +1729,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2061,11 +1762,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2094,11 +1795,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2127,11 +1828,11 @@ public function __construct() { /** * Represents the types of team access supported for orders. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TeamAccessType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TeamAccessType"; /** @@ -2156,95 +1857,6 @@ public function __construct() { } } -if (!class_exists("CreateUserTeamAssociation", false)) { - /** - * Creates a new {@code UserTeamAssociation}. - * - * The following fields are required: - *
      - *
    • {@link UserTeamAssociation#teamId}
    • - *
    • {@link UserTeamAssociation#userId}
    • - *
    - * - * @param userTeamAssociation the user team association to create - * @return the user team association with its ID filled in - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $userTeamAssociation; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($userTeamAssociation = null) { - $this->userTeamAssociation = $userTeamAssociation; - } - - } -} - -if (!class_exists("CreateUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class CreateUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("CreateUserTeamAssociations", false)) { /** * Creates new {@link UserTeamAssociation} objects. @@ -2252,11 +1864,11 @@ public function __construct($rval = null) { * @param userTeamAssociations the user team associations to create * @return the created user team associations with their IDs filled in * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateUserTeamAssociations { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2292,11 +1904,11 @@ public function __construct($userTeamAssociations = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class CreateUserTeamAssociationsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2328,99 +1940,6 @@ public function __construct($rval = null) { } } -if (!class_exists("GetUserTeamAssociation", false)) { - /** - * Returns the {@link UserTeamAssociation} uniquely identified by the given - * user and team IDs. - * - * @param teamId the ID of the team, which must already exist - * @param userId the ID of the user, which must already exist - * @return the {@code UserTeamAssociation} uniquely identified by the - * user and team IDs - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetUserTeamAssociation { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var integer - */ - public $teamId; - - /** - * @access public - * @var integer - */ - public $userId; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($teamId = null, $userId = null) { - $this->teamId = $teamId; - $this->userId = $userId; - } - - } -} - -if (!class_exists("GetUserTeamAssociationResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class GetUserTeamAssociationResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; - } - - } -} - if (!class_exists("GetUserTeamAssociationsByStatement", false)) { /** * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} @@ -2445,11 +1964,11 @@ public function __construct($rval = null) { * a set of user team associations * @return the user team associations that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetUserTeamAssociationsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2485,11 +2004,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class GetUserTeamAssociationsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2531,11 +2050,11 @@ public function __construct($rval = null) { * a set of user team associations * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformUserTeamAssociationAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2578,11 +2097,11 @@ public function __construct($userTeamAssociationAction = null, $statement = null /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class PerformUserTeamAssociationActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2614,25 +2133,25 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateUserTeamAssociation", false)) { +if (!class_exists("UpdateUserTeamAssociations", false)) { /** - * Updates the specified {@link UserTeamAssociation}. + * Updates the specified {@link UserTeamAssociation} objects. * - * @param userTeamAssociation the user team association to update - * @return the updated user team association + * @param userTeamAssociations the user team associations to update + * @return the updated user team associations * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateUserTeamAssociation { + class UpdateUserTeamAssociations { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var UserTeamAssociation + * @var UserTeamAssociation[] */ - public $userTeamAssociation; + public $userTeamAssociations; /** * Gets the namesapce of this class @@ -2650,27 +2169,27 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($userTeamAssociation = null) { - $this->userTeamAssociation = $userTeamAssociation; + public function __construct($userTeamAssociations = null) { + $this->userTeamAssociations = $userTeamAssociations; } } } -if (!class_exists("UpdateUserTeamAssociationResponse", false)) { +if (!class_exists("UpdateUserTeamAssociationsResponse", false)) { /** * * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateUserTeamAssociationResponse { + class UpdateUserTeamAssociationsResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** * @access public - * @var UserTeamAssociation + * @var UserTeamAssociation[] */ public $rval; @@ -2697,25 +2216,23 @@ public function __construct($rval = null) { } } -if (!class_exists("UpdateUserTeamAssociations", false)) { +if (!class_exists("ObjectValue", false)) { /** - * Updates the specified {@link UserTeamAssociation} objects. - * - * @param userTeamAssociations the user team associations to update - * @return the updated user team associations + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ - class UpdateUserTeamAssociations { + class ObjectValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $userTeamAssociations; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; /** * Gets the namesapce of this class @@ -2733,48 +2250,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($userTeamAssociations = null) { - $this->userTeamAssociations = $userTeamAssociations; - } - - } -} - -if (!class_exists("UpdateUserTeamAssociationsResponse", false)) { - /** - * - * @package GoogleApiAdsDfp - * @subpackage v201308 - */ - class UpdateUserTeamAssociationsResponse { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const XSI_TYPE = ""; - - /** - * @access public - * @var UserTeamAssociation[] - */ - public $rval; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($rval = null) { - $this->rval = $rval; + public function __construct() { + parent::__construct(); } } @@ -2784,11 +2261,11 @@ public function __construct($rval = null) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2813,11 +2290,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2827,11 +2303,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2856,10 +2332,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2869,11 +2344,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2898,10 +2373,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2911,11 +2385,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2940,10 +2414,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2953,11 +2426,11 @@ public function __construct($value = null, $ValueType = null) { /** * Action to delete the association between a {@link User} and a {@link Team}. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class DeleteUserTeamAssociations extends UserTeamAssociationAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DeleteUserTeamAssociations"; /** @@ -2976,9 +2449,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($UserTeamAssociationActionType = null) { + public function __construct() { parent::__construct(); - $this->UserTeamAssociationActionType = $UserTeamAssociationActionType; } } @@ -2988,11 +2460,11 @@ public function __construct($UserTeamAssociationActionType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -3017,10 +2489,50 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; } } @@ -3030,11 +2542,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -3059,10 +2571,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3072,33 +2583,33 @@ public function __construct($value = null, $ValueType = null) { /** * UserTeamAssociationService * @package GoogleApiAdsDfp - * @subpackage v201308 + * @subpackage v201502 */ class UserTeamAssociationService extends DfpSoapClient { const SERVICE_NAME = "UserTeamAssociationService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201308"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201308/UserTeamAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/UserTeamAssociationService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201308/UserTeamAssociationService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/UserTeamAssociationService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", @@ -3110,12 +2621,12 @@ class UserTeamAssociationService extends DfpSoapClient { "NotNullError" => "NotNullError", "NullError" => "NullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", "PermissionError" => "PermissionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", "QuotaError" => "QuotaError", "ServerError" => "ServerError", + "SetValue" => "SetValue", "SoapRequestHeader" => "SoapRequestHeader", "SoapResponseHeader" => "SoapResponseHeader", "Statement" => "Statement", @@ -3130,6 +2641,7 @@ class UserTeamAssociationService extends DfpSoapClient { "Value" => "Value", "ApiVersionError.Reason" => "ApiVersionErrorReason", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", @@ -3142,18 +2654,12 @@ class UserTeamAssociationService extends DfpSoapClient { "ServerError.Reason" => "ServerErrorReason", "StatementError.Reason" => "StatementErrorReason", "TeamAccessType" => "TeamAccessType", - "createUserTeamAssociation" => "CreateUserTeamAssociation", - "createUserTeamAssociationResponse" => "CreateUserTeamAssociationResponse", "createUserTeamAssociations" => "CreateUserTeamAssociations", "createUserTeamAssociationsResponse" => "CreateUserTeamAssociationsResponse", - "getUserTeamAssociation" => "GetUserTeamAssociation", - "getUserTeamAssociationResponse" => "GetUserTeamAssociationResponse", "getUserTeamAssociationsByStatement" => "GetUserTeamAssociationsByStatement", "getUserTeamAssociationsByStatementResponse" => "GetUserTeamAssociationsByStatementResponse", "performUserTeamAssociationAction" => "PerformUserTeamAssociationAction", "performUserTeamAssociationActionResponse" => "PerformUserTeamAssociationActionResponse", - "updateUserTeamAssociation" => "UpdateUserTeamAssociation", - "updateUserTeamAssociationResponse" => "UpdateUserTeamAssociationResponse", "updateUserTeamAssociations" => "UpdateUserTeamAssociations", "updateUserTeamAssociationsResponse" => "UpdateUserTeamAssociationsResponse", ); @@ -3169,23 +2675,6 @@ public function __construct($wsdl, $options, $user) { parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, self::WSDL_NAMESPACE); } - /** - * Creates a new {@code UserTeamAssociation}. - * - * The following fields are required: - *

      - *
    • {@link UserTeamAssociation#teamId}
    • - *
    • {@link UserTeamAssociation#userId}
    • - *
    - * - * @param userTeamAssociation the user team association to create - * @return the user team association with its ID filled in - */ - public function createUserTeamAssociation($userTeamAssociation) { - $args = new CreateUserTeamAssociation($userTeamAssociation); - $result = $this->__soapCall("createUserTeamAssociation", array($args)); - return $result->rval; - } /** * Creates new {@link UserTeamAssociation} objects. * @@ -3197,20 +2686,6 @@ public function createUserTeamAssociations($userTeamAssociations) { $result = $this->__soapCall("createUserTeamAssociations", array($args)); return $result->rval; } - /** - * Returns the {@link UserTeamAssociation} uniquely identified by the given - * user and team IDs. - * - * @param teamId the ID of the team, which must already exist - * @param userId the ID of the user, which must already exist - * @return the {@code UserTeamAssociation} uniquely identified by the - * user and team IDs - */ - public function getUserTeamAssociation($teamId, $userId) { - $args = new GetUserTeamAssociation($teamId, $userId); - $result = $this->__soapCall("getUserTeamAssociation", array($args)); - return $result->rval; - } /** * Gets a {@link UserTeamAssociationPage} of {@link UserTeamAssociation} * objects that satisfy the given {@link Statement#query}. The following @@ -3253,17 +2728,6 @@ public function performUserTeamAssociationAction($userTeamAssociationAction, $st $result = $this->__soapCall("performUserTeamAssociationAction", array($args)); return $result->rval; } - /** - * Updates the specified {@link UserTeamAssociation}. - * - * @param userTeamAssociation the user team association to update - * @return the updated user team association - */ - public function updateUserTeamAssociation($userTeamAssociation) { - $args = new UpdateUserTeamAssociation($userTeamAssociation); - $result = $this->__soapCall("updateUserTeamAssociation", array($args)); - return $result->rval; - } /** * Updates the specified {@link UserTeamAssociation} objects. * diff --git a/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201502/WorkflowRequestService.php similarity index 83% rename from src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php rename to src/Google/Api/Ads/Dfp/v201502/WorkflowRequestService.php index 5f99b2662..dc9b6f15d 100755 --- a/src/Google/Api/Ads/Dfp/v201311/WorkflowRequestService.php +++ b/src/Google/Api/Ads/Dfp/v201502/WorkflowRequestService.php @@ -20,7 +20,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -36,11 +36,11 @@ *

    The OGNL field path is provided for parsers to identify the request data * element that may have caused the error.

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiError"; /** @@ -61,44 +61,6 @@ class ApiError { */ public $errorString; - /** - * @access public - * @var string - */ - public $ApiErrorType; - private $_parameterMap = array( - "ApiError.Type" => "ApiErrorType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -115,11 +77,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -129,11 +90,11 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n /** * Errors related to the usage of API versions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError"; /** @@ -158,13 +119,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -174,11 +134,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Base class for exceptions. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApplicationException"; /** @@ -187,44 +147,6 @@ class ApplicationException { */ public $message; - /** - * @access public - * @var string - */ - public $ApplicationExceptionType; - private $_parameterMap = array( - "ApplicationException.Type" => "ApplicationExceptionType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -241,81 +163,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($message = null, $ApplicationExceptionType = null) { + public function __construct($message = null) { $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; - } - - } -} - -if (!class_exists("Authentication", false)) { - /** - * A representation of the authentication protocols that can be used. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "Authentication"; - - /** - * @access public - * @var string - */ - public $AuthenticationType; - private $_parameterMap = array( - "Authentication.Type" => "AuthenticationType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($AuthenticationType = null) { - $this->AuthenticationType = $AuthenticationType; } } @@ -325,11 +174,11 @@ public function __construct($AuthenticationType = null) { /** * An error for an exception that occurred when authenticating. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError"; /** @@ -354,13 +203,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -371,11 +219,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * A {@code WorkflowRequest} represents a workflow action unit that requires external or manual * interference. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowRequest { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "WorkflowRequest"; /** @@ -404,41 +252,9 @@ class WorkflowRequest { /** * @access public - * @var string - */ - public $WorkflowRequestType; - private $_parameterMap = array( - "WorkflowRequest.Type" => "WorkflowRequestType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * @var tnsWorkflowRequestType */ - protected function getParameterMap() { - return $this->_parameterMap; - } + public $type; /** * Gets the namesapce of this class @@ -456,35 +272,33 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $WorkflowRequestType = null) { + public function __construct($id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null) { $this->id = $id; $this->workflowRuleName = $workflowRuleName; $this->entityId = $entityId; $this->entityType = $entityType; - $this->WorkflowRequestType = $WorkflowRequestType; + $this->type = $type; } } } -if (!class_exists("ClientLogin", false)) { +if (!class_exists("CollectionSizeError", false)) { /** - * The credentials for the {@code ClientLogin} API authentication protocol. - * - * See {@link http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html}. + * Error for the size of the collection being too large * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class ClientLogin extends Authentication { + class CollectionSizeError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "ClientLogin"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError"; /** * @access public - * @var string + * @var tnsCollectionSizeErrorReason */ - public $token; + public $reason; /** * Gets the namesapce of this class @@ -502,10 +316,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($token = null, $AuthenticationType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); - $this->token = $token; - $this->AuthenticationType = $AuthenticationType; + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -515,11 +331,11 @@ public function __construct($token = null, $AuthenticationType = null) { /** * A place for common errors that can be used across services. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError"; /** @@ -544,13 +360,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -560,11 +375,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents a date. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Date { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Date"; /** @@ -614,11 +429,11 @@ public function __construct($year = null, $month = null, $day = null) { /** * Represents a date combined with the time of day. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DfpDateTime { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTime"; /** @@ -683,11 +498,11 @@ public function __construct($date = null, $hour = null, $minute = null, $second * Errors related to feature management. If you attempt using a feature that is not available to * the current network you'll receive a FeatureError with the missing feature as the trigger. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError"; /** @@ -712,13 +527,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -728,11 +542,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors that can result from a forecast request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError"; /** @@ -757,13 +571,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -775,11 +588,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * are generally not the result of an invalid request or message sent by the * client. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError"; /** @@ -804,13 +617,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -820,11 +632,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors for executing operations on line items * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError"; /** @@ -849,13 +661,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -865,11 +676,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Caused by supplying a null value for an attribute that cannot be null. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError"; /** @@ -894,57 +705,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; - } - - } -} - -if (!class_exists("DfpOAuth", false)) { - /** - * The credentials for the {@code OAuth} authentication protocol. - * - * See {@link http://oauth.net/}. - * @package GoogleApiAdsDfp - * @subpackage v201311 - */ - class DfpOAuth extends Authentication { - - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "OAuth"; - - /** - * @access public - * @var string - */ - public $parameters; - - /** - * Gets the namesapce of this class - * @return the namespace of this class - */ - public function getNamespace() { - return self::WSDL_NAMESPACE; - } - - /** - * Gets the xsi:type name of this class - * @return the xsi:type name of this class - */ - public function getXsiTypeName() { - return self::XSI_TYPE; - } - - public function __construct($parameters = null, $AuthenticationType = null) { - parent::__construct(); - $this->parameters = $parameters; - $this->AuthenticationType = $AuthenticationType; } } @@ -954,11 +720,11 @@ public function __construct($parameters = null, $AuthenticationType = null) { /** * Errors related to incorrect permission. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError"; /** @@ -983,13 +749,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -999,11 +764,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Lists all errors associated with performing actions on {@link Proposal} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalActionError"; /** @@ -1028,13 +793,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1045,11 +809,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while executing a PQL query contained in * a {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError"; /** @@ -1074,13 +838,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1091,11 +854,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * An error that occurs while parsing a PQL query contained in a * {@link Statement} object. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; /** @@ -1120,13 +883,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1137,11 +899,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * Describes a client-side error on which a user is attempting * to perform an action to which they have no quota remaining. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError"; /** @@ -1166,13 +928,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1182,11 +943,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Errors related to the server. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError"; /** @@ -1211,13 +972,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1227,11 +987,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * Represents the SOAP request header used by API requests. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapRequestHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapRequestHeader"; /** @@ -1246,12 +1006,6 @@ class SoapRequestHeader { */ public $applicationName; - /** - * @access public - * @var Authentication - */ - public $authentication; - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1268,10 +1022,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($networkCode = null, $applicationName = null, $authentication = null) { + public function __construct($networkCode = null, $applicationName = null) { $this->networkCode = $networkCode; $this->applicationName = $applicationName; - $this->authentication = $authentication; } } @@ -1281,11 +1034,11 @@ public function __construct($networkCode = null, $applicationName = null, $authe /** * Represents the SOAP request header used by API responses. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SoapResponseHeader { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SoapResponseHeader"; /** @@ -1356,11 +1109,11 @@ public function __construct($requestId = null, $responseTime = null) { * one of {@link DoubleParam}, {@link LongParam} or {@link StringParam}. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Statement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Statement"; /** @@ -1403,11 +1156,11 @@ public function __construct($query = null, $values = null) { /** * An error that occurs while parsing {@link Statement} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError"; /** @@ -1432,13 +1185,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1449,11 +1201,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, * This represents an entry in a map with a key of type String * and value of type Value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class String_ValueMapEntry { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "String_ValueMapEntry"; /** @@ -1496,11 +1248,11 @@ public function __construct($key = null, $value = null) { /** * Represents the result of performing an action on objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class UpdateResult { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "UpdateResult"; /** @@ -1536,51 +1288,13 @@ public function __construct($numChanges = null) { /** * {@code Value} represents a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "Value"; - /** - * @access public - * @var string - */ - public $ValueType; - private $_parameterMap = array( - "Value.Type" => "ValueType", - ); - - /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set - */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; - } - - /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value - */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; - } - - /** - * Provided for getting non-php-standard named variables - * @return array parameter map - */ - protected function getParameterMap() { - return $this->_parameterMap; - } - /** * Gets the namesapce of this class * @return the namespace of this class @@ -1597,8 +1311,7 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($ValueType = null) { - $this->ValueType = $ValueType; + public function __construct() { } } @@ -1608,11 +1321,11 @@ public function __construct($ValueType = null) { /** * Lists all errors associated with performing actions within {@link WorkflowAction}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowActionError extends ApiError { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "WorkflowActionError"; /** @@ -1637,13 +1350,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { parent::__construct(); $this->reason = $reason; $this->fieldPath = $fieldPath; $this->trigger = $trigger; $this->errorString = $errorString; - $this->ApiErrorType = $ApiErrorType; } } @@ -1653,11 +1365,11 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, /** * A {@code WorkflowApprovalRequest} represents a workflow action unit that requires user approval. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowApprovalRequest extends WorkflowRequest { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "WorkflowApprovalRequest"; /** @@ -1682,68 +1394,116 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($status = null, $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $WorkflowRequestType = null) { + public function __construct($status = null, $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null) { parent::__construct(); $this->status = $status; $this->id = $id; $this->workflowRuleName = $workflowRuleName; $this->entityId = $entityId; $this->entityType = $entityType; - $this->WorkflowRequestType = $WorkflowRequestType; + $this->type = $type; } } } -if (!class_exists("WorkflowRequestAction", false)) { +if (!class_exists("WorkflowExternalConditionRequest", false)) { /** - * Represents the actions that can be performed on {@link WorkflowRequest} objects. + * A {@code WorkflowExternalConditionRequest} represents a workflow condition that requires external + * system to determine the result. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ - class WorkflowRequestAction { + class WorkflowExternalConditionRequest extends WorkflowRequest { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const XSI_TYPE = "WorkflowRequestAction"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowExternalConditionRequest"; /** * @access public - * @var string + * @var tnsWorkflowExternalConditionStatus */ - public $WorkflowRequestActionType; - private $_parameterMap = array( - "WorkflowRequestAction.Type" => "WorkflowRequestActionType", - ); + public $status; /** - * Provided for setting non-php-standard named variables - * @param $var Variable name to set - * @param $value Value to set + * Gets the namesapce of this class + * @return the namespace of this class */ - public function __set($var, $value) { - $this->{$this->_parameterMap[$var]} = $value; + public function getNamespace() { + return self::WSDL_NAMESPACE; } /** - * Provided for getting non-php-standard named variables - * @param $var Variable name to get - * @return mixed Variable value + * Gets the xsi:type name of this class + * @return the xsi:type name of this class */ - public function __get($var) { - if (!isset($this->_parameterMap[$var])) { - return null; - } - return $this->{$this->_parameterMap[$var]}; + public function getXsiTypeName() { + return self::XSI_TYPE; } + public function __construct($status = null, $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null) { + parent::__construct(); + $this->status = $status; + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->type = $type; + } + + } +} + +if (!class_exists("WorkflowRequestAction", false)) { + /** + * Represents the actions that can be performed on {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowRequestAction"; + /** - * Provided for getting non-php-standard named variables - * @return array parameter map + * Gets the namesapce of this class + * @return the namespace of this class */ - protected function getParameterMap() { - return $this->_parameterMap; + public function getNamespace() { + return self::WSDL_NAMESPACE; } + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowRequestError", false)) { + /** + * Lists errors associated with {@link WorkflowRequest workflow requests}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class WorkflowRequestError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowRequestError"; + + /** + * @access public + * @var tnsWorkflowRequestErrorReason + */ + public $reason; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -1760,8 +1520,12 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($WorkflowRequestActionType = null) { - $this->WorkflowRequestActionType = $WorkflowRequestActionType; + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; } } @@ -1771,11 +1535,11 @@ public function __construct($WorkflowRequestActionType = null) { /** * Captures a page of {@link WorkflowRequest} objects. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowRequestPage { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "WorkflowRequestPage"; /** @@ -1826,11 +1590,11 @@ public function __construct($results = null, $startIndex = null, $totalResultSet * Indicates that the operation is not allowed in the version the request * was made in. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiVersionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiVersionError.Reason"; /** @@ -1859,11 +1623,11 @@ public function __construct() { /** * The status of the workflow approval request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowApprovalRequestStatus { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "WorkflowApprovalRequestStatus"; /** @@ -1895,11 +1659,11 @@ public function __construct() { * authToken} and {@code oAuthToken} fields were both null or both were * specified. Exactly one value should be specified with each request. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class AuthenticationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "AuthenticationError.Reason"; /** @@ -1924,15 +1688,48 @@ public function __construct() { } } +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("CommonErrorReason", false)) { /** * Describes reasons for common errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class CommonErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "CommonError.Reason"; /** @@ -1961,11 +1758,11 @@ public function __construct() { /** * A feature is being used that is not enabled on the current network. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class FeatureErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "FeatureError.Reason"; /** @@ -1994,11 +1791,11 @@ public function __construct() { /** * Reason why a forecast could not be retrieved. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ForecastErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ForecastError.Reason"; /** @@ -2027,11 +1824,11 @@ public function __construct() { /** * The single reason for the internal API error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class InternalApiErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "InternalApiError.Reason"; /** @@ -2060,11 +1857,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class LineItemOperationErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "LineItemOperationError.Reason"; /** @@ -2093,11 +1890,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NotNullErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NotNullError.Reason"; /** @@ -2126,11 +1923,11 @@ public function __construct() { /** * Describes reasons for permission errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PermissionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PermissionError.Reason"; /** @@ -2159,11 +1956,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ProposalActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ProposalActionError.Reason"; /** @@ -2192,11 +1989,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageContextErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; /** @@ -2225,11 +2022,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PublisherQueryLanguageSyntaxErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; /** @@ -2268,11 +2065,11 @@ public function __construct() { * reduce the number of times you receive this error. *

    * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class QuotaErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "QuotaError.Reason"; /** @@ -2301,11 +2098,11 @@ public function __construct() { /** * Describes reasons for server errors * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ServerErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ServerError.Reason"; /** @@ -2334,11 +2131,11 @@ public function __construct() { /** * A bind variable has not been bound to a value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class StatementErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "StatementError.Reason"; /** @@ -2367,11 +2164,11 @@ public function __construct() { /** * The reasons for the target error. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowActionErrorReason { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "WorkflowActionError.Reason"; /** @@ -2400,11 +2197,11 @@ public function __construct() { /** * The entity types that workflows can be applied to. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowEntityType { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "WorkflowEntityType"; /** @@ -2429,6 +2226,105 @@ public function __construct() { } } +if (!class_exists("WorkflowRequestErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class WorkflowRequestErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowRequestError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowRequestType", false)) { + /** + * Types of a workflow request. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class WorkflowRequestType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowRequestType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowExternalConditionStatus", false)) { + /** + * The status of workflow external conditions during workflow execution. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class WorkflowExternalConditionStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "WorkflowExternalConditionStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("GetWorkflowRequestsByStatement", false)) { /** * Gets a list of {@link WorkflowRequest} objects that satisfy the given {@link Statement#query}. @@ -2472,11 +2368,11 @@ public function __construct() { * @param filterStatement a Publisher Query Language statement used to filter a set of proposals * @return the workflow requests that match the given filter * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetWorkflowRequestsByStatement { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2512,11 +2408,11 @@ public function __construct($filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class GetWorkflowRequestsByStatementResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2558,11 +2454,11 @@ public function __construct($rval = null) { * requests * @return the result of the action performed * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformWorkflowRequestAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2605,11 +2501,11 @@ public function __construct($action = null, $filterStatement = null) { /** * * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class PerformWorkflowRequestActionResponse { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = ""; /** @@ -2641,15 +2537,56 @@ public function __construct($rval = null) { } } +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + if (!class_exists("ApiException", false)) { /** * Exception class for holding a list of service errors. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApiException extends ApplicationException { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApiException"; /** @@ -2674,11 +2611,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + public function __construct($errors = null, $message = null) { parent::__construct(); $this->errors = $errors; $this->message = $message; - $this->ApplicationExceptionType = $ApplicationExceptionType; } } @@ -2688,11 +2624,11 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti /** * The action used to approve {@link WorkflowApprovalRequest workflow approval requests}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class ApproveWorkflowApprovalRequests extends WorkflowRequestAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "ApproveWorkflowApprovalRequests"; /** @@ -2711,9 +2647,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($WorkflowRequestActionType = null) { + public function __construct() { parent::__construct(); - $this->WorkflowRequestActionType = $WorkflowRequestActionType; } } @@ -2723,11 +2658,11 @@ public function __construct($WorkflowRequestActionType = null) { /** * Contains a boolean value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class BooleanValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "BooleanValue"; /** @@ -2752,10 +2687,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2765,11 +2699,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date-time value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateTimeValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateTimeValue"; /** @@ -2794,10 +2728,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -2807,11 +2740,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a date value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class DateValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "DateValue"; /** @@ -2836,10 +2769,44 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("SkipWorkflowExternalConditionRequests", false)) { + /** + * The action to skip {@link WorkflowExternalConditionRequest workflow external condition requests}. + * Doing so means that the rule did not trigger. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class SkipWorkflowExternalConditionRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "SkipWorkflowExternalConditionRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); } } @@ -2849,11 +2816,11 @@ public function __construct($value = null, $ValueType = null) { /** * Contains a numeric value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class NumberValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "NumberValue"; /** @@ -2878,10 +2845,44 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; + } + + } +} + +if (!class_exists("TriggerWorkflowExternalConditionRequests", false)) { + /** + * The action to trigger {@link WorkflowExternalConditionRequest workflow external condition + * requests}. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TriggerWorkflowExternalConditionRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TriggerWorkflowExternalConditionRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); } } @@ -2891,11 +2892,11 @@ public function __construct($value = null, $ValueType = null) { /** * The action used to reject {@link WorkflowApprovalRequest workflow approval requests}. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class RejectWorkflowApprovalRequests extends WorkflowRequestAction { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "RejectWorkflowApprovalRequests"; /** @@ -2914,9 +2915,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($WorkflowRequestActionType = null) { + public function __construct() { parent::__construct(); - $this->WorkflowRequestActionType = $WorkflowRequestActionType; } } @@ -2926,11 +2926,11 @@ public function __construct($WorkflowRequestActionType = null) { /** * Contains a set of {@link Value Values}. May not contain duplicates. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class SetValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "SetValue"; /** @@ -2955,10 +2955,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($values = null, $ValueType = null) { + public function __construct($values = null) { parent::__construct(); $this->values = $values; - $this->ValueType = $ValueType; } } @@ -2968,11 +2967,11 @@ public function __construct($values = null, $ValueType = null) { /** * Contains a string value. * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class TextValue extends Value { - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; const XSI_TYPE = "TextValue"; /** @@ -2997,10 +2996,9 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($value = null, $ValueType = null) { + public function __construct($value = null) { parent::__construct(); $this->value = $value; - $this->ValueType = $ValueType; } } @@ -3010,47 +3008,48 @@ public function __construct($value = null, $ValueType = null) { /** * WorkflowRequestService * @package GoogleApiAdsDfp - * @subpackage v201311 + * @subpackage v201502 */ class WorkflowRequestService extends DfpSoapClient { const SERVICE_NAME = "WorkflowRequestService"; - const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201311"; - const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201311/WorkflowRequestService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201502/WorkflowRequestService"; /** * The endpoint of the service * @var string */ - public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201311/WorkflowRequestService"; + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201502/WorkflowRequestService"; /** * Default class map for wsdl=>php * @access private * @var array */ public static $classmap = array( + "ObjectValue" => "ObjectValue", "ApiError" => "ApiError", "ApiException" => "ApiException", "ApiVersionError" => "ApiVersionError", "ApplicationException" => "ApplicationException", "ApproveWorkflowApprovalRequests" => "ApproveWorkflowApprovalRequests", - "Authentication" => "Authentication", "AuthenticationError" => "AuthenticationError", "WorkflowRequest" => "WorkflowRequest", "BooleanValue" => "BooleanValue", - "ClientLogin" => "ClientLogin", + "CollectionSizeError" => "CollectionSizeError", "CommonError" => "CommonError", "Date" => "Date", "DateTime" => "DfpDateTime", "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", + "SkipWorkflowExternalConditionRequests" => "SkipWorkflowExternalConditionRequests", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", "LineItemOperationError" => "LineItemOperationError", "NotNullError" => "NotNullError", "NumberValue" => "NumberValue", - "OAuth" => "DfpOAuth", + "TriggerWorkflowExternalConditionRequests" => "TriggerWorkflowExternalConditionRequests", "PermissionError" => "PermissionError", "ProposalActionError" => "ProposalActionError", "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", @@ -3069,11 +3068,14 @@ class WorkflowRequestService extends DfpSoapClient { "Value" => "Value", "WorkflowActionError" => "WorkflowActionError", "WorkflowApprovalRequest" => "WorkflowApprovalRequest", + "WorkflowExternalConditionRequest" => "WorkflowExternalConditionRequest", "WorkflowRequestAction" => "WorkflowRequestAction", + "WorkflowRequestError" => "WorkflowRequestError", "WorkflowRequestPage" => "WorkflowRequestPage", "ApiVersionError.Reason" => "ApiVersionErrorReason", "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", @@ -3089,6 +3091,9 @@ class WorkflowRequestService extends DfpSoapClient { "StatementError.Reason" => "StatementErrorReason", "WorkflowActionError.Reason" => "WorkflowActionErrorReason", "WorkflowEntityType" => "WorkflowEntityType", + "WorkflowRequestError.Reason" => "WorkflowRequestErrorReason", + "WorkflowRequestType" => "WorkflowRequestType", + "WorkflowExternalConditionStatus" => "WorkflowExternalConditionStatus", "getWorkflowRequestsByStatement" => "GetWorkflowRequestsByStatement", "getWorkflowRequestsByStatementResponse" => "GetWorkflowRequestsByStatementResponse", "performWorkflowRequestAction" => "PerformWorkflowRequestAction", diff --git a/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php b/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php deleted file mode 100755 index 62805c75b..000000000 --- a/tests/Google/Api/Ads/Common/Util/AuthTokenTest.php +++ /dev/null @@ -1,110 +0,0 @@ -curlUtilsMock = $this->getMockBuilder('CurlUtils') - ->setMethods(array('CreateSession', 'Init', - 'SetOpt', 'Exec', 'GetInfo', 'Error', - 'Close')) - ->getMock(); - - $this->authToken = new AuthToken(self::EMAIL, - self::PASSWORD, self::SERVICE, - self::SOURCE, NULL, NULL, NULL, NULL, $this->curlUtilsMock); - } - - private function setCurlUtilsMethodsExpects($response, $httpCode, $error) { - $this->curlUtilsMock->expects($this->any()) - ->method('Exec') - ->will($this->returnValue($response)); - $this->curlUtilsMock->expects($this->any()) - ->method('GetInfo') - ->will($this->returnValue($httpCode)); - $this->curlUtilsMock->expects($this->any()) - ->method('Error') - ->will($this->returnValue($error)); - } - - /** - * @covers AuthToken::GetAuthToken - */ - public function testGetAuthToken_returnsValidToken() { - $this->setCurlUtilsMethodsExpects(sprintf("%s\n%s\n%s", 'SID=DFP', - 'LSID=DFPDFP', 'Auth=DFPDFPDFP'), 200, FALSE); - - $result = $this->authToken->GetAuthToken(); - $this->assertNotNull($result); - $this->assertEquals('DFPDFPDFP', $result); - } - - /** - * @covers AuthToken::GetAuthToken - * @expectedException AuthTokenException - */ - public function testGetAuthToken_withBadAuthentication() { - $this->setCurlUtilsMethodsExpects('Error=BadAuthentication', 403, FALSE); - $result = $this->authToken->GetAuthToken(); - } - - /** - * @covers AuthToken::GetAuthToken - * @expectedException AuthTokenException - */ - public function testGetAuthToken_withInvalidServer() { - $this->setCurlUtilsMethodsExpects(FALSE, 0, - "Couldn't resolve host 'foo.google.com'"); - $result = $this->authToken->GetAuthToken(); - } - - /** - * @covers AuthToken::GetAuthToken - * @expectedException AuthTokenException - */ - public function testGetAuthToken_withInvalidService() { - $this->setCurlUtilsMethodsExpects(sprintf("%s\n%s", 'Error=Unknown', - 'Url=https://www.google.com/accounts/ErrorMsg?service=foo&id=unknown&ti' - . 'meStmp=1343855615&secTok=DFPDFPDFP'), 403, FALSE); - $result = $this->authToken->GetAuthToken(); - } -} - diff --git a/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php b/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php index 293fc0c57..86c42a9ed 100755 --- a/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php +++ b/tests/Google/Api/Ads/Common/Util/DeprecationUtilsTest.php @@ -33,73 +33,6 @@ */ class DeprecationUtilsTest extends PHPUnit_Framework_TestCase { - public function testIsUsingOAuth2_UsingOAuth2() { - $credentials = array('refresh_token' => 'REFRESH_TOKEN'); - $mockUser = $this->getMockBuilder('AdsUser') - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - $mockUser->SetOAuth2Info($credentials); - - $this->assertTrue( - DeprecationUtils::IsUsingOAuth2($mockUser)); - } - - public function testIsUsingOAuth2_UsingClientLogin() { - // Because AdsUser doesn't have ClientLogin information on it, we consider - // the absence of OAuth 2 as using ClientLogin. - $mockUser = $this->getMockBuilder('AdsUser') - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - - $this->assertFalse( - DeprecationUtils::IsUsingOAuth2($mockUser)); - } - - public function - testCheckUsingClientLoginWithUnsupportedVersion_UsingClientLoginSupportedVersion() { - // Because AdsUser doesn't have ClientLogin information on it, we consider - // the absence of OAuth 2 as using ClientLogin. - $mockUser = $this->getMockBuilder('AdsUser') - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - - DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($mockUser, - "v201311", "v201208"); - DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($mockUser, - "v201311", "v201311"); - } - - /** - * @expectedException ServiceException - */ - public function - testCheckUsingClientLoginWithUnsupportedVersion_UsingClientLoginUnsupportedVersion() { - // Because AdsUser doesn't have ClientLogin information on it, we consider - // the absence of OAuth 2 as using ClientLogin. - $mockUser = $this->getMockBuilder('AdsUser') - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - - DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($mockUser, - "v201311", "v201403"); - } - - public function - testCheckUsingClientLoginWithUnsupportedVersion_UsingOAuth2WithAnyVersion() { - $credentials = array('refresh_token' => 'REFRESH_TOKEN'); - $mockUser = $this->getMockBuilder('AdsUser') - ->disableOriginalConstructor() - ->getMockForAbstractClass(); - $mockUser->SetOAuth2Info($credentials); - - DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($mockUser, - "v201311", "v201208"); - DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($mockUser, - "v201311", "v201311"); - DeprecationUtils::CheckUsingClientLoginWithUnsupportedVersion($mockUser, - "v201311", "v201403"); - } - /** * @expectedException ServiceException */ @@ -113,3 +46,4 @@ public function DeprecationUtils::CheckUsingSkipReportHeaderWithUnsupportedVersion('skipReportHeader', 'v201409', 'v201409'); } } +